Client: attempt to set g_hud_color according to the team the client is on

This commit is contained in:
Marco Cawthorne 2023-01-17 21:53:01 -08:00
parent 0d0a91c2df
commit 99c8ce8787
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -17,7 +17,21 @@
void
ClientGame_PreDraw(void)
{
/* color the HUD according to the team we're on */
switch (getplayerkeyfloat(player_localnum, "*team")) {
case 1:
g_hud_color = [0.15, 0.15, 1.0];
break;
case 2:
g_hud_color = [1, 0.15, 0.15];
break;
case 3:
g_hud_color = [1.0, 1.0, 0.15];
break;
case 4:
g_hud_color = [0.15, 1.0, 0.15];
break;
}
}
void