Jump to content
Sign in to follow this  
 EO

Disable ambient sounds, replace with custom sounds.

Recommended Posts

In need of a little advice/guidance please.....

 

I can disable all ambient sound using enableEnvironment.

I would like to replace with my own custom sounds. (ambience,rain,wind,etc.)

This would be for use in a SP environment.

I have all the necessary .ogg files, but need to know what would be the best way to execute such a task.

 

Thank you.

Share this post


Link to post
Share on other sites

Define the sounds inside the description.ext. Afterwards think about what conditions need to be met in order for the sounds to play. For example the player has to be near a forest in order to hear owls or similar.

Share this post


Link to post
Share on other sites

Define the sounds inside the description.ext. Afterwards think about what conditions need to be met in order for the sounds to play. For example the player has to be near a forest in order to hear owls or similar.

 

So a combination of CfgSounds activated via triggers?

Share this post


Link to post
Share on other sites

It depends on how advanced you want to get. Build something with triggers and see if you like it, if not, do it differently.

Share this post


Link to post
Share on other sites

It depends on how advanced you want to get. Build something with triggers and see if you like it, if not, do it differently.

 

The simpler the better.... :P

 

I do read the wiki's and watch tutorials but it's easy to lose the way when knowledge is limited.

 

Thanks for the pointers.

Share this post


Link to post
Share on other sites

hi,

 

Use class CfgEnvSounds (you can also have a sound for the night, use stereo 22500 Khz), CfgSFX in your description.ext and use setSoundEffect or use triggers as suggested above.

 

 example description.ext

class CfgEnvSounds
{
    sounds[] = {battle, storm};

    class battle
    {
        name = "battle";
        sound[] = {battle.ogg,-10,0,1};
        soundNight[] = {"",0,0,1};
    };
    class storm
    {
        name = "storm";
        sound[] = {stormyday.ogg,0,0,1};
        soundNight[] = {stormynight.ogg,0,0,1};
    };

};
class CfgSFX
{
    sounds[] = {anbientsound};

    class anbientsound
    {
        name = "anbient sound";
        sounds[] = {birds, cows};
        sound1[] = {birds.ogg, 0, 1, 0.3, 5, 1, 10};
        sound2[] = {cows.ogg, 0, 1, 0.3, 5, 1, 10};
        empty[] = {, , , , 1 , 5, 20};
    };
};

cya.

 

Nikiller.

  • Like 1

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  

×