mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Show point count next to rank icons HUD in Battle
If the player has reached the point limit, the numbers dance and flash tangerine (indicating that they are about to win, after they kill someone).
This commit is contained in:
parent
c042c6e5dc
commit
8dedc73c11
1 changed files with 29 additions and 1 deletions
30
src/k_hud.c
30
src/k_hud.c
|
|
@ -2221,7 +2221,7 @@ static boolean K_drawKartPositionFaces(void)
|
|||
|
||||
if ((gametyperules & GTR_BUMPERS) && (players[rankplayer[i]].pflags & PF_ELIMINATED))
|
||||
V_DrawScaledPatch(FACE_X-4, Y-3, V_HUDTRANS|V_SLIDEIN|V_SNAPTOLEFT, kp_ranknobumpers);
|
||||
else
|
||||
else if (gametyperules & GTR_CIRCUIT)
|
||||
{
|
||||
INT32 pos = players[rankplayer[i]].position;
|
||||
if (pos < 0 || pos > MAXPLAYERS)
|
||||
|
|
@ -2229,6 +2229,34 @@ static boolean K_drawKartPositionFaces(void)
|
|||
// Draws the little number over the face
|
||||
V_DrawScaledPatch(FACE_X-5, Y+10, V_HUDTRANS|V_SLIDEIN|V_SNAPTOLEFT, kp_facenum[pos]);
|
||||
}
|
||||
else
|
||||
{
|
||||
INT32 flags = V_HUDTRANS | V_SLIDEIN | V_SNAPTOLEFT;
|
||||
|
||||
colormap = NULL;
|
||||
|
||||
if (g_pointlimit <= players[rankplayer[i]].roundscore)
|
||||
{
|
||||
if (leveltime % 8 < 4)
|
||||
{
|
||||
colormap = R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_TANGERINE, GTC_CACHE);
|
||||
}
|
||||
|
||||
flags |= V_STRINGDANCE;
|
||||
}
|
||||
|
||||
V_DrawStringScaled(
|
||||
(FACE_X - 5) * FRACUNIT,
|
||||
(Y + 10) * FRACUNIT,
|
||||
FRACUNIT,
|
||||
FRACUNIT,
|
||||
FRACUNIT,
|
||||
flags,
|
||||
colormap,
|
||||
PINGF_FONT,
|
||||
va("%d", players[rankplayer[i]].roundscore)
|
||||
);
|
||||
}
|
||||
|
||||
Y -= 18;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue