Advertisement
abitoftaste

Untitled

Jul 6th, 2024
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. begin ab01StriderActiSndScr
  2.  
  3. ; assuming 17 new jblSilt_01 .. jblSilt_17 sounds are available
  4. ; attach this local script to a_siltstrider activator /abot
  5.  
  6. if ( MenuMode )
  7. return
  8. endif
  9.  
  10. ; stop standard sounds
  11. StopSound Silt_1
  12. StopSound Silt_2
  13. StopSound Silt_3
  14.  
  15. float t1
  16. if ( t1 > 0 )
  17. set t1 to ( t1 - GetSecondsPassed )
  18. return
  19. endif
  20. set t1 to Random 1001
  21. set t1 to ( t1 * 0.0005 ) ; 0 <= t1 <= 0.5
  22. set t1 to ( t1 + 9.5 ) ; 9.5 <= t1 <= 10, change delay as needed
  23.  
  24. short i1
  25. set i1 to Random 16001
  26. set i1 to ( i1 * 0.001 ) ; 0 <= i1 <= 16 )
  27. set i1 to ( i1 + 1 ) ; 1 <= i1 <= 17 )
  28.  
  29. if ( i1 >= 12 )
  30. if ( i1 == 17 )
  31. PlaySound3dVP jblSilt_17 1.0 1.0
  32. ; (eventually, if you need a different delay); same for the other sounds e.g.
  33. ; set t1 to 8.7
  34. return
  35. endif
  36. if ( i1 == 16 )
  37. PlaySound3dVP jblSilt_16 1.0 1.0
  38. return
  39. endif
  40. if ( i1 == 15 )
  41. PlaySound3dVP jblSilt_15 1.0 1.0
  42. return
  43. endif
  44. if ( i1 == 14 )
  45. PlaySound3dVP jblSilt_14 1.0 1.0
  46. return
  47. endif
  48. if ( i1 == 13 )
  49. PlaySound3dVP jblSilt_13 1.0 1.0
  50. return
  51. endif
  52. if ( i1 == 12 )
  53. PlaySound3dVP jblSilt_12 1.0 1.0
  54. return
  55. endif
  56. return
  57. endif
  58.  
  59. if ( i1 >= 6 )
  60. if ( i1 == 11 )
  61. PlaySound3dVP jblSilt_11 1.0 1.0
  62. return
  63. endif
  64. if ( i1 == 10 )
  65. PlaySound3dVP jblSilt_10 1.0 1.0
  66. return
  67. endif
  68. if ( i1 == 9 )
  69. PlaySound3dVP jblSilt_09 1.0 1.0
  70. return
  71. endif
  72. if ( i1 == 8 )
  73. PlaySound3dVP jblSilt_08 1.0 1.0
  74. return
  75. endif
  76. if ( i1 == 7 )
  77. PlaySound3dVP jblSilt_07 1.0 1.0
  78. return
  79. endif
  80. if ( i1 == 6 )
  81. PlaySound3dVP jblSilt_06 1.0 1.0
  82. return
  83. endif
  84. return
  85. endif
  86.  
  87. if ( i1 == 5 )
  88. PlaySound3dVP jblSilt_05 1.0 1.0
  89. return
  90. endif
  91.  
  92. if ( i1 == 4 )
  93. PlaySound3dVP jblSilt_04 1.0 1.0
  94. return
  95. endif
  96.  
  97. if ( i1 == 3 )
  98. PlaySound3dVP jblSilt_03 1.0 1.0
  99. return
  100. endif
  101.  
  102. if ( i1 == 2 )
  103. PlaySound3dVP jblSilt_02 1.0 1.0
  104. return
  105. endif
  106.  
  107. if ( i1 == 1 )
  108. PlaySound3dVP jblSilt_01 1.0 1.0
  109. endif
  110.  
  111. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement