Changing sound properties

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
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

Post 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???
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Changing sound propeties

Post by Marth8880 »

I don't know about doing it via their ODFs, but it's pretty easy to do in the sound configuration files.
User avatar
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

Post by edge123455 »

How do you do it in the sound config files???? :bowdown:
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Changing sound propeties

Post by Marth8880 »

edge123455 wrote:How do you do it in the sound config files???? :bowdown:
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.
Last edited by Marth8880 on Thu Jul 14, 2011 1:25 am, edited 1 time in total.
User avatar
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

Post by edge123455 »

One more thing, what command should I use to increase or decrease the volume of the sound effect?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Changing sound propeties

Post by AQT »

Code: Select all

Gain(1.0);
Increase/decrease by increments of 0.1 to increase/decrease volume.
User avatar
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

Post 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?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Changing sound propeties

Post 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?
User avatar
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

Post by edge123455 »

I'm trying to change the hoth sound lvl
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Changing sound propeties

Post 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.
User avatar
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

Post 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.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Changing sound propeties

Post by AQT »

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
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Changing sound propeties

Post 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. :cpu:
User avatar
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

Post by edge123455 »

AHHH, lol I see...

Alright thank you guys for your help. I really appreciate it. :D

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
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Changing sound properties

Post 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.
Post Reply