mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-26 23:41:07 +00:00
Instawhip start of race cooldown
This commit is contained in:
parent
50eab03fc0
commit
5b39142661
2 changed files with 10 additions and 2 deletions
11
src/k_kart.c
11
src/k_kart.c
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue