Battle: "K.O. READY!" appears on your screen when you reach the point limit

This commit is contained in:
James R 2024-01-26 17:54:27 -08:00
parent b323c6bdb7
commit 04ab02476f

View file

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