mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-25 19:43:22 +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);
|
S_StartSound(player->mo, sfx_s3k83);
|
||||||
player->karthud[khud_fault] = 1;
|
player->karthud[khud_fault] = 1;
|
||||||
player->pflags |= PF_FAULT;
|
player->pflags |= PF_FAULT;
|
||||||
|
|
||||||
|
if (P_IsDisplayPlayer(player))
|
||||||
|
{
|
||||||
|
S_StartSound(player->mo, sfx_s3kb2);
|
||||||
|
}
|
||||||
|
|
||||||
player->mo->renderflags |= RF_DONTDRAW;
|
player->mo->renderflags |= RF_DONTDRAW;
|
||||||
player->mo->flags |= MF_NOCLIPTHING;
|
player->mo->flags |= MF_NOCLIPTHING;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1957,6 +1957,11 @@ static void K_HandleLapIncrement(player_t *player)
|
||||||
player->roundconditions.checkthisframe = true;
|
player->roundconditions.checkthisframe = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (P_IsDisplayPlayer(player))
|
||||||
|
{
|
||||||
|
S_StartSound(player->mo, sfx_s3kb2);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue