Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rule("Configuration: R=Radius, M=Movement Speed, B=Projectile Speed, a=Aim Speed")
- {
- event
- {
- Ongoing - Global;
- }
- conditions
- {
- Is Game In Progress == True;
- }
- actions
- {
- Set Global Variable(R, 20);
- Set Global Variable(M, 25);
- Set Global Variable(B, 25);
- Set Global Variable(A, 100);
- }
- }
- rule("Spawn Superdampener, expires after 8 seconds")
- {
- event
- {
- Ongoing - Each Player;
- Team 1;
- Orisa;
- }
- conditions
- {
- Is Button Held(Event Player, Ultimate) == True;
- Player Variable(Event Player, E) == False;
- }
- actions
- {
- Set Global Variable(P, Position Of(Event Player));
- Create Effect(All Players(All Teams), Sphere, Purple, Global Variable(P), Global Variable(R), Visible To Position and Radius);
- Set Player Variable(Event Player, E, Last Created Entity);
- Wait(8, Ignore Condition);
- Set Global Variable(P, False);
- Destroy Effect(Player Variable(Event Player, E));
- Set Player Variable(Event Player, E, 0);
- }
- }
- rule("Apply slow to any enemy players in radius while active")
- {
- event
- {
- Ongoing - Each Player;
- Team 2;
- All;
- }
- conditions
- {
- Global Variable(P) != False;
- Distance Between(Event Player, Global Variable(P)) <= Global Variable(R);
- }
- actions
- {
- Set Move Speed(Event Player, Global Variable(M));
- Set Projectile Speed(Event Player, Global Variable(B));
- Set Aim Speed(Event Player, Global Variable(A));
- }
- }
- rule("Remove slow from players outside radius")
- {
- event
- {
- Ongoing - Each Player;
- Team 2;
- All;
- }
- conditions
- {
- Global Variable(P) != False;
- Distance Between(Event Player, Global Variable(P)) > Global Variable(R);
- }
- actions
- {
- Set Move Speed(Event Player, 100);
- Set Projectile Speed(Event Player, 100);
- Set Aim Speed(Event Player, 100);
- }
- }
- rule("Remove Slow From players if inactive")
- {
- event
- {
- Ongoing - Each Player;
- Team 2;
- All;
- }
- conditions
- {
- Global Variable(P) == False;
- }
- actions
- {
- Set Move Speed(Event Player, 100);
- Set Projectile Speed(Event Player, 100);
- Set Aim Speed(Event Player, 100);
- }
- }
- rule("Play Effect While Active, because i'm snazzy")
- {
- event
- {
- Ongoing - Global;
- }
- conditions
- {
- Global Variable(P) != False;
- }
- actions
- {
- Play Effect(All Players(All Teams), Ring Explosion, Purple, Global Variable(P), 40);
- Wait(1, Ignore Condition);
- Loop If Condition Is True;
- }
- }
Add Comment
Please, Sign In to add comment