mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
Longer bufo invinc, decreases always
This commit is contained in:
parent
6177ca0dcc
commit
dd0b9a97fc
2 changed files with 2 additions and 4 deletions
|
|
@ -65,7 +65,7 @@ void K_GivePowerUp(player_t* player, kartitems_t powerup, tic_t time)
|
||||||
}
|
}
|
||||||
|
|
||||||
S_StartSound(NULL, sfx_gsha7l);
|
S_StartSound(NULL, sfx_gsha7l);
|
||||||
player->flashing = 2*TICRATE;
|
player->flashing = 3*TICRATE;
|
||||||
player->mo->hitlag += BATTLE_POWERUP_VFX_TIME;
|
player->mo->hitlag += BATTLE_POWERUP_VFX_TIME;
|
||||||
player->powerupVFXTimer = BATTLE_POWERUP_VFX_TIME;
|
player->powerupVFXTimer = BATTLE_POWERUP_VFX_TIME;
|
||||||
Obj_SpawnPowerUpSpinner(player->mo, powerup, BATTLE_POWERUP_VFX_TIME);
|
Obj_SpawnPowerUpSpinner(player->mo, powerup, BATTLE_POWERUP_VFX_TIME);
|
||||||
|
|
|
||||||
|
|
@ -4564,9 +4564,7 @@ void P_PlayerThink(player_t *player)
|
||||||
|
|
||||||
// Strength counts up to diminish fade.
|
// Strength counts up to diminish fade.
|
||||||
if (player->flashing && player->flashing < UINT16_MAX &&
|
if (player->flashing && player->flashing < UINT16_MAX &&
|
||||||
(player->spectator || !P_PlayerInPain(player)) &&
|
(player->spectator || !P_PlayerInPain(player)))
|
||||||
// Battle: flashing tics do not decrease in the air
|
|
||||||
(!(gametyperules & GTR_BUMPERS) || P_IsObjectOnGround(player->mo)))
|
|
||||||
{
|
{
|
||||||
player->flashing--;
|
player->flashing--;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue