Advertisement
Barrackoli

Explosion Sounds

Feb 21st, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. @name Explosion Sounds
  2. @inputs Boom
  3. @persist Players:array
  4. runOnTick(1)
  5.  
  6. Players = players()
  7.  
  8. for (I=1,Players:count()) {
  9. if (changed(Boom)&Boom) {
  10. Players[I,entity]:soundPlay(I,0,"ambient/halloween/thunder_06.wav")
  11. Players[I,entity]:soundPlay((Players:count()+I),0,"ambient/halloween/mysterious_perc_02.wav")
  12. timer("stop",8000)
  13. }
  14. if (clk("stop")) {
  15. for (F=1,(Players:count()*2)) {
  16. soundStop(F)
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement