mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Require new input to fastfall after bouncing
This commit is contained in:
parent
9b8306c91b
commit
1871cad1d9
2 changed files with 5 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ typedef enum
|
||||||
PF_SHRINKACTIVE = 1<<29, // "Shrink me" cheat is in effect. (Can't be disabled mid-race)
|
PF_SHRINKACTIVE = 1<<29, // "Shrink me" cheat is in effect. (Can't be disabled mid-race)
|
||||||
|
|
||||||
PF_VOID = 1<<30, // Removed from reality! When leaving hitlag, reenable visibility+collision and kill speed.
|
PF_VOID = 1<<30, // Removed from reality! When leaving hitlag, reenable visibility+collision and kill speed.
|
||||||
|
PF_FASTFALLBOUNCED = 1<<31, // Just bounced from a fastfall. Ignore fastfall attempts until input's lifted.
|
||||||
|
|
||||||
// up to 1<<31 is free
|
// up to 1<<31 is free
|
||||||
} pflags_t;
|
} pflags_t;
|
||||||
|
|
|
||||||
|
|
@ -10095,6 +10095,7 @@ static void K_KartSpindash(player_t *player)
|
||||||
if (K_PlayerEBrake(player) == false)
|
if (K_PlayerEBrake(player) == false)
|
||||||
{
|
{
|
||||||
player->spindash = 0;
|
player->spindash = 0;
|
||||||
|
player->pflags &= ~PF_FASTFALLBOUNCED;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -10106,6 +10107,8 @@ static void K_KartSpindash(player_t *player)
|
||||||
}
|
}
|
||||||
else if (onGround == false)
|
else if (onGround == false)
|
||||||
{
|
{
|
||||||
|
if (player->pflags & PF_FASTFALLBOUNCED)
|
||||||
|
return;
|
||||||
// Update fastfall.
|
// Update fastfall.
|
||||||
player->fastfall = player->mo->momz;
|
player->fastfall = player->mo->momz;
|
||||||
player->spindash = 0;
|
player->spindash = 0;
|
||||||
|
|
@ -10228,6 +10231,7 @@ boolean K_FastFallBounce(player_t *player)
|
||||||
|
|
||||||
player->fastfall = 0;
|
player->fastfall = 0;
|
||||||
player->fastfallBase = 0;
|
player->fastfallBase = 0;
|
||||||
|
player->pflags |= PF_FASTFALLBOUNCED;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue