Whip fixups #69

This commit is contained in:
AJ Martinez 2023-10-21 18:05:49 -07:00
parent 9c585e35de
commit 3f8b557d5e
2 changed files with 3 additions and 3 deletions

View file

@ -869,7 +869,7 @@ boolean K_InstaWhipCollide(mobj_t *shield, mobj_t *victim)
attacker->renderflags &= ~RF_DONTDRAW;
attackerPlayer->spindashboost = 0;
attackerPlayer->sneakertimer = 0;
attackerPlayer->instaWhipCharge = GUARDBREAK_COOLDOWN;
attackerPlayer->instaWhipCharge = 0;
attackerPlayer->guardCooldown = GUARDBREAK_COOLDOWN;
attackerPlayer->flashing = 0;

View file

@ -8327,7 +8327,7 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
// If the button stays held, delay charge a bit.
if (player->instaWhipChargeLockout)
player->instaWhipChargeLockout--;
if (player->rings > 0 || player->itemamount || player->ringdelay)
if (player->rings > 0 || player->itemamount || player->ringdelay || player->rocketsneakertimer)
player->instaWhipChargeLockout = INSTAWHIP_HOLD_DELAY;
if (!(player->cmd.buttons & BT_ATTACK)) // Deliberate Item button release, no need to protect you from lockout
player->instaWhipChargeLockout = 0;
@ -11088,7 +11088,7 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
player->instaWhipCooldown = 0;
}
if (leveltime < starttime || player->spindash || player->pflags & (PF_ITEMOUT|PF_EGGMANOUT) || player->rocketsneakertimer || player->instaWhipCooldown)
if (leveltime < starttime || player->pflags & (PF_ITEMOUT|PF_EGGMANOUT) || player->rocketsneakertimer || player->instaWhipCooldown)
{
chargingwhip = false;
player->instaWhipCharge = 0;