Instawhip start of race cooldown

This commit is contained in:
AJ Martinez 2023-06-06 20:18:01 -07:00
parent 50eab03fc0
commit 5b39142661
2 changed files with 10 additions and 2 deletions

View file

@ -7936,9 +7936,16 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
if (player->gateBoost)
player->gateBoost--;
if (player->rings > 0)
if (leveltime < starttime)
{
player->instaShieldCooldown = INSTAWHIP_COOLDOWN;
player->instaShieldCooldown = INSTAWHIP_STARTOFRACE;
}
else if (player->rings > 0)
{
if (player->instaShieldCooldown > INSTAWHIP_COOLDOWN)
player->instaShieldCooldown--;
else
player->instaShieldCooldown = INSTAWHIP_COOLDOWN;
}
else
{

View file

@ -33,6 +33,7 @@ Make sure this matches the actual number of states
#define SHRINK_PHYSICS_SCALE (3*FRACUNIT/4)
#define INSTAWHIP_COOLDOWN (TICRATE*2)
#define INSTAWHIP_STARTOFRACE (255)
#define INSTAWHIP_DROPGUARD (12)
#define GUARDBREAK_COOLDOWN (TICRATE*4)