mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-16 18:46:20 +00:00
Activate FAULT HUD when VOID
This commit is contained in:
parent
9cbeca9595
commit
1a44474cda
2 changed files with 2 additions and 1 deletions
|
|
@ -7921,7 +7921,7 @@ void K_KartPlayerHUDUpdate(player_t *player)
|
|||
if (player->positiondelay)
|
||||
player->positiondelay--;
|
||||
|
||||
if (!(player->pflags & PF_FAULT))
|
||||
if (!(player->pflags & PF_FAULT || player->pflags & PF_VOID))
|
||||
player->karthud[khud_fault] = 0;
|
||||
else if (player->karthud[khud_fault] > 0 && player->karthud[khud_fault] <= 2*TICRATE)
|
||||
player->karthud[khud_fault]++;
|
||||
|
|
|
|||
|
|
@ -1925,6 +1925,7 @@ static void K_HandleLapIncrement(player_t *player)
|
|||
player->mo->momz = 0;
|
||||
K_StripItems(player);
|
||||
player->faultflash = TICRATE/3;
|
||||
player->karthud[khud_fault] = 1;
|
||||
ClearFakePlayerSkin(player);
|
||||
S_StartSound(player->mo, sfx_s3k8a);
|
||||
P_MoveOrigin(player->mo, player->mo->old_x, player->mo->old_y, player->mo->z);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue