Advertisement
Guest User

Untitled

a guest
May 10th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1.  
  2. #library "WIND"
  3. int vol;
  4.  
  5. script 1 enter
  6. {
  7. str class = "AmbientSound";
  8.  
  9.  
  10. delay(1);
  11.  
  12. do {
  13. delay(1);
  14. int posx = GetActorX(0);
  15. int posy = GetActorY(0);
  16. int posz = GetActorZ(0) + 1.0;
  17. int angle = GetActorAngle(0) >> 8;
  18.  
  19. }
  20. until (SpawnForced("AmbientSound", posx, posy, posz, 1516));
  21. Thing_Activate(1516);
  22. SetThingSpecial(1516, 0, 1, vol);
  23.  
  24. delay(1);
  25. }
  26.  
  27. script 2 enter
  28. {
  29. While (1)
  30. {
  31. SetThingSpecial(1516, 0, 1, vol);
  32.  
  33. If (CheckActorCeilingTexture(0, "F_SKY1"))
  34. {
  35. If (Vol<100)
  36. {
  37. Vol+=10;
  38. }
  39. Else
  40. {
  41. Vol+=0;
  42. };
  43.  
  44. sector_setfade(0, vol, 0, 0);
  45. Delay(1);
  46. }
  47. Else
  48. {
  49. If (Vol>0)
  50. {
  51. Vol-=10;
  52. }
  53. Else
  54. {
  55. Vol-=0;
  56. };
  57.  
  58. sector_setfade(0, vol, 0, 0);
  59. Delay(1);
  60. }
  61. }
  62. Delay(1);
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement