mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'battle-debt-indicator' into 'master'
Battle: spawn ring debt indicator if player has no bumpers Closes #884 See merge request KartKrew/Kart!1808
This commit is contained in:
commit
859d676f60
1 changed files with 3 additions and 1 deletions
|
|
@ -8319,7 +8319,9 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
K_SpawnGrowShrinkParticles(player->mo, player->growshrinktimer);
|
||||
}
|
||||
|
||||
if (!(gametyperules & GTR_SPHERES) && player->rings <= 0) // spawn ring debt indicator
|
||||
// Race: spawn ring debt indicator
|
||||
// Battle: spawn zero-bumpers indicator
|
||||
if ((gametyperules & GTR_SPHERES) ? player->mo->health <= 1 : player->rings <= 0)
|
||||
{
|
||||
mobj_t *debtflag = P_SpawnMobj(player->mo->x + player->mo->momx, player->mo->y + player->mo->momy,
|
||||
player->mo->z + P_GetMobjZMovement(player->mo) + player->mo->height + (24*player->mo->scale), MT_THOK);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue