Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. rule("Rule 1")
  2. {
  3. event
  4. {
  5. Ongoing - Each Player;
  6. All;
  7. All;
  8. }
  9.  
  10. conditions
  11. {
  12. Is Button Held(Event Player, Secondary Fire) == True;
  13. Or(Compare(Players In Slot(0, All Teams), ==, Event Player), Compare(Players In Slot(1, All Teams), ==, Event Player)) == True;
  14. }
  15.  
  16. actions
  17. {
  18. Wait(0.016, Ignore Condition);
  19. Set Player Variable(Event Player, B, Event Player);
  20. Skip If(Compare(Count Of(Filtered Array(Players in View Angle(Event Player, All Teams, 360), Is In Line of Sight(Event Player,
  21. Current Array Element, Barriers Do Not Block LOS))), ==, 0), 1);
  22. Start Facing(Event Player, Direction Towards(Eye Position(Event Player), World Vector Of(Vector(0, 1.555, 0), Value In Array(
  23. Filtered Array(Players in View Angle(Event Player, All Teams, 360), Is In Line of Sight(Event Player, Current Array Element,
  24. Barriers Do Not Block LOS)), 0), Rotation And Translation)), 10000, To World, Direction and Turn Rate);
  25. Skip If(Compare(Count Of(Filtered Array(Players in View Angle(Event Player, All Teams, 360), Is In Line of Sight(Event Player,
  26. Current Array Element, Barriers Do Not Block LOS))), !=, 0), 1);
  27. Stop Facing(Event Player);
  28. Set Ultimate Ability Enabled(Event Player, True);
  29. Loop If Condition Is True;
  30. }
  31. }
  32.  
  33. rule("Rule 3")
  34. {
  35. event
  36. {
  37. Ongoing - Each Player;
  38. All;
  39. All;
  40. }
  41.  
  42. conditions
  43. {
  44. Is Button Held(Event Player, Secondary Fire) == False;
  45. }
  46.  
  47. actions
  48. {
  49. Stop Facing(Event Player);
  50. }
  51. }
  52.  
  53. rule("Rule 4")
  54. {
  55. event
  56. {
  57. Ongoing - Each Player;
  58. All;
  59. Slot 0;
  60. }
  61.  
  62. actions
  63. {
  64. Wait(Random Real(0.500, 1), Ignore Condition);
  65. Set Damage Received(Event Player, 0);
  66. Wait(Random Real(0.500, 1), Ignore Condition);
  67. Set Damage Received(Event Player, 100);
  68. }
  69. }
  70.  
  71. rule("Rule 4")
  72. {
  73. event
  74. {
  75. Ongoing - Each Player;
  76. All;
  77. Slot 1;
  78. }
  79.  
  80. actions
  81. {
  82. Wait(Random Real(0.500, 1), Ignore Condition);
  83. Set Damage Received(Event Player, 0);
  84. Wait(Random Real(0.500, 1), Ignore Condition);
  85. Set Damage Received(Event Player, 100);
  86. }
  87. }
  88.  
  89. rule("Rule 6")
  90. {
  91. event
  92. {
  93. Ongoing - Each Player;
  94. All;
  95. Slot 0;
  96. }
  97.  
  98. conditions
  99. {
  100. Match Time >= 120;
  101. }
  102.  
  103. actions
  104. {
  105. Set Player Score(Event Player, 5);
  106. Wait(1, Ignore Condition);
  107. Loop;
  108. }
  109. }
  110.  
  111. rule("Rule 6")
  112. {
  113. event
  114. {
  115. Ongoing - Each Player;
  116. All;
  117. Slot 1;
  118. }
  119.  
  120. conditions
  121. {
  122. Match Time >= 120;
  123. }
  124.  
  125. actions
  126. {
  127. Set Player Score(Event Player, 5);
  128. Wait(1, Ignore Condition);
  129. Loop;
  130. }
  131. }
  132.  
  133. rule("Rule 8")
  134. {
  135. event
  136. {
  137. Ongoing - Each Player;
  138. All;
  139. All;
  140. }
  141.  
  142. actions
  143. {
  144. Create Icon(Player Variable(Event Player, A), Event Player, Arrow: Down, Visible To and Position, Red, True);
  145. Create Icon(Player Variable(Event Player, B), Event Player, Arrow: Down, Visible To and Position, Red, True);
  146. }
  147. }
  148.  
  149. rule("Rule 9")
  150. {
  151. event
  152. {
  153. Player Died;
  154. All;
  155. All;
  156. }
  157.  
  158. actions
  159. {
  160. Respawn(Event Player);
  161. }
  162. }
  163.  
  164. disabled rule("Rule 10")
  165. {
  166. event
  167. {
  168. Ongoing - Each Player;
  169. All;
  170. All;
  171. }
  172.  
  173. conditions
  174. {
  175. Is Button Held(Event Player, Secondary Fire) == True;
  176. Players in View Angle(Event Player, Opposite Team Of(Team Of(Event Player)), 1) == True;
  177. }
  178.  
  179. actions
  180. {
  181. Press Button(Event Player, Primary Fire);
  182. Wait(0.500, Ignore Condition);
  183. Loop If Condition Is True;
  184. }
  185. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement