Sealed Star finish cleanup

- No FINISH text
- No voices
- Warp sound on crossing the line, not any other stuff
This commit is contained in:
toaster 2023-08-26 23:48:18 +01:00
parent 6fb7d16c85
commit 79699f47d5
3 changed files with 18 additions and 2 deletions

View file

@ -4332,6 +4332,9 @@ static void K_drawKartFinish(boolean finish)
if (finish)
{
if (gametyperules & GTR_SPECIALSTART)
return;
timer = stplyr->karthud[khud_finish];
kptodraw = kp_racefinish;
minsplitstationary = 2;

View file

@ -1987,7 +1987,15 @@ static void K_HandleLapIncrement(player_t *player)
player->starpostnum = 0;
if (P_IsDisplayPlayer(player))
if (gametyperules & GTR_SPECIALSTART)
{
if (player->laps > numlaps)
{
// Warp out
S_StartSound(NULL, sfx_s3kb3);
}
}
else if (P_IsDisplayPlayer(player))
{
if (numlaps > 1 && player->laps == numlaps) // final lap
S_StartSound(NULL, sfx_s3k68);

View file

@ -1296,7 +1296,7 @@ void P_DoPlayerExit(player_t *player, pflags_t flags)
{
K_UpdateAllPlayerPositions();
if (cv_kartvoices.value)
if (cv_kartvoices.value && !(gametyperules & GTR_SPECIALSTART))
{
if (P_IsDisplayPlayer(player))
{
@ -1409,6 +1409,11 @@ void P_DoAllPlayersExit(pflags_t flags, boolean trygivelife)
// You've already finished, don't play again
;
}
else if (gametyperules & GTR_SPECIALSTART)
{
// Warp out
S_StartSound(NULL, sfx_s3kb3);
}
else if (musiccountdown == 0)
{
// Other people finish