Return to post
- settings
- {
- main
- {
- Description: "Force team to stay inside the radius. You can change the effect to kill, stun or teleport if they go outside the radius. Only Reinhardt can enable/disable functions. © Palcom"
- }
- lobby
- {
- Max Spectators: 12
- Max Team 2 Players: 0
- }
- modes
- {
- Assault
- {
- enabled maps
- {
- }
- }
- Control
- {
- enabled maps
- {
- }
- }
- Escort
- {
- enabled maps
- {
- }
- }
- Hybrid
Skirmish
- General
- {
- Game Mode Start: Manual
- Limit Roles: 2 Of Each Role Per Team
Respawn Time Scalar: 0%
- Respawn Time Scalar: 24%
- }
- }
- }
- variables
- {
- global:
- 1: Radius
- 2: KILL
- 3: STUN
- 4: TP
- 5: ACTIVATED
- 6: Radius_Green
- 7: Radius_Red
- }
- rule("Initialize")
- {
- event
- {
- Ongoing - Global;
- }
- actions
- {
- Global.ACTIVATED = False;
- Global.KILL = True;
- Global.TP = False;
- Global.STUN = False;
- Global.Radius = 7;
- }
- }
- rule("HUD")
- {
- event
- {
- Ongoing - Global;
- }
- actions
- {
- disabled Create HUD Text(All Players(All Teams), Custom String("Radius: {0}", Global.Radius), Null, Null, Top, 20, Color(White), Color(
- White), Color(White), Visible To and String, Default Visibility);
- Create HUD Text(All Players(All Teams), Null, Custom String("Activated [Press {1}+{2}]", Null, Input Binding String(Button(
- Crouch)), Input Binding String(Button(Jump))), Custom String("{0}", Global.ACTIVATED), Left, 20, Color(White), Color(White),
- Color(Green), Visible To and String, Default Visibility);
- Create HUD Text(All Players(All Teams), Null, Custom String("Kill enabled [Press {1}+{2}]", Null, Input Binding String(Button(
- Crouch)), Input Binding String(Button(Ultimate))), Custom String("{0}", Global.KILL), Left, 21, Color(White), Color(White),
- Color(Red), Visible To and String, Default Visibility);
- Create HUD Text(All Players(All Teams), Null, Custom String("Stun enabled [Press {1}+{2}]", Null, Input Binding String(Button(
- Crouch)), Input Binding String(Button(Reload))), Custom String("{0}", Global.STUN), Left, 22, Color(White), Color(White),
- Color(Yellow), Visible To and String, Default Visibility);
- Create HUD Text(All Players(All Teams), Null, Custom String("Teleport enabled [Press {1}+{2}]", Null, Input Binding String(Button(
- Crouch)), Input Binding String(Button(Interact))), Custom String("{0}", Global.TP), Left, 23, Color(White), Color(White),
- Color(Blue), Visible To and String, Default Visibility);
- Create HUD Text(All Players(All Teams), Null, Null, Custom String("Increase size [{0}+{1}]", Input Binding String(Button(Crouch)),
Input Binding String(Button(Primary Fire))), Right, 20, Color(White), Color(White), Color(White), Visible To and String,
- Input Binding String(Button(Primary Fire))), Right, 0, Color(White), Color(White), Color(White), Visible To and String,
- Default Visibility);
- Create HUD Text(All Players(All Teams), Null, Null, Custom String("Decrease size [{0}+{1}]", Input Binding String(Button(Crouch)),
Input Binding String(Button(Secondary Fire))), Right, 20, Color(White), Color(White), Color(White), Visible To and String,
- Input Binding String(Button(Secondary Fire))), Right, 0, Color(White), Color(White), Color(White), Visible To and String,
- Default Visibility);
- Create HUD Text(All Players(All Teams), Null, Null, Custom String("v1.2", Input Binding String(Button(Crouch)),
- Input Binding String(Button(Secondary Fire))), Right, 0, Color(White), Color(White), Color(White), Visible To and String,
- Default Visibility);
- }
- }
- rule("RADIUS")
- {
- event
- {
- Ongoing - Global;
- }
- actions
- {
- Global.Radius = Global.Radius;
- }
- }
- rule("START")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Reinhardt;
- }
- conditions
- {
- (Is Button Held(Event Player, Button(Crouch)) && Is Button Held(Event Player, Button(Jump))) == True;
- Global.ACTIVATED == False;
- disabled Hero Of(Event Player) == Hero(Reinhardt);
- }
- actions
- {
- Destroy Effect(Event Player.A);
- Wait(0.100, Ignore Condition);
- Create Effect(All Players(All Teams), Ring, Color(White), Event Player, Global.Radius, Visible To Position and Radius);
- Event Player.A = Last Created Entity;
- Global.A = Event Player;
- Global.ACTIVATED = True;
- }
- }
- rule("END")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Reinhardt;
- }
- conditions
- {
- (Is Button Held(Event Player, Button(Crouch)) && Is Button Held(Event Player, Button(Jump))) == True;
- Global.ACTIVATED == True;
- disabled Hero Of(Event Player) == Hero(Reinhardt);
- }
- actions
- {
- Destroy Effect(Event Player.A);
- Wait(0.100, Ignore Condition);
- Global.ACTIVATED = False;
- }
- }
rule("Tp them if they are outside")
- rule("Kill them if they are outside")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Global.A != Null;
- Distance Between(Event Player, Global.A) > Global.Radius;
- Is Alive(Event Player) == True;
- Team Of(Event Player) == Team Of(Global.A);
Global.TP == True;
- Global.KILL == True;
- Global.ACTIVATED == True;
- Is In Spawn Room(Event Player) == False;
- }
- actions
- {
Teleport(Event Player, Global.A);
Wait(1, Ignore Condition);
- Kill(Event Player, Null);
- Wait(3, Ignore Condition);
- Loop If Condition Is True;
- }
- }
rule("Kill them if they are outside")
- rule("Tp them if they are outside")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Global.A != Null;
- Distance Between(Event Player, Global.A) > Global.Radius;
- Is Alive(Event Player) == True;
- Team Of(Event Player) == Team Of(Global.A);
Is In Spawn Room(Event Player) == False;
Global.KILL == True;
- Global.TP == True;
- Global.ACTIVATED == True;
- disabled Is In Spawn Room(Event Player) == False;
- }
- actions
- {
Kill(Event Player, Null);
Wait(2, Ignore Condition);
- Teleport(Event Player, Global.A);
- Wait(1, Ignore Condition);
- Loop If Condition Is True;
- }
- }
- rule("Stun them if they are outside")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Global.A != Null;
- Distance Between(Event Player, Global.A) > Global.Radius;
- Is Alive(Event Player) == True;
- Team Of(Event Player) == Team Of(Global.A);
- Global.STUN == True;
- Global.ACTIVATED == True;
- Is In Spawn Room(Event Player) == False;
- }
- actions
- {
- Set Status(Event Player, Null, Stunned, 0.500);
- Wait(1, Ignore Condition);
- Loop If Condition Is True;
- }
- }
- rule("kill to false")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Reinhardt;
- }
- conditions
- {
- (Is Button Held(Event Player, Button(Crouch)) && Is Button Held(Event Player, Button(Ultimate))) == True;
- Global.KILL == True;
- }
- actions
- {
- Wait(0.100, Ignore Condition);
- Global.KILL = False;
- }
- }
- rule("kill to true")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Reinhardt;
- }
- conditions
- {
- (Is Button Held(Event Player, Button(Crouch)) && Is Button Held(Event Player, Button(Ultimate))) == True;
- Global.KILL == False;
- }
- actions
- {
- Wait(0.100, Ignore Condition);
- Global.KILL = True;
- }
- }
- rule("stun to false")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Reinhardt;
- }
- conditions
- {
- (Is Button Held(Event Player, Button(Crouch)) && Is Button Held(Event Player, Button(Reload))) == True;
- Global.STUN == True;
- }
- actions
- {
- Wait(0.100, Ignore Condition);
- Global.STUN = False;
- }
- }
- rule("stun to true")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Reinhardt;
- }
- conditions
- {
- (Is Button Held(Event Player, Button(Crouch)) && Is Button Held(Event Player, Button(Reload))) == True;
- Global.STUN == False;
- }
- actions
- {
- Wait(0.100, Ignore Condition);
- Global.STUN = True;
- }
- }
- rule("tp to false")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Reinhardt;
- }
- conditions
- {
- (Is Button Held(Event Player, Button(Crouch)) && Is Button Held(Event Player, Button(Interact))) == True;
- Global.TP == True;
- }
- actions
- {
- Wait(0.100, Ignore Condition);
- Global.TP = False;
- }
- }
- rule("tp to true")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Reinhardt;
- }
- conditions
- {
- (Is Button Held(Event Player, Button(Crouch)) && Is Button Held(Event Player, Button(Interact))) == True;
- Global.TP == False;
- }
- actions
- {
- Wait(0.100, Ignore Condition);
- Global.TP = True;
- }
- }
- rule("increase radius")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Reinhardt;
- }
- conditions
- {
- (Is Button Held(Event Player, Button(Crouch)) && Is Button Held(Event Player, Button(Primary Fire))) == True;
- }
- actions
- {
- Wait(0.100, Ignore Condition);
- Global.Radius += 1;
- }
- }
- rule("decrease radius")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Reinhardt;
- }
- conditions
- {
- (Is Button Held(Event Player, Button(Crouch)) && Is Button Held(Event Player, Button(Secondary Fire))) == True;
- Global.Radius > 3;
- }
- actions
- {
- Wait(0.100, Ignore Condition);
- Global.Radius -= 1;
- }
- }
- rule("radius color activated")
- {
- event
- {
- Ongoing - Global;
- }
- conditions
- {
- Global.ACTIVATED == True;
- }
- actions
- {
- Destroy HUD Text(Global.Radius_Red);
- Create HUD Text(All Players(All Teams), Custom String("Radius: {0}", Global.Radius), Null, Null, Top, 20, Color(Green), Color(
- White), Color(White), Visible To and String, Default Visibility);
- Global.Radius_Green = Last Text ID;
- }
- }
- rule("radius color deactivated")
- {
- event
- {
- Ongoing - Global;
- }
- conditions
- {
- Global.ACTIVATED == False;
- }
- actions
- {
- Destroy HUD Text(Global.Radius_Green);
- Create HUD Text(All Players(All Teams), Custom String("Radius: {0}", Global.Radius), Null, Null, Top, 20, Color(Red), Color(White),
- Color(White), Visible To and String, Default Visibility);
- Global.Radius_Red = Last Text ID;
- }
- }