mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-14 09:36:20 +00:00
Put whip on cooldown when inputting guard/ebrake
This commit is contained in:
parent
a982b3bf63
commit
aad37bbfbb
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue