Custom Sounds distance

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
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Custom Sounds distance

Post by ryukaji »

How can you change the range of hearing for a custom sound? I have one for an explosion that can only be heard when you are really really close to it.
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Custom Sounds distance

Post by Aman/Pinguin »

So what? You HAVE one that can only be heard when you are really close to it, or you search one way to do that?
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Custom Sounds distance

Post by ryukaji »

I got a sound for the seismic charge explosion but you can only hear it when you are in range of the explosion so you die. I want the sound to be heard from farther away so you dont have to die to hear it. Tell me if I need to post any files from my sound folder
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Custom Sounds distance

Post by Maveritchell »

Pretty sure it'll be something you change in the .snd file, but I don't know off the top of my head. If you want, go ahead and use this custom sound .lvl file (this is from Abraxas Platform, it's the sound from the Seismic Charge there, if you want to hear it ingame):
http://files.filefront.com/psalvl/;1003 ... einfo.html

To load in the .lua:

Code: Select all

ReadDataFile("dc:sound\\psa.lvl;psagcw")
And the sound itself is named "scharge." It'll load in your _exp file like so:

Code: Select all

SoundProperty       = "scharge"
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Custom Sounds distance

Post by ryukaji »

Ok im gonna go try that now

EDIT: Ok so then all I need to know is how you got it to do that. I really want to use my sound file becase it has the delay and it is a bit higher quality. So howd u get it to be heard from farther away?
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Custom Sounds distance

Post by ryukaji »

Heres my .snd

SoundProperties()
{
Name("seismiccharge");
Group("weapons");
Inherit("weapon_template");
SampleList()
{
Sample("seismiccharge", 1.0);
}
}

what do I need to change? or is it somewhere else?
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: Custom Sounds distance

Post by Taivyx »

Yea I'd like to know too
I have this reload sound that I have to raise the volume of to let it be heard properly in first person.
But the problem is, everywhere I go I hear the "chick-chung" of people reloading, quite loudly too.
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Custom Sounds distance

Post by Aman/Pinguin »

Hidden/Spoiler:
SoundProperties()
{
Name("seismischesound");
Group("Explosion");
Inherit("explosion_template");
MinDistance(45.0);
Gain(1.0);
SampleList()
{
Sample("seismischesound", 1.0);
}
}
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Custom Sounds distance

Post by ryukaji »

Thank you!!!! So min distance is the farthest away you can be?
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: Custom Sounds distance

Post by Taivyx »

Aman/Pinguin wrote:
Hidden/Spoiler:
SoundProperties()
{
Name("seismischesound");
Group("Explosion");
Inherit("explosion_template");
MinDistance(45.0);
Gain(1.0);
SampleList()
{
Sample("seismischesound", 1.0);
}
}
And I suppose that works the same for MaxDistance thanks Pinguin! :D
Post Reply