Air raid signal...MOHAA sound drives me to drink...HELP!
Posted: Fri Aug 29, 2003 8:45 pm
I would like to add an air raid type of alarm sound that EVERYONE hears that starts looping when the bomber starts it's bombing run, and ends when the bombing run is finished. The closest wav I found is:
I have no idea how the script syntax for adding the sound should be written. Here are the pertinent parts of the script:
I also have a problem with the sound of the plane flying by playing too soon. The players located near the plane at the begining of the run hear the plane properly, but the players located near the end of the run hear nothing.
Code: Select all
aliascache m2l2_alarm1 sound/mechanics/Mec_Alarm_03.wav soundparms 0.5 0.0 1.0 0.0 1000 20000 item loaded maps "m2l2a "
Code: Select all
Main:
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/mohdm1.scr
exec global/ambient.scr mohdm1
level waittill spawn
thread plane
end
plane:
// Bunch of plane coordinates here ommited for brevity
// Bunch of bomb coordinates here ommited for brevity
spawn script_object "targetname" "bomberpath" "classname" "info_splinepath" "target" $pl1 "origin" "237 -3800 1000" "angles" "15 90 0" "model" "vehicles/p47fly.tik" "$mdl" "vehicles/p47fly.tik" "#set" "1" "speed" "1.5"
// Bomber Speaker
spawn script_object "targetname" "bomberspeaker" "classname" "sound_speaker" "origin" $pl5.origin "#set" "1"
// Bunch of connected plane paths here ommited for brevity
exec global/bomber.scr
wait 125
planeboot:
local.planewait = randomint(180) + 40
wait local.planewait
iprintlnbold "P47 bomber approaching...RUN!!!"
wait 3
thread global/bomber.scr::bomb 1
goto planeboot
end