PDA

View Full Version : cfgEnvSounds for ARMA islands?



Linker Split
Apr 18 2008, 22:58
Hi guys

Do you remember for OFP we used to add the class cfgEnvSounds specifying our own was/ogg/wss sounds to be played along the whole island?

Is there a way to get working for ArmA too?http://forums.bistudio.com/oldsmileys/huh.gif
Or simply ArmA only uses sounds produced by the insects inserted via config (mosquito, honeybees and so on)?

Snake Man
Apr 18 2008, 23:06
Check VTE terrain config, I've included environmental sounds there. Only thing is that I didn't get Rain or Sea sounds to work, I'm looking into it.


//class CfgEnvSounds {};
// snake attempt to create name environmental sounds
class CfgEnvSounds
{
class Default
{
name = $STR_CFG_ENVSOUNDS_DEFAULT;
sound[] = {$DEFAULT$, 0, 1};
soundNight[] = {$DEFAULT$, 0, 1};
};

// not working
class Rain
{
name = "NAM rain";
sound[] = {"\VTE_sounds\Environment\JungleRain1.wss",1,1};//0.002
volume = "meadow*(1-rain)*(1-night)";// was just "rain"
};

// not working
class Sea
{
name = "NAM sea";
sound[] = {"\VTE_sounds\Environment\JungleOcean1.wss",1,1};//0.0008
volume = "sea";
};

class Meadows
{
name = "NAM meadows";
sound[] = {"\VTE_sounds\Environment\JungleAmbience1.wss",0.006,1};//0.0006
volume = "meadow*(1-rain)*(1-night)";
};

class Trees
{
name = "NAM trees";
sound[] = {"\VTE_sounds\Environment\JungleHill1.wss",0.00316,1};//0.000316
volume = "trees*(1-rain)*(1-night)";
};

class MeadowsNight
{
name = "NAM meadows night";
sound[] = {"\VTE_sounds\Environment\JungleNight1.wss",0.006,1};//0.0006
volume = "meadow*(1-rain)*night";
};

class TreesNight
{
name = "NAM trees night";
sound[] = {"\VTE_sounds\Environment\JungleNight1.wss",0.006,1};//0.0006
volume = "trees*(1-rain)*night";
};

class Hills
{
name = "NAM hills";
sound[] = {"\VTE_sounds\Environment\JungleHill1.wss",0.006,1};//0.0006
volume = "hills";
};

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

Linker Split
Apr 18 2008, 23:08
OOOOk snake man...
I'll try it http://forums.bistudio.com/oldsmileys/wink_o.gif
btw, do you know anything about that sintax used also to spawn insects, birds, and animals?http://forums.bistudio.com/oldsmileys/huh.gif?

that

Quote[/b] ]((20 - 5 * rain) * (3 * (windy factor [0.2, 1]))) * (1 - sea)