[Help] Removing Auto Messages & Sounds

Making or wanting help making your own asset? Check in here
Post Reply
Onil
Posts: 1232
Joined: 2007-08-19 09:50

[Help] Removing Auto Messages & Sounds

Post by Onil »

Hello, I'm trying to remove the friendly fire auto messages (text and sound) as well as the vanilla UAV radar beep sound when it detects an enemy.

I know where these are located but I want to avoid having to edit the original files because if I really need to, I would have to make a full minimod instead of the map based minimod system (everything gets loaded from the map folder).

Here are the files and code lines that I would like to either remove or change:

GameSounds.con - Removing the following lines or changing the volume to 0

Sound.addSound HUD_Satellite_target
ObjectTemplate.soundFilename Common/Sound/Hud/Satellite_target.wav
ObjectTemplate.loopCount 1
ObjectTemplate.is3dSound 0
ObjectTemplate.volume 0.42
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 0.1

VoiceMessages_AutomaticallyTriggered.con - Removing the following lines:

gamelogic.messages.addMessage "AUTO_MOODGP_friendlyfire"
gamelogic.messages.addRadioVoice "grunt" "grunt/filter/AUTO_MOODGP_TM_friendlyfire.ogg" AUTO_MOODGP_TM_friendlyfire "grunt/No_filter/AUTO_MOODGP_TM_friendlyfire.ogg" 1
gamelogic.messages.addRadioVoice "grunt" "grunt/filter/AUTO_MOODGP_TM_friendlyfire_alt.ogg" AUTO_MOODGP_TM_friendlyfire_alt "grunt/No_filter/AUTO_MOODGP_TM_friendlyfire_alt.ogg" 1
gamelogic.messages.addRadioVoice "squadleader" "squadleader/filter/AUTO_MOODGP_SL_friendlyfire.ogg" AUTO_MOODGP_SL_friendlyfire "squadleader/No_filter/AUTO_MOODGP_SL_friendlyfire.ogg" 1
gamelogic.messages.addRadioVoice "squadleader" "squadleader/filter/AUTO_MOODGP_SL_friendlyfire_alt.ogg" AUTO_MOODGP_SL_friendlyfire_alt "squadleader/No_filter/AUTO_MOODGP_SL_friendlyfire_alt.ogg" 1
gamelogic.messages.addRadioVoice "commander" "commander/filter/AUTO_MOODGP_C_friendlyfire.ogg" AUTO_MOODGP_C_friendlyfire "commander/No_filter/AUTO_MOODGP_C_friendlyfire.ogg" 1


I would prefer doing this through the map files so that I don't have to create a full minimod structure for this. I have tried adding the following to the map init:

ObjectTemplate.active HUD_Satellite_target
ObjectTemplate.volume 0

or

sound.tweakTemplate HUD_Satellite_target
ObjectTemplate.volume 0

both didn't work...

Anyone has any ideas on how I can do this?

Thanks in advance.
Image
Moszeusz6Pl
Retired PR Developer
Posts: 939
Joined: 2010-06-24 13:41

Re: [Help] Removing Auto Messages & Sounds

Post by Moszeusz6Pl »

You can try adding new Common/Sound/Hud/Satellite_target.wav to your map folder, which wouldn't have that beep(just empty sound file).

Image
Onil
Posts: 1232
Joined: 2007-08-19 09:50

Re: [Help] Removing Auto Messages & Sounds

Post by Onil »

It doesn't work, you can't overwrite an original file that way.
Image
Post Reply

Return to “PR:BF2 Community Modding”