Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables
- {
- player:
- 2: effects
- 7: firetimer
- 11: flamethrowercooldown
- }
- rule("Flamethrower DMG")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Player Variable(Event Player, flamethrowercooldown) > 0;
- }
- actions
- {
- Damage(Players Within Radius(Add(Eye Position(Event Player), Multiply(Facing Direction Of(Event Player), 7)), 3, All Teams, Off),
- Event Player, 2);
- Set Player Variable(Players Within Radius(Add(Eye Position(Event Player), Multiply(Facing Direction Of(Event Player), 7)), 3,
- All Teams, Off), firetimer, 1);
- Damage(Players Within Radius(Add(Eye Position(Event Player), Multiply(Facing Direction Of(Event Player), 4)), 3, All Teams, Off),
- Event Player, 2);
- Set Player Variable(Players Within Radius(Add(Eye Position(Event Player), Multiply(Facing Direction Of(Event Player), 4)), 3,
- All Teams, Off), firetimer, 1);
- Modify Player Variable(Event Player, flamethrowercooldown, Subtract, 0.100);
- Wait(0.100, Ignore Condition);
- Skip If(Compare(Is Dead(Event Player), ==, True), 1);
- Loop If Condition Is True;
- Destroy Effect(Value In Array(Player Variable(Event Player, effects), 1));
- Set Player Variable(Event Player, flamethrowercooldown, 0);
- }
- }
Add Comment
Please, Sign In to add comment