From 1c1d36fad84687a93a629525145c557f78cbf673 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Mon, 12 Jul 2021 19:44:25 +0100 Subject: lots of general fixes --- .../scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'Northstar.Custom/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut') diff --git a/Northstar.Custom/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut b/Northstar.Custom/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut index 6a1d0bbdd..754825582 100644 --- a/Northstar.Custom/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut +++ b/Northstar.Custom/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut @@ -131,9 +131,6 @@ void function FastballPlayer( entity player ) ClearPlayerAnimViewEntity( player ) player.DeployWeapon() player.PlayerCone_Disable() - - RemoveButtonPressedPlayerInputCallback( player, IN_JUMP, PlayerHoldingJumpInIntro ) - RemoveButtonReleasedPlayerInputCallback( player, IN_JUMP, PlayerNoLongerHoldingJumpInIntro ) }) FirstPersonSequenceStruct throwSequence @@ -179,14 +176,10 @@ void function FastballPlayer( entity player ) vector throwVel = AnglesToForward( player.EyeAngles() ) * 950 throwVel.z = 675.0 - // allow players to gain extra height by holding jump after this point too - AddButtonPressedPlayerInputCallback( player, IN_JUMP, PlayerHoldingJumpInIntro ) - AddButtonReleasedPlayerInputCallback( player, IN_JUMP, PlayerNoLongerHoldingJumpInIntro ) - // wait for it to finish buddy.WaitSignal( "fastball_release" ) - if ( player in file.playersHoldingJump && file.playersHoldingJump[ player ] ) + if ( player.IsInputCommandHeld( IN_JUMP ) ) throwVel.z = 850.0 // have to correct this manually here since due to no 3p animation our position isn't set right during this sequence -- cgit v1.2.3