-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunctions.del
More file actions
26 lines (22 loc) · 771 Bytes
/
Functions.del
File metadata and controls
26 lines (22 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
method resetBehaviors(define player)
{
StopHoldingButton(player, Button.PrimaryFire);
StopHoldingButton(player, Button.SecondaryFire);
StopHoldingButton(player, Button.Interact);
StopHoldingButton(player, Button.Ability1);
StopHoldingButton(player, Button.Ability2);
StopHoldingButton(player, Button.Ultimate);
StopHoldingButton(player, Button.Crouch);
StopHoldingButton(player, Button.Jump);
StopAccelerating(player);
StopThrottleInDirection(player);
StopForcingThrottle(player);
StopFacing(player);
StopTransformingThrottle(player);
Teleport(player, player.initialPosition);
if (HeroOf(player) == Hero.Bastion
&& IsUsingAbility2(player))
{
PressButton(player, Button.Ability2);
}
}