Critscan

Untitled

Jan 1st, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. variables
  2. {
  3. player:
  4. 2: effects
  5. 7: firetimer
  6. 11: flamethrowercooldown
  7. }
  8.  
  9. rule("Flamethrower DMG")
  10. {
  11. event
  12. {
  13. Ongoing - Each Player;
  14. All;
  15. All;
  16. }
  17.  
  18. conditions
  19. {
  20. Player Variable(Event Player, flamethrowercooldown) > 0;
  21. }
  22.  
  23. actions
  24. {
  25. Damage(Players Within Radius(Add(Eye Position(Event Player), Multiply(Facing Direction Of(Event Player), 7)), 3, All Teams, Off),
  26. Event Player, 2);
  27. Set Player Variable(Players Within Radius(Add(Eye Position(Event Player), Multiply(Facing Direction Of(Event Player), 7)), 3,
  28. All Teams, Off), firetimer, 1);
  29. Damage(Players Within Radius(Add(Eye Position(Event Player), Multiply(Facing Direction Of(Event Player), 4)), 3, All Teams, Off),
  30. Event Player, 2);
  31. Set Player Variable(Players Within Radius(Add(Eye Position(Event Player), Multiply(Facing Direction Of(Event Player), 4)), 3,
  32. All Teams, Off), firetimer, 1);
  33. Modify Player Variable(Event Player, flamethrowercooldown, Subtract, 0.100);
  34. Wait(0.100, Ignore Condition);
  35. Skip If(Compare(Is Dead(Event Player), ==, True), 1);
  36. Loop If Condition Is True;
  37. Destroy Effect(Value In Array(Player Variable(Event Player, effects), 1));
  38. Set Player Variable(Event Player, flamethrowercooldown, 0);
  39. }
  40. }
Add Comment
Please, Sign In to add comment