ok i have a small CTF map that i would like a sound played to notify players if a flag has been captured… so far i have used a playsound command… but i am not sure that it is a global sound command or just one that the player that captures the flag hears… this is my script. I know that there are speakers that you can use… but i am not sure if it is what i should use here… BTW all of the alertentities are a counter that i have made.
game_manager
{
spawn
{
wm_axis_respawntime 7
wm_allied_respawntime 7
wm_set_round_timelimit 10
// Winner on expiration of round timer (0=Axis, 1=Allies, -1=No winner at expiration)
wm_setwinner -1
wait 2000
}
}
axisflag
{
spawn
{
wait 300
accum 0 set 0
}
trigger allied_capture
{
accum 0 abort_if_equal 1
playsound sound/misc/vote.wav volume 400
wait 200
accum 0 set 1
accum 0 abort_if_equal 0
alertentity t25
wait 1000
accum 0 abort_if_equal 0
alertentity t24
wait 1000
accum 0 abort_if_equal 0
alertentity t23
wait 1000
accum 0 abort_if_equal 0
alertentity t22
wait 1000
accum 0 abort_if_equal 0
alertentity t21
wait 1000
accum 0 abort_if_equal 0
alertentity t3
wait 1000
accum 0 abort_if_equal 0
alertentity t4
wait 1000
accum 0 abort_if_equal 0
alertentity t5
wait 1000
accum 0 abort_if_equal 0
alertentity t6
wait 1000
accum 0 abort_if_equal 0
alertentity t7
wait 1000
accum 0 abort_if_equal 0
alertentity t8
wait 1000
accum 0 abort_if_equal 0
alertentity t9
wait 1000
accum 0 abort_if_equal 0
alertentity t10
wait 1000
accum 0 abort_if_equal 0
alertentity t11
wait 1000
accum 0 abort_if_equal 0
alertentity t12
wait 1000
accum 0 abort_if_equal 0
alertentity t13
wm_setwinner 1
wait 2000
wm_endround
}
trigger axis_capture
{
accum 0 abort_if_equal 0
accum 0 set 0
alertentity t14
}
}
alliedflag
{
spawn
{
wait 300
accum 1 set 1
}
trigger axis_capture
{
accum 1 abort_if_equal 0
playsound sound/misc/vote.wav volume 400
wait 200
accum 1 set 0
accum 1 abort_if_equal 1
alertentity r15
wait 1000
accum 1 abort_if_equal 1
alertentity r14
wait 1000
accum 1 abort_if_equal 1
alertentity r13
wait 1000
accum 1 abort_if_equal 1
alertentity r12
wait 1000
accum 1 abort_if_equal 1
alertentity r11
wait 1000
accum 1 abort_if_equal 1
alertentity r10
wait 1000
accum 1 abort_if_equal 1
alertentity r9
wait 1000
accum 1 abort_if_equal 1
alertentity r8
wait 1000
accum 1 abort_if_equal 1
alertentity r7
wait 1000
accum 1 abort_if_equal 1
alertentity r6
wait 1000
accum 1 abort_if_equal 1
alertentity r5
wait 1000
accum 1 abort_if_equal 1
alertentity r4
wait 1000
accum 1 abort_if_equal 1
alertentity r3
wait 1000
accum 1 abort_if_equal 1
alertentity r2
wait 1000
accum 1 abort_if_equal 1
alertentity r1
wait 1000
accum 1 abort_if_equal 1
alertentity r0
wm_setwinner 0
wait 2000
wm_endround
}
trigger allied_capture
{
accum 1 abort_if_equal 1
accum 1 set 1
alertentity r16
}
}