mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
GTR_CHECKPOINTS when alone: Force a level restart when player has been dead for a second
This commit is contained in:
parent
467b5f831b
commit
f9dfdf2152
1 changed files with 10 additions and 1 deletions
|
|
@ -2793,9 +2793,18 @@ static void P_DeathThink(player_t *player)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playerGone == false && player->deadtimer > TICRATE)
|
if (playerGone == false && player->deadtimer > TICRATE)
|
||||||
|
{
|
||||||
|
if (!netgame && !splitscreen
|
||||||
|
&& player->bot == false
|
||||||
|
&& (gametyperules & GTR_CHECKPOINTS))
|
||||||
|
{
|
||||||
|
G_SetRetryFlag();
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
player->playerstate = PST_REBORN;
|
player->playerstate = PST_REBORN;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: support splitscreen
|
// TODO: support splitscreen
|
||||||
// Spectate another player after 2 seconds
|
// Spectate another player after 2 seconds
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue