mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-27 10:22:32 +00:00
Play sound s3kb2 on player FAULT
This commit is contained in:
parent
1b3c63f24a
commit
9e434dbc3c
2 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue