Guest User

Overwatch Workshop: Orisa Superdampener by Zumoro#11477

a guest
May 23rd, 2019
1,715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. rule("Configuration: R=Radius, M=Movement Speed, B=Projectile Speed, a=Aim Speed")
  2. {
  3. event
  4. {
  5. Ongoing - Global;
  6. }
  7.  
  8. conditions
  9. {
  10. Is Game In Progress == True;
  11. }
  12.  
  13. actions
  14. {
  15. Set Global Variable(R, 20);
  16. Set Global Variable(M, 25);
  17. Set Global Variable(B, 25);
  18. Set Global Variable(A, 100);
  19. }
  20. }
  21.  
  22. rule("Spawn Superdampener, expires after 8 seconds")
  23. {
  24. event
  25. {
  26. Ongoing - Each Player;
  27. Team 1;
  28. Orisa;
  29. }
  30.  
  31. conditions
  32. {
  33. Is Button Held(Event Player, Ultimate) == True;
  34. Player Variable(Event Player, E) == False;
  35. }
  36.  
  37. actions
  38. {
  39. Set Global Variable(P, Position Of(Event Player));
  40. Create Effect(All Players(All Teams), Sphere, Purple, Global Variable(P), Global Variable(R), Visible To Position and Radius);
  41. Set Player Variable(Event Player, E, Last Created Entity);
  42. Wait(8, Ignore Condition);
  43. Set Global Variable(P, False);
  44. Destroy Effect(Player Variable(Event Player, E));
  45. Set Player Variable(Event Player, E, 0);
  46. }
  47. }
  48.  
  49. rule("Apply slow to any enemy players in radius while active")
  50. {
  51. event
  52. {
  53. Ongoing - Each Player;
  54. Team 2;
  55. All;
  56. }
  57.  
  58. conditions
  59. {
  60. Global Variable(P) != False;
  61. Distance Between(Event Player, Global Variable(P)) <= Global Variable(R);
  62. }
  63.  
  64. actions
  65. {
  66. Set Move Speed(Event Player, Global Variable(M));
  67. Set Projectile Speed(Event Player, Global Variable(B));
  68. Set Aim Speed(Event Player, Global Variable(A));
  69. }
  70. }
  71.  
  72. rule("Remove slow from players outside radius")
  73. {
  74. event
  75. {
  76. Ongoing - Each Player;
  77. Team 2;
  78. All;
  79. }
  80.  
  81. conditions
  82. {
  83. Global Variable(P) != False;
  84. Distance Between(Event Player, Global Variable(P)) > Global Variable(R);
  85. }
  86.  
  87. actions
  88. {
  89. Set Move Speed(Event Player, 100);
  90. Set Projectile Speed(Event Player, 100);
  91. Set Aim Speed(Event Player, 100);
  92. }
  93. }
  94.  
  95. rule("Remove Slow From players if inactive")
  96. {
  97. event
  98. {
  99. Ongoing - Each Player;
  100. Team 2;
  101. All;
  102. }
  103.  
  104. conditions
  105. {
  106. Global Variable(P) == False;
  107. }
  108.  
  109. actions
  110. {
  111. Set Move Speed(Event Player, 100);
  112. Set Projectile Speed(Event Player, 100);
  113. Set Aim Speed(Event Player, 100);
  114. }
  115. }
  116.  
  117. rule("Play Effect While Active, because i'm snazzy")
  118. {
  119. event
  120. {
  121. Ongoing - Global;
  122. }
  123.  
  124. conditions
  125. {
  126. Global Variable(P) != False;
  127. }
  128.  
  129. actions
  130. {
  131. Play Effect(All Players(All Teams), Ring Explosion, Purple, Global Variable(P), 40);
  132. Wait(1, Ignore Condition);
  133. Loop If Condition Is True;
  134. }
  135. }
Add Comment
Please, Sign In to add comment