mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-23 16:32:36 +00:00
Whip fixups #69
This commit is contained in:
parent
9c585e35de
commit
3f8b557d5e
2 changed files with 3 additions and 3 deletions
|
|
@ -869,7 +869,7 @@ boolean K_InstaWhipCollide(mobj_t *shield, mobj_t *victim)
|
||||||
attacker->renderflags &= ~RF_DONTDRAW;
|
attacker->renderflags &= ~RF_DONTDRAW;
|
||||||
attackerPlayer->spindashboost = 0;
|
attackerPlayer->spindashboost = 0;
|
||||||
attackerPlayer->sneakertimer = 0;
|
attackerPlayer->sneakertimer = 0;
|
||||||
attackerPlayer->instaWhipCharge = GUARDBREAK_COOLDOWN;
|
attackerPlayer->instaWhipCharge = 0;
|
||||||
attackerPlayer->guardCooldown = GUARDBREAK_COOLDOWN;
|
attackerPlayer->guardCooldown = GUARDBREAK_COOLDOWN;
|
||||||
attackerPlayer->flashing = 0;
|
attackerPlayer->flashing = 0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8327,7 +8327,7 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
||||||
// If the button stays held, delay charge a bit.
|
// If the button stays held, delay charge a bit.
|
||||||
if (player->instaWhipChargeLockout)
|
if (player->instaWhipChargeLockout)
|
||||||
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;
|
player->instaWhipChargeLockout = INSTAWHIP_HOLD_DELAY;
|
||||||
if (!(player->cmd.buttons & BT_ATTACK)) // Deliberate Item button release, no need to protect you from lockout
|
if (!(player->cmd.buttons & BT_ATTACK)) // Deliberate Item button release, no need to protect you from lockout
|
||||||
player->instaWhipChargeLockout = 0;
|
player->instaWhipChargeLockout = 0;
|
||||||
|
|
@ -11088,7 +11088,7 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
player->instaWhipCooldown = 0;
|
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;
|
chargingwhip = false;
|
||||||
player->instaWhipCharge = 0;
|
player->instaWhipCharge = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue