No sounds until after round start

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
LtNeil
Sergeant
Posts: 54
Joined: Sun Nov 14, 2004 8:46 pm
Location: southend on sea
Contact:

No sounds until after round start

Post by LtNeil »

I have made a tow map and the only thing wrong with it is some sound.
None of the custom sounds i have done work UNTIL the next round i.e after everyone is killed and the next round starts.Then all the sounds start working!??

This has bugged me from the start of the map,this is what i have...

main:

local.master = spawn ScriptMaster

local.master aliascache snd_rockme sound/amb/rocket.wav soundparms 1.0 0.2 1.0 0.2 200 12000 auto loaded maps "obj dm"

(obviously this is at the start of the scripting,then its just standard tow stuff),then at the end of the script i put this

$rocket_speaker playsound snd_rockme

Just like to say thanks once more to everyone for their help!
My candle burns at both ends it will not last the night but oh my foes and oh my friends it gives a lovely light.
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

Is the link of the thread with the sound placed after level waittill spawn and not prespawn?
LtNeil
Sergeant
Posts: 54
Joined: Sun Nov 14, 2004 8:46 pm
Location: southend on sea
Contact:

Post by LtNeil »

yes its right at the end of the script(open up a tow script,im using berlin tow script and its after all that)
My candle burns at both ends it will not last the night but oh my foes and oh my friends it gives a lovely light.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

thread

Post by tltrude »

Sometime a sound takes a second to load, so do this.

level waittill prespawn

thread start_sounds

...

end

start_sounds:

wait 1
$rocket_speaker playsound snd_rockme

end



It can still be at the end of the script, but now it is a thread that is started in prespawn.
Tom Trude,

Image
Post Reply