Reinhardt Shatter Blocking Practice

PK27F

Simple (for you not for me) addition to the Training room of a Reinhardt who will try to Earth Shatter any player in front of him. The Reinhard will also firestrike every so often to help practice the different reactions.

Uses a random timer between shatters (7~15s), detects if there is a player, but NOT a barrier in front of the rein, and teleports the rein back in place if he dies or gets moved too much.

Good for practicing Rein v Rein, but also ok for Genji, McCree, Orissa/Zarya/Winston/Sigma, Brigitte, Mei, or just for testing interactions.

Code Snippet

View variables

Rules

No Rules are declared.
variables { global: 0: Timer 1: MinTime 3: DefaultPos 4: DefaultFacing } rule("Start") { event { Ongoing - Global; } conditions { Number of Players(Team 2) < 1; } actions { Set Global Variable(DefaultPos, Vector(40.793, 1.998, 14.953)); Set Global Variable(DefaultFacing, Vector(0.837, 0.001, 0.548)); Create Dummy Bot(Hero(Reinhardt), Team 2, 1, Global Variable(DefaultPos), Global Variable(DefaultFacing)); Set Global Variable(MinTime, 5); Start Holding Button(Players In Slot(1, Team 2), Secondary Fire); Set Global Variable(DefaultFacing, Facing Direction Of(Players In Slot(1, Team 2))); } } rule("Use Ult at Random Time") { event { Ongoing - Each Player; Team 2; Slot 1; } actions { Skip If(Not(Is In View Angle(Event Player, Eye Position(Players In Slot(0, Team 1)), 45)), 10); Skip If(Not(Is In Line of Sight(Event Player, Players In Slot(0, Team 1), Enemy Barriers Block LOS)), 9); Set Global Variable(Timer, Add(Global Variable(Timer), 1)); Skip If(Compare(Global Variable(Timer), <, Global Variable(MinTime)), 7); Skip If(Compare(Random Integer(-3.000, Global Variable(Timer)), <, Global Variable(MinTime)), 6); Skip If(Compare(Random Integer(0, 3), ==, 0), 1); Press Button(Event Player, Ability 2); Set Ultimate Charge(Event Player, 100); Press Button(Event Player, Ultimate); Set Ultimate Charge(Players In Slot(0, Team 1), Add(Ultimate Charge Percent(Players In Slot(0, Team 1)), 10)); Set Global Variable(Timer, 0); Wait(1, Ignore Condition); Loop; } } rule("Reset Position") { event { Ongoing - Each Player; Team 2; Slot 1; } conditions { Distance Between(Event Player, Global Variable(DefaultPos)) > 5; } actions { Wait(3, Abort When False); Teleport(Event Player, Global Variable(DefaultPos)); } }
View Fullscreen
Copy current Rule
Copy all Rules
Categories | Practice Mode
Created at |
Last updated |
Current version | 1

0 Comments

Log in or Sign up to place a comment.
Workshop.codes - Background image