Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.78 KB | None | 0 0
  1. rule("speed up")
  2. {
  3. event
  4. {
  5. Ongoing - Each Player;
  6. All;
  7. All;
  8. }
  9.  
  10. conditions
  11. {
  12. Is Using Ability 1(Event Player) == True;
  13. Hero Of(Event Player) == Hero(Orisa);
  14. }
  15.  
  16. actions
  17. {
  18. Set Move Speed(Event Player, Player Variable(Event Player, A));
  19. Set Player Variable(Event Player, A, Add(Player Variable(Event Player, A), 10));
  20. Start Forcing Throttle(Event Player, 1, 1, 0, 0, 0, 0);
  21. Set Ability 2 Enabled(Event Player, False);
  22. Set Primary Fire Enabled(Event Player, False);
  23. Set Secondary Fire Enabled(Event Player, False);
  24. Set Aim Speed(Event Player, 15);
  25. Wait(0.250, Ignore Condition);
  26. Loop If Condition Is True;
  27. }
  28. }
  29.  
  30. rule("speed normal")
  31. {
  32. event
  33. {
  34. Ongoing - Each Player;
  35. All;
  36. All;
  37. }
  38.  
  39. conditions
  40. {
  41. Is Using Ability 1(Event Player) == False;
  42. Hero Of(Event Player) == Hero(Orisa);
  43. }
  44.  
  45. actions
  46. {
  47. Skip If(Has Status(Event Player, Asleep), 5);
  48. Skip If(Compare(Speed Of(Event Player), <=, 4.500), 4);
  49. Set Player Variable(Event Player, A, Subtract(Player Variable(Event Player, A), 24));
  50. Set Move Speed(Event Player, Player Variable(Event Player, A));
  51. Wait(0.250, Ignore Condition);
  52. Loop If(And(Compare(Player Variable(Event Player, A), >, 100), Compare(Is Using Ability 1(Event Player), ==, False)));
  53. Stop Forcing Throttle(Event Player);
  54. Set Player Variable(Event Player, A, 100);
  55. Set Move Speed(Event Player, Player Variable(Event Player, A));
  56. Set Ability 2 Enabled(Event Player, True);
  57. Set Primary Fire Enabled(Event Player, True);
  58. Set Secondary Fire Enabled(Event Player, True);
  59. Set Aim Speed(Event Player, 100);
  60. }
  61. }
  62.  
  63. rule("team 1")
  64. {
  65. event
  66. {
  67. Ongoing - Each Player;
  68. Team 2;
  69. All;
  70. }
  71.  
  72. conditions
  73. {
  74. Compare(Distance Between(Event Player, Players On Hero(Hero(Orisa), Team 2)), <=, 3) == True;
  75. Is In Line of Sight(Event Player, Players On Hero(Hero(Orisa), Team 2), Barriers Do Not Block LOS) == True;
  76. Is Using Ability 1(Players Within Radius(Position Of(Event Player), 5, Team 2, Off)) == True;
  77. Compare(Player Variable(Closest Player To(Position Of(Event Player), Team 2), A), >=, 150) == True;
  78. }
  79.  
  80. actions
  81. {
  82. Apply Impulse(Event Player, Add(Facing Direction Of(Closest Player To(Position Of(Event Player), Team 2)), Vector(0, 1, 0)), 15,
  83. To Player, Cancel Contrary Motion);
  84. Damage(Event Player, Closest Player To(Position Of(Event Player), Team 2), 50);
  85. Set Status(Event Player, Closest Player To(Position Of(Event Player), Team 2), Stunned, 0.500);
  86. Wait(1.500, Ignore Condition);
  87. Loop If Condition Is True;
  88. }
  89. }
  90.  
  91. rule("team 2")
  92. {
  93. event
  94. {
  95. Ongoing - Each Player;
  96. Team 2;
  97. All;
  98. }
  99.  
  100. conditions
  101. {
  102. Compare(Distance Between(Event Player, Players On Hero(Hero(Orisa), Team 1)), <=, 3) == True;
  103. Is In Line of Sight(Event Player, Players On Hero(Hero(Orisa), Team 1), Barriers Do Not Block LOS) == True;
  104. Is Using Ability 1(Players Within Radius(Position Of(Event Player), 5, Team 1, Off)) == True;
  105. Compare(Player Variable(Closest Player To(Position Of(Event Player), Team 1), A), >=, 150) == True;
  106. }
  107.  
  108. actions
  109. {
  110. Apply Impulse(Event Player, Add(Facing Direction Of(Closest Player To(Position Of(Event Player), Team 1)), Vector(0, 1, 0)), 15,
  111. To Player, Cancel Contrary Motion);
  112. Damage(Event Player, Closest Player To(Position Of(Event Player), Team 1), 50);
  113. Set Status(Event Player, Closest Player To(Position Of(Event Player), Team 1), Stunned, 0.500);
  114. Wait(1.500, Ignore Condition);
  115. Loop If Condition Is True;
  116. }
  117. }
  118.  
  119. rule("camera")
  120. {
  121. event
  122. {
  123. Ongoing - Each Player;
  124. All;
  125. All;
  126. }
  127.  
  128. conditions
  129. {
  130. Is Using Ability 1(Event Player) == True;
  131. Hero Of(Event Player) == Hero(Orisa);
  132. }
  133.  
  134. actions
  135. {
  136. Start Camera(Event Player, Add(Add(Add(Event Player, World Vector Of(Vector(Multiply(Player Variable(Event Player, E), 0), 0.500,
  137. -1.000), Event Player, Rotation)), Multiply(Up, Player Variable(Event Player, C))), Multiply(Facing Direction Of(Event Player),
  138. Player Variable(Event Player, E))), Add(Add(Event Player, Multiply(Up, Player Variable(Event Player, D))), Multiply(
  139. Facing Direction Of(Event Player), Player Variable(Event Player, B))), 100);
  140. Wait(0.250, Ignore Condition);
  141. }
  142. }
  143.  
  144. rule("stop camera")
  145. {
  146. event
  147. {
  148. Ongoing - Each Player;
  149. All;
  150. All;
  151. }
  152.  
  153. conditions
  154. {
  155. Is Using Ability 1(Event Player) == False;
  156. }
  157.  
  158. actions
  159. {
  160. Stop Camera(Event Player);
  161. }
  162. }
  163.  
  164. rule("variables")
  165. {
  166. event
  167. {
  168. Ongoing - Each Player;
  169. All;
  170. All;
  171. }
  172.  
  173. conditions
  174. {
  175. Hero Of(Event Player) == Hero(Orisa);
  176. }
  177.  
  178. actions
  179. {
  180. Set Player Variable(Event Player, B, 50);
  181. Set Player Variable(Event Player, C, 2);
  182. Set Player Variable(Event Player, D, 1.500);
  183. Set Player Variable(Event Player, E, -3.000);
  184. Set Player Variable(Event Player, F, 0.500);
  185. }
  186. }
  187.  
  188. rule("gui")
  189. {
  190. event
  191. {
  192. Ongoing - Each Player;
  193. All;
  194. All;
  195. }
  196.  
  197. actions
  198. {
  199. Create HUD Text(All Players(All Teams), String("-> {0}", Player Variable(Event Player, A), Null, Null), Null, Null, Left, 0, White,
  200. White, White, Visible To and String);
  201. }
  202. }
  203.  
  204. rule("stun")
  205. {
  206. event
  207. {
  208. Ongoing - Each Player;
  209. All;
  210. All;
  211. }
  212.  
  213. conditions
  214. {
  215. Is Using Ability 1(Event Player) == True;
  216. Hero Of(Event Player) == Hero(Orisa);
  217. }
  218.  
  219. actions
  220. {
  221. Wait(0.250, Ignore Condition);
  222. Set Player Variable(Event Player, F, Add(Player Variable(Event Player, F), 0.250));
  223. Skip If(Or(Compare(Speed Of(Event Player), <=, 4.500), Is Crouching(Event Player)), 1);
  224. Loop If(Is Using Ability 1(Event Player));
  225. Skip If(Compare(Is Using Ability 1(Event Player), !=, True), 2);
  226. Set Status(Event Player, Null, Asleep, Subtract(5, Player Variable(Event Player, F)));
  227. Apply Impulse(Event Player, Add(Backward, Vector(0, 1, 0)), 8, To Player, Cancel Contrary Motion);
  228. Set Player Variable(Event Player, F, 0.500);
  229. }
  230. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement