Put whip on cooldown when inputting guard/ebrake

This commit is contained in:
AJ Martinez 2024-01-06 02:14:28 -07:00
parent a982b3bf63
commit aad37bbfbb

View file

@ -8701,6 +8701,11 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
if (player->justbumped > 0)
player->justbumped--;
if (K_PlayerGuard(player) || K_PlayerEBrake(player))
{
player->instaWhipCooldown = INSTAWHIP_DROPGUARD;
}
if (player->instaWhipCooldown)
{
player->instaWhipCharge = 0;