mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Kill players who die at lethal threshold
This commit is contained in:
parent
b746b1a0e4
commit
c1a80e4b1b
1 changed files with 7 additions and 1 deletions
|
|
@ -176,6 +176,12 @@ void K_DoIngameRespawn(player_t *player)
|
||||||
K_DoFault(player);
|
K_DoFault(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (player->rings <= -20)
|
||||||
|
{
|
||||||
|
P_KillMobj(player->mo, NULL, NULL, DMG_INSTAKILL);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
player->ringboost = 0;
|
player->ringboost = 0;
|
||||||
player->driftboost = player->strongdriftboost = 0;
|
player->driftboost = player->strongdriftboost = 0;
|
||||||
player->gateBoost = 0;
|
player->gateBoost = 0;
|
||||||
|
|
@ -740,7 +746,7 @@ static void K_DropDashWait(player_t *player)
|
||||||
player->respawn.timer--;
|
player->respawn.timer--;
|
||||||
|
|
||||||
if (player->pflags & PF_FAULT)
|
if (player->pflags & PF_FAULT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (leveltime % 8 == 0)
|
if (leveltime % 8 == 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue