Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. rule("Rule 1")
  2. {
  3. event
  4. {
  5. Ongoing - Each Player;
  6. All;
  7. Slot 0;
  8. }
  9.  
  10. conditions
  11. {
  12. Is Button Held(Event Player, Interact) == True;
  13. }
  14.  
  15. actions
  16. {
  17. Wait(1, Abort When False);
  18. Create Dummy Bot(Hero(Reinhardt), All Teams, -1.000, Vector(0, 0, 0), Vector(0, 0, 0));
  19. Create Dummy Bot(Hero(Ana), All Teams, -1.000, Vector(0, 0, 0), Vector(0, 0, 0));
  20. Create Dummy Bot(Hero(Ashe), All Teams, -1.000, Vector(0, 0, 0), Vector(0, 0, 0));
  21. }
  22. }
  23.  
  24. rule("Rule 3")
  25. {
  26. event
  27. {
  28. Ongoing - Each Player;
  29. All;
  30. Slot 0;
  31. }
  32.  
  33. conditions
  34. {
  35. Is Button Held(Event Player, Secondary Fire) == True;
  36. }
  37.  
  38. actions
  39. {
  40. Wait(1, Abort When False);
  41. Press Button(All Players(All Teams), Primary Fire);
  42. }
  43. }
  44.  
  45. rule("Rule 3")
  46. {
  47. event
  48. {
  49. Ongoing - Each Player;
  50. All;
  51. Slot 0;
  52. }
  53.  
  54. conditions
  55. {
  56. Is Button Held(Event Player, Crouch) == True;
  57. }
  58.  
  59. actions
  60. {
  61. Wait(1, Abort When False);
  62. Damage(All Players(All Teams), Null, 100);
  63. }
  64. }
  65.  
  66. rule("reaperheal0")
  67. {
  68. event
  69. {
  70. Player Took Damage;
  71. All;
  72. All;
  73. }
  74.  
  75. conditions
  76. {
  77. Hero Of(Victim) == Hero(Reinhardt);
  78. Hero Of(Attacker) == Hero(Reaper);
  79. Is Firing Primary(Attacker) == True;
  80. Distance Between(Victim, Attacker) < 2;
  81. }
  82.  
  83. actions
  84. {
  85. Heal(Attacker, Null, 10);
  86. }
  87. }
  88.  
  89. rule("reaperheal1")
  90. {
  91. event
  92. {
  93. Player Took Damage;
  94. All;
  95. All;
  96. }
  97.  
  98. conditions
  99. {
  100. Hero Of(Victim) == Hero(Reinhardt);
  101. Hero Of(Attacker) == Hero(Reaper);
  102. Is Firing Primary(Attacker) == True;
  103. Distance Between(Victim, Attacker) < 5;
  104. }
  105.  
  106. actions
  107. {
  108. Heal(Attacker, Null, 20);
  109. }
  110. }
  111.  
  112. rule("reaperheal2")
  113. {
  114. event
  115. {
  116. Player Took Damage;
  117. All;
  118. All;
  119. }
  120.  
  121. conditions
  122. {
  123. Hero Of(Victim) == Hero(Reinhardt);
  124. Hero Of(Attacker) == Hero(Reaper);
  125. Is Firing Primary(Attacker) == True;
  126. Distance Between(Victim, Attacker) < 10;
  127. }
  128.  
  129. actions
  130. {
  131. Heal(Attacker, Null, 12);
  132. }
  133. }
  134.  
  135. rule("reaperheal3")
  136. {
  137. event
  138. {
  139. Player Took Damage;
  140. All;
  141. All;
  142. }
  143.  
  144. conditions
  145. {
  146. Hero Of(Victim) == Hero(Reinhardt);
  147. Hero Of(Attacker) == Hero(Reaper);
  148. Is Firing Primary(Attacker) == True;
  149. Distance Between(Victim, Attacker) < 15;
  150. }
  151.  
  152. actions
  153. {
  154. Heal(Attacker, Null, 5);
  155. }
  156. }
  157.  
  158. rule("reaperheal4")
  159. {
  160. event
  161. {
  162. Player Took Damage;
  163. All;
  164. All;
  165. }
  166.  
  167. conditions
  168. {
  169. Hero Of(Victim) == Hero(Reinhardt);
  170. Hero Of(Attacker) == Hero(Reaper);
  171. Is Firing Primary(Attacker) == True;
  172. Distance Between(Victim, Attacker) < 20;
  173. }
  174.  
  175. actions
  176. {
  177. Heal(Attacker, Null, 2);
  178. }
  179. }
  180.  
  181. rule("damage dealt same hero 0")
  182. {
  183. event
  184. {
  185. Player Dealt Damage;
  186. All;
  187. All;
  188. }
  189.  
  190. conditions
  191. {
  192. Hero Of(Victim) == Hero Of(Attacker);
  193. }
  194.  
  195. actions
  196. {
  197. Start Damage Modification(Victim, Attacker, 0, Receivers Damagers and Damage Percent);
  198. }
  199. }
  200.  
  201. rule("projectile1")
  202. {
  203. event
  204. {
  205. Ongoing - Each Player;
  206. All;
  207. Ana;
  208. }
  209.  
  210. conditions
  211. {
  212. Is Firing Primary(Event Player) == True;
  213. }
  214.  
  215. actions
  216. {
  217. Set Player Variable(Event Player, A, Ray Cast Hit Position(Eye Position(Event Player), Add(Eye Position(Event Player), Multiply(
  218. Facing Direction Of(Event Player), 1000)), Null, Event Player, True));
  219. Set Player Variable(Event Player, B, Eye Position(Event Player));
  220. Create Effect(All Players(All Teams), Sphere, Green, Player Variable(Event Player, B), 0.250, Visible To Position and Radius);
  221. Chase Player Variable At Rate(Event Player, B, Player Variable(Event Player, A), 125, Destination and Rate);
  222. }
  223. }
  224.  
  225. rule("projectileheal")
  226. {
  227. event
  228. {
  229. Ongoing - Each Player;
  230. All;
  231. All;
  232. }
  233.  
  234. conditions
  235. {
  236. Distance Between(Player Variable(Event Player, B), Filtered Array(Players On Hero(Hero(Ana), All Teams), Compare(Player Variable(
  237. Current Array Element, I), !=, 69))) < 2;
  238. }
  239.  
  240. actions
  241. {
  242. Start Heal Over Time(Closest Player To(Player Variable(Event Player, B), All Teams), Event Player, 1, 70);
  243. Set Player Variable(Event Player, B, Vector(0, 0, 0));
  244. Set Player Variable(Event Player, A, Vector(0, 0, 0));
  245. }
  246. }
  247.  
  248. rule("projectile2")
  249. {
  250. event
  251. {
  252. Ongoing - Each Player;
  253. All;
  254. Ana;
  255. }
  256.  
  257. conditions
  258. {
  259. Is Firing Primary(Event Player) == True;
  260. }
  261.  
  262. actions
  263. {
  264. Set Player Variable(Event Player, I, 69);
  265. Wait(0.250, Ignore Condition);
  266. Set Player Variable(Event Player, I, 0);
  267. }
  268. }
  269.  
  270. rule("projectile3")
  271. {
  272. event
  273. {
  274. Ongoing - Each Player;
  275. All;
  276. All;
  277. }
  278.  
  279. conditions
  280. {
  281. Distance Between(Player Variable(Event Player, B), Player Variable(Event Player, A)) < 0.020;
  282. }
  283.  
  284. actions
  285. {
  286. Set Player Variable(Event Player, B, Vector(0, 0, 0));
  287. Set Player Variable(Event Player, A, Vector(0, 0, 0));
  288. }
  289. }
  290.  
  291. rule("Rule 15")
  292. {
  293. event
  294. {
  295. Ongoing - Each Player;
  296. All;
  297. All;
  298. }
  299.  
  300. actions
  301. {
  302. Create HUD Text(All Players(All Teams), String("{0} - {1} - {2}", Health(Players On Hero(Hero(Ana), All Teams)), Null, Null), Null,
  303. Null, Left, 0, White, White, White, Visible To and String, Default Visibility);
  304. }
  305. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement