Page 1 of 1
Changing sound properties
Posted: Tue Jul 12, 2011 9:21 pm
by edge123455
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???
Re: Changing sound propeties
Posted: Wed Jul 13, 2011 1:22 am
by Marth8880
I don't know about doing it via their ODFs, but it's pretty easy to do in the sound configuration files.
Re: Changing sound propeties
Posted: Wed Jul 13, 2011 2:22 am
by edge123455
How do you do it in the sound config files????

Re: Changing sound propeties
Posted: Wed Jul 13, 2011 6:37 am
by Marth8880
edge123455 wrote:How do you do it in the sound config files????

Go into your sound LVL's SND file - e.g., ABC_sounds.snd - and find a
SoundProperties() configuration like this:
Code: Select all
SoundProperties()
{
Name("dl44_pistol_fire");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("heavypistolfire1", 1.0);
}
}
Under
Inherit("weapon_template"); you would put
Pitch(0.5); - the number in the parenthesis must be any number between
0.0 and
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);
}
}
Doing this would cause my pistol's fire sound to be 50% its normal pitch.
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);
}
}
The resulting sound would be 50% its normal pitch; you could hear it at its maximum volume from 20 meters away, and it would start fading out from there until it mutes at 35 meters away.
Re: Changing sound propeties
Posted: Wed Jul 13, 2011 4:56 pm
by edge123455
One more thing, what command should I use to increase or decrease the volume of the sound effect?
Re: Changing sound propeties
Posted: Wed Jul 13, 2011 5:36 pm
by AQT
Increase/decrease by increments of 0.1 to increase/decrease volume.
Re: Changing sound propeties
Posted: Wed Jul 13, 2011 10:14 pm
by edge123455
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?
Re: Changing sound propeties
Posted: Thu Jul 14, 2011 1:27 am
by Marth8880
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?
Which world's sound LVL are you looking for?
Re: Changing sound propeties
Posted: Thu Jul 14, 2011 2:10 am
by edge123455
I'm trying to change the hoth sound lvl
Re: Changing sound propeties
Posted: Thu Jul 14, 2011 3:12 am
by AQT
edge123455 wrote:I've searched every where.
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.
Re: Changing sound propeties
Posted: Thu Jul 14, 2011 4:19 am
by edge123455
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.
Re: Changing sound propeties
Posted: Thu Jul 14, 2011 4:54 am
by AQT
Yes, that is it. AU files are .snd files, by the way.
Re: Changing sound propeties
Posted: Thu Jul 14, 2011 6:20 am
by Marth8880
AQT wrote:Yes, that is it. AU files are .snd files, by the way.
Whoops, my fault, I should have mentioned that as well.

Re: Changing sound propeties
Posted: Thu Jul 14, 2011 5:34 pm
by edge123455
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?
Re: Changing sound properties
Posted: Thu Jul 14, 2011 10:16 pm
by AQT
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.