Home   Help Search Login Register  

Author Topic: Making environment sfx  (Read 458 times)

0 Members and 1 Guest are viewing this topic.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Making environment sfx
« on: 11 Mar 2004, 03:52:45 »
Okay, I swear I saw how to do this, but now I can't find it anymore :(

I want to define my own environment sounds, like the "hills"/"combat ambience"/etc ones that you can use with triggers. I know you can make them stereo, and define day/night versions, but I can't find where it said how to do it anymore.... anyone?
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Making environment sfx
« Reply #1 on: 15 Mar 2004, 00:06:43 »
 ;) howdy m8.
well, there are several ways to create special sound effects (SFX)  :-*

 :D one is to make a sound (making a house or a vehicle play a looped sound effect).
This is cool if ya wanna make that disco or bar for yer cutscene:

In CfgVehicles you have a class called "sound":

class Sound{};
class MySound: Sound
{
            scope=public;
            side = -1;
            vehicleClass = Sounds;
            icon = unknown_move;
            mapSize = 1;
            sound = "\MyAddon\MySound.ogg";
            displayName = MySound;
};

...something like that anyway (try it for size, I cant remember the details)  :P ::)

Then, and this is what YOU wanna do, you can make a complete environSoundEffect :
This is both good & bad - the bad part is that the sound will play on & on 'till you leave the mission,
or fade the sounds & remove the trigger...

The cpp defines are almost like the ones above... lets see if I can remember it now... hmm..


class CfgEnvSounds
{
          class MyAmbience
         {
               name="This Name will appear in the trigger";
               sound[]={"\MyAddon\MyAmbience.ogg", db+5, 1};
               soundNight[]={"\MyAddon\MyAmbience.ogg", db+5, 1};      titles[]={};
   };
};


... I think its right!  :-X ;D if not - I'll buy you a beer man  :-* 8) ;D

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Making environment sfx
« Reply #2 on: 15 Mar 2004, 04:40:10 »
That did it! Thanks mate!  ;D ;D ;D
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!