Page 1 of 1

Custom Sounds distance

Posted: Fri Apr 18, 2008 7:06 pm
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.

Re: Custom Sounds distance

Posted: Fri Apr 18, 2008 7:10 pm
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?

Re: Custom Sounds distance

Posted: Fri Apr 18, 2008 7:13 pm
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

Re: Custom Sounds distance

Posted: Fri Apr 18, 2008 8:50 pm
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"

Re: Custom Sounds distance

Posted: Fri Apr 18, 2008 8:52 pm
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?

Re: Custom Sounds distance

Posted: Fri Apr 18, 2008 11:06 pm
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?

Re: Custom Sounds distance

Posted: Sat Apr 19, 2008 7:41 am
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.

Re: Custom Sounds distance

Posted: Sat Apr 19, 2008 9:13 am
by Aman/Pinguin
Hidden/Spoiler:
SoundProperties()
{
Name("seismischesound");
Group("Explosion");
Inherit("explosion_template");
MinDistance(45.0);
Gain(1.0);
SampleList()
{
Sample("seismischesound", 1.0);
}
}

Re: Custom Sounds distance

Posted: Sat Apr 19, 2008 9:57 am
by ryukaji
Thank you!!!! So min distance is the farthest away you can be?

Re: Custom Sounds distance

Posted: Sat Apr 19, 2008 11:55 am
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