Merge branch 'loop-die' into 'master'

Kill players that fail loops

Closes #714

See merge request KartKrew/Kart!2184
This commit is contained in:
AJ Martinez 2024-03-29 03:12:24 +00:00
commit 7f02a5d3af

View file

@ -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;