Changing sound properties
Moderator: Moderators
- edge123455
- Private Second Class
- Posts: 73
- Joined: Wed May 18, 2011 7:07 pm
- Projects :: Hoth Battlefield
- xbox live or psn: No gamertag set
Changing sound properties
Hey my fellow modders,
I was wondering if there's a way I can change the sound pitch of weapons and how far they are heard. Is there a way I can do it via odf???
I was wondering if there's a way I can change the sound pitch of weapons and how far they are heard. Is there a way I can do it via odf???
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Changing sound propeties
I don't know about doing it via their ODFs, but it's pretty easy to do in the sound configuration files.
- edge123455
- Private Second Class
- Posts: 73
- Joined: Wed May 18, 2011 7:07 pm
- Projects :: Hoth Battlefield
- xbox live or psn: No gamertag set
Re: Changing sound propeties
How do you do it in the sound config files???? 
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Changing sound propeties
Go into your sound LVL's SND file - e.g., ABC_sounds.snd - and find a SoundProperties() configuration like this:edge123455 wrote:How do you do it in the sound config files????
Code: Select all
SoundProperties()
{
Name("dl44_pistol_fire");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("heavypistolfire1", 1.0);
}
}As a result, it would look like this:
Code: Select all
SoundProperties()
{
Name("dl44_pistol_fire");
Group("weapons");
Inherit("weapon_template");
Pitch(0.5);
SampleList()
{
Sample("heavypistolfire1", 1.0);
}
}To increase the firing sound's audible distance, you would add the line MinDistance(20); if you wanted to change the distance which the sound must travel before it begins to fade out, and/or MuteDistance(35); if you wanted to change the distance at which the sound is muted - the numbers in the parentheses determine the distance (in meters, if I am correct).
Now it would look like this:
Code: Select all
SoundProperties()
{
Name("dl44_pistol_fire");
Group("weapons");
Inherit("weapon_template");
Pitch(0.5);
MinDistance(20);
MuteDistance(35);
SampleList()
{
Sample("heavypistolfire1", 1.0);
}
}
Last edited by Marth8880 on Thu Jul 14, 2011 1:25 am, edited 1 time in total.
- edge123455
- Private Second Class
- Posts: 73
- Joined: Wed May 18, 2011 7:07 pm
- Projects :: Hoth Battlefield
- xbox live or psn: No gamertag set
Re: Changing sound propeties
One more thing, what command should I use to increase or decrease the volume of the sound effect?
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Changing sound propeties
Code: Select all
Gain(1.0);- edge123455
- Private Second Class
- Posts: 73
- Joined: Wed May 18, 2011 7:07 pm
- Projects :: Hoth Battlefield
- xbox live or psn: No gamertag set
Re: Changing sound propeties
Hey guys, I'm trying really hard to look for the LVL's SND file but I can't find it. I've searched every where. Can you guys tell me the directory please?
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Changing sound propeties
Which world's sound LVL are you looking for?edge123455 wrote:Hey guys, I'm trying really hard to look for the LVL's SND file but I can't find it. I've searched every where. Can you guys tell me the directory please?
- edge123455
- Private Second Class
- Posts: 73
- Joined: Wed May 18, 2011 7:07 pm
- Projects :: Hoth Battlefield
- xbox live or psn: No gamertag set
Re: Changing sound propeties
I'm trying to change the hoth sound lvl
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Changing sound propeties
Everywhere? Have you tried looking in the most obvious place? The individual world .snd files are contained in the folders found at data_***\Sound\worlds. The Hoth .snd file is most likely located in the hot folder. If this isn't what you are asking, do please elaborate.edge123455 wrote:I've searched every where.
- edge123455
- Private Second Class
- Posts: 73
- Joined: Wed May 18, 2011 7:07 pm
- Projects :: Hoth Battlefield
- xbox live or psn: No gamertag set
Re: Changing sound propeties
Is this the directory ?
C:\BF2_ModTools\data_QQQ\Sound\worlds\hot
Because when I go in there, the only files are SFX, AU, ST4, MUS, TSR, STM, REQ and fast index file.
C:\BF2_ModTools\data_QQQ\Sound\worlds\hot
Because when I go in there, the only files are SFX, AU, ST4, MUS, TSR, STM, REQ and fast index file.
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Changing sound propeties
Yes, that is it. AU files are .snd files, by the way.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Changing sound propeties
Whoops, my fault, I should have mentioned that as well.AQT wrote:Yes, that is it. AU files are .snd files, by the way.
- edge123455
- Private Second Class
- Posts: 73
- Joined: Wed May 18, 2011 7:07 pm
- Projects :: Hoth Battlefield
- xbox live or psn: No gamertag set
Re: Changing sound propeties
AHHH, lol I see...
Alright thank you guys for your help. I really appreciate it.
EDIT
Hey sorry to bother, this is the last question. I have made the changes in the script, but there isn't a difference in game. I munged the with the sound box checked and then I munged with the 'sound only' box, but nothing happens. What do I have to do for the changes to take place?
Alright thank you guys for your help. I really appreciate it.
EDIT
Hey sorry to bother, this is the last question. I have made the changes in the script, but there isn't a difference in game. I munged the with the sound box checked and then I munged with the 'sound only' box, but nothing happens. What do I have to do for the changes to take place?
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Changing sound properties
Do you have all of the working batch files? If not, then acquire them all. Is the sound .lvl file in your map's addon directory? That location being addon\***\data\_LVL_PC\Sound? If not, then manually move the file from data_***\_LVL_PC\Sound to that location.
