Jump to content
Sign in to follow this  
icewindo

Disable enviroment sounds?

Recommended Posts

Hi,

is it possible somehow to disable all of the enviroment sounds (.e.g night sounds or at day the bird sounds) for a (custom) island ?

I looked into the bi sample map config, found an entry but it was empty, so I have no idea how to disable the sounds at all, I guess it has something to do with this one? (I looked into sara.pbo to see how the sounds are defined there but it's allready a bin confused_o.gif )

The island is the ground level of a tomb so it's rather strange if you hear birds inside wink_o.gif .

class ReplaceObjects {};

// sound sources

class Sounds

{

sounds[]={};

};

Share this post


Link to post
Share on other sites

Yes its possible.

Do a config like this:

class CfgEnvSounds
{
class Rain
{
	name = "NAM rain";
	sound[] = {"",0,1};
	volume = "rain";
};

class Sea
{
	name = "NAM sea";
	sound[] = {"",0,1};
	volume = "sea";
};

class Meadows
{
	name = "NAM meadows";
	sound[] = {"",0,1};
	volume = "meadow*(1-rain)*(1-night)";
};

class Trees
{
	name = "NAM trees";
	sound[] = {"",0,1};
	volume = "trees*(1-rain)*(1-night)";
};

class MeadowsNight
{
	name = "NAM meadows night";
	sound[] = {"",0,1};
	volume = "meadow*(1-rain)*night";
};

class TreesNight
{
	name = "NAM trees night";
	sound[] = {"",0,1};
	volume = "trees*(1-rain)*night";
};

class Hills
{
	name = "NAM hills";
	sound[] = {"",0,1};
	volume = "hills";
};

class Wind
{
	name = "NAM wind";
	sound[] = {"", db-75, 1};
	volume = "(1-hills)*windy*0.5";
};
};

Now in the sound[] part you must define the second parameter as zero or just leave out the wss file completely, I believe "" would work then, so the sound cant be heard at all. With config like this you should get no environmental sounds at all (I have not tested the config btw).

Edited by Snake Man

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×