mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Pause Grow/Invinc/Rocket timers in midair
This commit is contained in:
parent
8d13c1563d
commit
afb82e7990
1 changed files with 4 additions and 3 deletions
|
|
@ -7748,12 +7748,12 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
}
|
||||
}
|
||||
|
||||
if (player->invincibilitytimer)
|
||||
if (player->invincibilitytimer && onground == true)
|
||||
player->invincibilitytimer--;
|
||||
|
||||
if ((player->respawn.state == RESPAWNST_NONE) && player->growshrinktimer != 0)
|
||||
{
|
||||
if (player->growshrinktimer > 0)
|
||||
if (player->growshrinktimer > 0 && onground == true)
|
||||
player->growshrinktimer--;
|
||||
if (player->growshrinktimer < 0)
|
||||
player->growshrinktimer++;
|
||||
|
|
@ -7810,7 +7810,8 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
|
||||
|
||||
if (player->stealingtimer == 0
|
||||
&& player->rocketsneakertimer)
|
||||
&& player->rocketsneakertimer
|
||||
&& onground == true)
|
||||
player->rocketsneakertimer--;
|
||||
|
||||
if (player->hyudorotimer)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue