Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. Scriptname aaaRWLInteriorSoundControlScript
  2.  
  3. ;Controls interior weather sounds
  4.  
  5. float timer
  6.  
  7. begin gamemode
  8.  
  9. ;Move the disabled activators to the player every 3 seconds to reduce the delay of the sound (?)
  10.  
  11. if timer < 3
  12. set timer to timer + GetSecondsPassed
  13. else
  14.  
  15. ;If timer has passed, do stuff here
  16.  
  17. ;If player is inside, move and activate the weathers corresponding sound.
  18.  
  19. if player.isininterior == 1
  20. if IsDustyRWL
  21. DustySound.MoveTo player
  22. DustySound.enable
  23. elseif IsOvercastRWL
  24. DistThunderSound.MoveTo player
  25. DistThunderSound.enable
  26. elseif IsLightRainingRWL
  27. LightRainSound.MoveTo player
  28. LightRainSound.enable
  29. elseif IsThunderStormRWL
  30. HeavyRainSound.MoveTo player
  31. HeavyRainSound.enable
  32. elseif IsLightWindRWL
  33. LightWindSound.MoveTo player
  34. LightWindSound.enable
  35. elseif IsHeavyWindRWL
  36. HeavyWindSound.MoveTo player
  37. HeavyWindSound.enable
  38. elseif IsAnchorageRWL
  39. AnchorageSound.MoveTo player
  40. AnchorageSound.enable
  41. elseif IsZionRainRWL
  42. HHThunderSound.MoveTo player
  43. HHThunderSound.enable
  44.  
  45. ;If weather isn't running, disable them
  46.  
  47. elseif IsDustyRWL == 0
  48. DustySound.MoveTo Rain1
  49. DustySound.disable
  50. elseif IsOvercastRWL == 0
  51. DistThunderSound.MoveTo Rain1
  52. DistThunderSound.disable
  53. elseif IsLightRainingRWL == 0
  54. LightRainSound.MoveTo Rain1
  55. LightRainSound.disable
  56. elseif IsThunderStormRWL == 0
  57. HeavyRainSound.MoveTo Rain1
  58. HeavyRainSound.disable
  59. elseif IsLightWindRWL == 0
  60. LightWindSound.MoveTo Rain1
  61. LightWindSound.disable
  62. elseif IsHeavyWindRWL == 0
  63. HeavyWindSound.MoveTo Rain1
  64. HeavyWindSound.disable
  65. elseif IsAnchorageRWL == 0
  66. AnchorageSound.MoveTo Rain1
  67. AnchorageSound.disable
  68. elseif IsZionRainRWL == 0
  69. HHThunderSound.MoveTo Rain1
  70. HHThunderSound.disable
  71.  
  72. ;If player is outside, disable them
  73.  
  74. else
  75. DustySound.disable
  76. DistThunderSound.disable
  77. LightRainSound.disable
  78. HeavyRainSound.disable
  79. LightWindSound.disable
  80. HeavyWindSound.disable
  81. AnchorageSound.disable
  82. HHThunderSound.disable
  83. set timer to 0
  84. endif
  85. endif
  86. endif
  87.  
  88. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement