mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Kill players that fail loops
This commit is contained in:
parent
1cdb2be7aa
commit
f76a958c53
1 changed files with 6 additions and 2 deletions
|
|
@ -177,11 +177,15 @@ boolean P_PlayerOrbit(player_t *player)
|
||||||
step = left;
|
step = left;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If player slows down by too much, throw them out of
|
// If player slows down by too much, throw them
|
||||||
// the loop in a tumble.
|
// out of the loop and reset them.
|
||||||
|
// (markedfordeath will kill the player on their
|
||||||
|
// first ground contact!)
|
||||||
if (player->speed < player->mo->scale)
|
if (player->speed < player->mo->scale)
|
||||||
{
|
{
|
||||||
P_HaltPlayerOrbit(player);
|
P_HaltPlayerOrbit(player);
|
||||||
|
player->markedfordeath = true;
|
||||||
|
K_PlayPainSound(player->mo, NULL);
|
||||||
K_StumblePlayer(player);
|
K_StumblePlayer(player);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue