mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Special Stages: Distinguish between failures with and without lives.
- With lives remaining: No FINISH text, 1 second before restart - With no lives remaining: Yes FINISH text, 2 and a half seconds before return to menu(/emeraldless podium when implemented)
This commit is contained in:
parent
61de5367d7
commit
8b14d10506
2 changed files with 12 additions and 2 deletions
|
|
@ -7233,7 +7233,10 @@ void K_KartPlayerHUDUpdate(player_t *player)
|
||||||
player->karthud[khud_ringspblock] = (leveltime % 14); // reset to normal anim next time
|
player->karthud[khud_ringspblock] = (leveltime % 14); // reset to normal anim next time
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player->exiting)
|
if (player->exiting
|
||||||
|
&& (specialstageinfo.valid == false
|
||||||
|
|| !(player->pflags & PF_NOCONTEST)
|
||||||
|
|| player->lives <= 0))
|
||||||
{
|
{
|
||||||
if (player->karthud[khud_finish] <= 2*TICRATE)
|
if (player->karthud[khud_finish] <= 2*TICRATE)
|
||||||
player->karthud[khud_finish]++;
|
player->karthud[khud_finish]++;
|
||||||
|
|
|
||||||
|
|
@ -1314,7 +1314,14 @@ void P_DoPlayerExit(player_t *player)
|
||||||
{
|
{
|
||||||
if (specialstageinfo.valid == true && losing == true)
|
if (specialstageinfo.valid == true && losing == true)
|
||||||
{
|
{
|
||||||
exitcountdown = (5*TICRATE)/2;
|
if (player->lives > 0)
|
||||||
|
{
|
||||||
|
exitcountdown = TICRATE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
exitcountdown = (5*TICRATE)/2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue