mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-23 14:01:14 +00:00
Battle: "K.O. READY!" appears on your screen when you reach the point limit
This commit is contained in:
parent
b323c6bdb7
commit
04ab02476f
1 changed files with 5 additions and 0 deletions
|
|
@ -583,7 +583,12 @@ void P_AddPlayerScore(player_t *player, INT32 amount)
|
|||
if (amount < 0 && (UINT32)-amount > player->roundscore)
|
||||
player->roundscore = 0;
|
||||
else if (player->roundscore + amount < MAXSCORE)
|
||||
{
|
||||
if (player->roundscore < g_pointlimit && g_pointlimit <= player->roundscore + amount)
|
||||
HU_DoTitlecardCEchoForDuration(player, "K.O. READY!", true, 5*TICRATE/2);
|
||||
|
||||
player->roundscore += amount;
|
||||
}
|
||||
else
|
||||
player->roundscore = MAXSCORE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue