Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rule("Rule 1")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Is Button Held(Event Player, Secondary Fire) == True;
- Or(Compare(Players In Slot(0, All Teams), ==, Event Player), Compare(Players In Slot(1, All Teams), ==, Event Player)) == True;
- }
- actions
- {
- Wait(0.016, Ignore Condition);
- Set Player Variable(Event Player, B, Event Player);
- Skip If(Compare(Count Of(Filtered Array(Players in View Angle(Event Player, All Teams, 360), Is In Line of Sight(Event Player,
- Current Array Element, Barriers Do Not Block LOS))), ==, 0), 1);
- Start Facing(Event Player, Direction Towards(Eye Position(Event Player), World Vector Of(Vector(0, 1.555, 0), Value In Array(
- Filtered Array(Players in View Angle(Event Player, All Teams, 360), Is In Line of Sight(Event Player, Current Array Element,
- Barriers Do Not Block LOS)), 0), Rotation And Translation)), 10000, To World, Direction and Turn Rate);
- Skip If(Compare(Count Of(Filtered Array(Players in View Angle(Event Player, All Teams, 360), Is In Line of Sight(Event Player,
- Current Array Element, Barriers Do Not Block LOS))), !=, 0), 1);
- Stop Facing(Event Player);
- Set Ultimate Ability Enabled(Event Player, True);
- Loop If Condition Is True;
- }
- }
- rule("Rule 3")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Is Button Held(Event Player, Secondary Fire) == False;
- }
- actions
- {
- Stop Facing(Event Player);
- }
- }
- rule("Rule 4")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Slot 0;
- }
- actions
- {
- Wait(Random Real(0.500, 1), Ignore Condition);
- Set Damage Received(Event Player, 0);
- Wait(Random Real(0.500, 1), Ignore Condition);
- Set Damage Received(Event Player, 100);
- }
- }
- rule("Rule 4")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Slot 1;
- }
- actions
- {
- Wait(Random Real(0.500, 1), Ignore Condition);
- Set Damage Received(Event Player, 0);
- Wait(Random Real(0.500, 1), Ignore Condition);
- Set Damage Received(Event Player, 100);
- }
- }
- rule("Rule 6")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Slot 0;
- }
- conditions
- {
- Match Time >= 120;
- }
- actions
- {
- Set Player Score(Event Player, 5);
- Wait(1, Ignore Condition);
- Loop;
- }
- }
- rule("Rule 6")
- {
- event
- {
- Ongoing - Each Player;
- All;
- Slot 1;
- }
- conditions
- {
- Match Time >= 120;
- }
- actions
- {
- Set Player Score(Event Player, 5);
- Wait(1, Ignore Condition);
- Loop;
- }
- }
- rule("Rule 8")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- actions
- {
- Create Icon(Player Variable(Event Player, A), Event Player, Arrow: Down, Visible To and Position, Red, True);
- Create Icon(Player Variable(Event Player, B), Event Player, Arrow: Down, Visible To and Position, Red, True);
- }
- }
- rule("Rule 9")
- {
- event
- {
- Player Died;
- All;
- All;
- }
- actions
- {
- Respawn(Event Player);
- }
- }
- disabled rule("Rule 10")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Is Button Held(Event Player, Secondary Fire) == True;
- Players in View Angle(Event Player, Opposite Team Of(Team Of(Event Player)), 1) == True;
- }
- actions
- {
- Press Button(Event Player, Primary Fire);
- Wait(0.500, Ignore Condition);
- Loop If Condition Is True;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement