Thread: Sound in maps
View Single Post
  #2  
Old 05-21-2009, 02:49 PM
dave61 is offline dave61
dave61's Avatar
I.C.U.

Join Date: Jul 2005
Location: Here & There
Posts: 2,155

Send a message via Yahoo to dave61
Sound files (waves) are done using the WAC file. The easiest way to explain how it is done would be to look at my WAC scripts on my web site. You can also find a list of availiable wave files on my site too.

http://home.comcast.net/~dthomas1188...%20scripts.htm

If you need help on this , feel free to ask.

Here's a few examples to get you started:


------------------------------------------
The wave will play if past 5 seconds into game.

// good luck in there Bravo
if past(5) and never() then
wave("alph507.wav")
endif
------------------------------------------
This is an example of Group #5 in area #5 triggering a .wav file.

// hey! I don't do warning shots.
if grouparea(5,5) and never() then
wave("macr159.wav")
endif
------------------------------------------
This is an example of Group #5 being dead triggering a .wav file.

// cheer! (alpha guards down)
if groupdead(5) and never() then
wave("dfm141.wav")
endif
------------------------------------------
This is an example of a Player in area #5 triggering a .wav file.


// base is alert
if ssnarea(10000,5) and never() then
wave("comd108.wav")
endif
---------------------------------------------
The chain wave command is placed after a wave that you want to tie another wave file to. The chain command will play the wave file (within the seconds that you insert) after the previous wave file is played. You can even tie chain to chain and it sounds like a conversation.

// they got to be kidding me
if chain(6) and never() then
wave("macr155.wav")
endif
-------------------------------------------------
This is an example of SSN #101 in an area #6 triggering a .wav file.

// Bravo, don't let that helo get away
if ssnarea(101,6) and never() then
wave("alph531.wav")
endif
----------------------------------------------------
This is an example of SSN #5 being dead triggering a .wav file.

// hey! i don't do warning shots.
if ssndead(5) and never() then
wave("macr159.wav")
endif
__________________
Reply With Quote