Play sound s3kb2 on player FAULT

This commit is contained in:
SteelT 2024-03-09 15:33:22 -05:00
parent 1b3c63f24a
commit 9e434dbc3c
2 changed files with 11 additions and 0 deletions

View file

@ -110,6 +110,12 @@ void K_DoFault(player_t *player)
S_StartSound(player->mo, sfx_s3k83);
player->karthud[khud_fault] = 1;
player->pflags |= PF_FAULT;
if (P_IsDisplayPlayer(player))
{
S_StartSound(player->mo, sfx_s3kb2);
}
player->mo->renderflags |= RF_DONTDRAW;
player->mo->flags |= MF_NOCLIPTHING;

View file

@ -1957,6 +1957,11 @@ static void K_HandleLapIncrement(player_t *player)
player->roundconditions.checkthisframe = true;
}
if (P_IsDisplayPlayer(player))
{
S_StartSound(player->mo, sfx_s3kb2);
}
return;
}