Page 1 of 1
Fire
Posted: Wed Feb 25, 2004 4:52 pm
by echo_rancid
How do I add a burning sound to fire?
fire
Posted: Wed Feb 25, 2004 5:25 pm
by tltrude
There are three sound names you can use.
fire_small
fire_med
fire_large
So, just put in a speaker (a 16x16x16 script_object brush with nodraw texture and not solid set will work) and have it play the sound in your script.
$my_speaker loopsound fire_med
Posted: Wed Feb 25, 2004 6:07 pm
by echo_rancid
Now the $my_speaker loopsound fire_med goes into my .scr file or under entity window??? If it is in .scr file where in the file would I place it. Thanks btw.
script
Posted: Thu Feb 26, 2004 7:17 am
by tltrude
Under "level waittill prespawn" in your script, put this.
thread start_sound
Then anywhere after the end of the main thread add your sound thread.
start_sound:
wait 1
$my_speaker loopsound fire_med
end
For this to work, of course, the speaker in the map must be targetname "my_speaker". But, you can name it as you wish. You can add as many speakers as you need. This is a good one too.
$river_speaker loopsound river
If you ever need to stop a loopsound, it is like this.
$river_speaker stoploopsound
Hope that helps!