Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement