if(myteam != prev_myteam)
{
+ myteamcolors = colormapPaletteColor(myteam, 1);
for(i = 0; i < HUD_PANEL_NUM; ++i)
hud_panel[i].update_time = time;
prev_myteam = myteam;
if(autocvar__hud_configure && myteam == NUM_SPECTATOR)
color = '1 0 0' * hud_dock_color_team;
else
- color = colormapPaletteColor(myteam, 1) * hud_dock_color_team;
+ color = myteamcolors * hud_dock_color_team;
}
else if(autocvar_hud_configure_teamcolorforced && autocvar__hud_configure && hud_dock_color_team) {
color = '1 0 0' * hud_dock_color_team;
string hud_skin_path;
string hud_skin_prev;
+vector myteamcolors;
+
var vector progressbar_color;
entity highlightedPanel_backup;
if(autocvar__hud_configure && myteam == NUM_SPECTATOR)\
panel_bg_color = '1 0 0' * panel_bg_color_team;\
else\
- panel_bg_color = colormapPaletteColor(myteam, 1) * panel_bg_color_team;\
+ panel_bg_color = myteamcolors * panel_bg_color_team;\
} else if (autocvar_hud_configure_teamcolorforced && autocvar__hud_configure && panel_bg_color_team) {\
panel_bg_color = '1 0 0' * panel_bg_color_team;\
} else {\