mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Sealed Star finish cleanup
- No FINISH text - No voices - Warp sound on crossing the line, not any other stuff
This commit is contained in:
parent
6fb7d16c85
commit
79699f47d5
3 changed files with 18 additions and 2 deletions
|
|
@ -4332,6 +4332,9 @@ static void K_drawKartFinish(boolean finish)
|
||||||
|
|
||||||
if (finish)
|
if (finish)
|
||||||
{
|
{
|
||||||
|
if (gametyperules & GTR_SPECIALSTART)
|
||||||
|
return;
|
||||||
|
|
||||||
timer = stplyr->karthud[khud_finish];
|
timer = stplyr->karthud[khud_finish];
|
||||||
kptodraw = kp_racefinish;
|
kptodraw = kp_racefinish;
|
||||||
minsplitstationary = 2;
|
minsplitstationary = 2;
|
||||||
|
|
|
||||||
10
src/p_spec.c
10
src/p_spec.c
|
|
@ -1987,7 +1987,15 @@ static void K_HandleLapIncrement(player_t *player)
|
||||||
|
|
||||||
player->starpostnum = 0;
|
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
|
if (numlaps > 1 && player->laps == numlaps) // final lap
|
||||||
S_StartSound(NULL, sfx_s3k68);
|
S_StartSound(NULL, sfx_s3k68);
|
||||||
|
|
|
||||||
|
|
@ -1296,7 +1296,7 @@ void P_DoPlayerExit(player_t *player, pflags_t flags)
|
||||||
{
|
{
|
||||||
K_UpdateAllPlayerPositions();
|
K_UpdateAllPlayerPositions();
|
||||||
|
|
||||||
if (cv_kartvoices.value)
|
if (cv_kartvoices.value && !(gametyperules & GTR_SPECIALSTART))
|
||||||
{
|
{
|
||||||
if (P_IsDisplayPlayer(player))
|
if (P_IsDisplayPlayer(player))
|
||||||
{
|
{
|
||||||
|
|
@ -1409,6 +1409,11 @@ void P_DoAllPlayersExit(pflags_t flags, boolean trygivelife)
|
||||||
// You've already finished, don't play again
|
// You've already finished, don't play again
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
else if (gametyperules & GTR_SPECIALSTART)
|
||||||
|
{
|
||||||
|
// Warp out
|
||||||
|
S_StartSound(NULL, sfx_s3kb3);
|
||||||
|
}
|
||||||
else if (musiccountdown == 0)
|
else if (musiccountdown == 0)
|
||||||
{
|
{
|
||||||
// Other people finish
|
// Other people finish
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue