mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'loop-die' into 'master'
Kill players that fail loops Closes #714 See merge request KartKrew/Kart!2184
This commit is contained in:
commit
7f02a5d3af
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