I need help with custom sounds for my map ;o(

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Stacey

I need help with custom sounds for my map ;o(

Post 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. :oops:
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Stacey

ok but where is the map script

Post by Stacey »

Which is the script, how do i make it?
Surgeon
Site Admin
Posts: 1386
Joined: Tue Jun 04, 2002 1:15 am
Location: Stirling, Scotland
Contact:

Post 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......
Admin
Image

.map Forums

Truth and Honor.
Post Reply