Client: attempt to set g_hud_color according to the team the client is on
This commit is contained in:
parent
0d0a91c2df
commit
99c8ce8787
1 changed files with 15 additions and 1 deletions
|
@ -17,7 +17,21 @@
|
||||||
void
|
void
|
||||||
ClientGame_PreDraw(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
|
void
|
||||||
|
|
Loading…
Reference in a new issue