Page 1 of 1
I need help with custom sounds for my map ;o(
Posted: Sun Nov 03, 2002 11:05 am
by Stacey
I want to make my own custom sounds and put them in my new map, ive put my map in deathmatch and get the gun sounds and all that stuff, but i want to add like music to the radio that i put in my map or trigger a sound for the alarm switch on the wall, things like that. Ive read the 2 sound turtorials and im so very confused. Can anyone please explain it to me how it works? I would be so greatful, making this map has been stressful and ive come so far, id hate for my map to lack my vision ;o( Please help.

Posted: Sun Nov 03, 2002 2:28 pm
by jv_map
You need an entity to play the sounds. Preferrable use a script_model for this. Add it on the location where you want the sound to player, assign
key model
value fx/dummy.tik and for example
key targetname
value speaker. Then add a trigger that triggers the sound. Targetname it for instance 'soundtrigger'.
Then add the following thread to your map's script:
Code: Select all
playsound local.sound:
self waittill trigger
self playsound local.sound
end
Finally add this line in your script below 'level waittill spawn':
Code: Select all
$soundtrigger thread playsound "mysound"
where 'mysound' is the sound alias to use.
ok but where is the map script
Posted: Mon Nov 04, 2002 10:41 am
by Stacey
Which is the script, how do i make it?
Posted: Mon Nov 04, 2002 11:14 am
by Surgeon
u need to create a script file for every map you create. Simply open notepad and save it as yourmapname.scr - If u get winzip or a program like it you can view the scr files from the original game......