seta hud_skin old "skin folder where to look for images"
seta hud_bg 0 "default background for the panels, file must exist in gfx/hud/[skin name]/, 0 = disable background by default"
seta hud_bg_color "0 0.6 0.9" "default background color for the panels, accepts \"shirt\" and \"pants\""
+seta hud_bg_color_team 0 "default setting for overriding panel color with team color in team games, 0.5 = less saturated"
seta hud_bg_alpha 0.8 "default alpha of the background"
seta hud_bg_border 10 "default border size for the panels"
seta hud_bg_padding 0 "default padding of contents from the border"
seta hud_dock "dock" "enable a fullscreen background for the hud, useful for creating artificial docks, \"\" = disable"
seta hud_dock_color "0 0.6 0.9" "dock color, accepts \"shirt\" and \"pants\""
+seta hud_dock_color_team 0.7 "override dock color with team color in team games"
seta hud_dock_alpha 0.8 "alpha of the dock"
seta sbar_info_pos 50
seta hud_weaponicons_accuracy_yellow 40 "percentage at which the accuracy color is yellow"
seta hud_weaponicons_bg "" "if set to something else than \"\" = override default background"
seta hud_weaponicons_bg_color "" "if set to something else than \"\" = override default panel background color"
+seta hud_weaponicons_bg_color_team "" "override panel color with team color in team based games"
seta hud_weaponicons_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
seta hud_weaponicons_bg_border "" "if set to something else than \"\" = override default size of border around the background"
seta hud_weaponicons_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
seta hud_inventory_onlycurrent 0 "1 = show only current ammo type"
seta hud_inventory_bg "" "if set to something else than \"\" = override default background"
seta hud_inventory_bg_color "" "if set to something else than \"\" = override default panel background color"
+seta hud_inventory_bg_color_team "" "override panel color with team color in team based games"
seta hud_inventory_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
seta hud_inventory_bg_border "" "if set to something else than \"\" = override default size of border around the background"
seta hud_inventory_bg_padding "" if set to something else than \"\" = override default padding of contents from border"
seta hud_powerups_mirror 0 "mirror alignment of panel items"
seta hud_powerups_bg "" "if set to something else than \"\" = override default background"
seta hud_powerups_bg_color "" "if set to something else than \"\" = override default panel background color"
+seta hud_powerups_bg_color_team "" "override panel color with team color in team based games"
seta hud_powerups_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
seta hud_powerups_bg_border "" "if set to something else than \"\" = override default size of border around the background"
seta hud_powerups_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
seta hud_healtharmor_mirror 0 "mirror alignment of panel items"
seta hud_healtharmor_bg "" "if set to something else than \"\" = override default background"
seta hud_healtharmor_bg_color "" "if set to something else than \"\" = override default panel background color"
+seta hud_healtharmor_bg_color_team "" "override panel color with team color in team based games"
seta hud_healtharmor_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
seta hud_healtharmor_bg_border "" "if set to something else than \"\" = override default size of border around the background"
seta hud_healtharmor_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
seta hud_notify_size "0.1 0.1" "size of this panel with all notifications on"
seta hud_notify_bg "" "if set to something else than \"\" = override default background"
seta hud_notify_bg_color "" "if set to something else than \"\" = override default panel background color"
+seta hud_notify_bg_color_team "" "override panel color with team color in team based games"
seta hud_notify_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
seta hud_notify_bg_border "" "if set to something else than \"\" = override default size of border around the background"
seta hud_notify_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
seta hud_timer_increment 0 "show elapsed time instead of remaining time"
seta hud_timer_bg border "if set to something else than \"\" = override default background"
seta hud_timer_bg_color "" "if set to something else than \"\" = override default panel background color"
+seta hud_timer_bg_color_team "" "override panel color with team color in team based games"
seta hud_timer_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
seta hud_timer_bg_border "" "if set to something else than \"\" = override default size of border around the background"
seta hud_timer_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
seta hud_radar_size "0.215687 0.266667" "size of this panel"
seta hud_radar_bg "" "if set to something else than \"\" = override default background"
seta hud_radar_bg_color "" "if set to something else than \"\" = override default panel background color"
+seta hud_radar_bg_color_team "" "override panel color with team color in team based games"
seta hud_radar_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
seta hud_radar_bg_border "" "if set to something else than \"\" = override default size of border around the background"
seta hud_radar_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
seta hud_score_size "0.225469 0.075156" "size of this panel"
seta hud_score_bg "" "if set to something else than \"\" = override default background"
seta hud_score_bg_color "" "if set to something else than \"\" = override default panel background color"
+seta hud_score_bg_color_team "" "override panel color with team color in team based games"
seta hud_score_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
seta hud_score_bg_border "" "if set to something else than \"\" = override default size of border around the background"
seta hud_score_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
seta hud_racetimer_size "0.231373 0.077124" "size of this panel"
seta hud_racetimer_bg "" "if set to something else than \"\" = override default background"
seta hud_racetimer_bg_color "" "if set to something else than \"\" = override default panel background color"
+seta hud_racetimer_bg_color_team "" "override panel color with team color in team based games"
seta hud_racetimer_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
seta hud_racetimer_bg_border "" "if set to something else than \"\" = override default size of border around the background"
seta hud_racetimer_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
seta hud_vote_alreadyvoted_alpha 0.75 "alpha of the vote dialog after you have voted"
seta hud_vote_bg "" "if set to something else than \"\" = override default background"
seta hud_vote_bg_color "" "if set to something else than \"\" = override default panel background color"
+seta hud_vote_bg_color_team "" "override panel color with team color in team based games"
seta hud_vote_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
seta hud_vote_bg_border "" "if set to something else than \"\" = override default size of border around the background"
seta hud_vote_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
seta hud_modicons_size "0.145098 0.114105" "size of this panel"
seta hud_modicons_bg "" "if set to something else than \"\" = override default background"
seta hud_modicons_bg_color "" "if set to something else than \"\" = override default panel background color"
+seta hud_modicons_bg_color_team "" "override panel color with team color in team based games"
seta hud_modicons_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
seta hud_modicons_bg_border "" "if set to something else than \"\" = override default size of border around the background"
seta hud_modicons_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
seta hud_pressedkeys_size "0.145098 0.114105" "size of this panel"
seta hud_pressedkeys_bg "" "if set to something else than \"\" = override default background"
seta hud_pressedkeys_bg_color "" "if set to something else than \"\" = override default panel background color"
+seta hud_pressedkeys_bg_color_team "" "override panel color with team color in team based games"
seta hud_pressedkeys_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
seta hud_pressedkeys_bg_border "" "if set to something else than \"\" = override default size of border around the background"
seta hud_pressedkeys_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
fputs(fh, strcat("seta hud_skin \"", cvar_string("hud_skin"), "\"", "\n"));
fputs(fh, strcat("seta hud_bg \"", cvar_string("hud_bg"), "\"", "\n"));
fputs(fh, strcat("seta hud_bg_color \"", cvar_string("hud_bg_color"), "\"", "\n"));
+ fputs(fh, strcat("seta hud_bg_color_team \"", cvar_string("hud_bg_color_team"), "\"", "\n"));
fputs(fh, strcat("seta hud_bg_alpha \"", cvar_string("hud_bg_alpha"), "\"", "\n"));
fputs(fh, strcat("seta hud_bg_border \"", cvar_string("hud_bg_border"), "\"", "\n"));
fputs(fh, strcat("seta hud_bg_padding \"", cvar_string("hud_bg_padding"), "\"", "\n"));
fputs(fh, strcat("seta hud_dock \"", cvar_string("hud_dock"), "\"", "\n"));
fputs(fh, strcat("seta hud_dock_color \"", cvar_string("hud_dock_color"), "\"", "\n"));
+ fputs(fh, strcat("seta hud_dock_color_team \"", cvar_string("hud_dock_color_team"), "\"", "\n"));
fputs(fh, strcat("seta hud_dock_alpha \"", ftos(cvar("hud_dock_alpha")), "\"", "\n"));
fputs(fh, "\n");
fputs(fh, strcat("seta hud_", HUD_Panel_GetName(i), "_size \"", cvar_string(strcat("hud_", HUD_Panel_GetName(i), "_size")), "\"", "\n"));
fputs(fh, strcat("seta hud_", HUD_Panel_GetName(i), "_bg \"", cvar_string(strcat("hud_", HUD_Panel_GetName(i), "_bg")), "\"", "\n"));
fputs(fh, strcat("seta hud_", HUD_Panel_GetName(i), "_bg_color \"", cvar_string(strcat("hud_", HUD_Panel_GetName(i), "_bg_color")), "\"", "\n"));
+ fputs(fh, strcat("seta hud_", HUD_Panel_GetName(i), "_bg_color_team \"", cvar_string(strcat("hud_", HUD_Panel_GetName(i), "_bg_color_team")), "\"", "\n"));
fputs(fh, strcat("seta hud_", HUD_Panel_GetName(i), "_bg_alpha \"", cvar_string(strcat("hud_", HUD_Panel_GetName(i), "_bg_alpha")), "\"", "\n"));
fputs(fh, strcat("seta hud_", HUD_Panel_GetName(i), "_bg_border \"", cvar_string(strcat("hud_", HUD_Panel_GetName(i), "_bg_border")), "\"", "\n"));
fputs(fh, strcat("seta hud_", HUD_Panel_GetName(i), "_bg_padding \"", cvar_string(strcat("hud_", HUD_Panel_GetName(i), "_bg_padding")), "\"", "\n"));
float f;
vector color_vec;
string color;
- color = cvar_string(strcat("hud_", HUD_Panel_GetName(id), "_bg_color"));
+
+ // fetch per-panel color
+ if(teamplay && cvar_string(strcat("hud_", HUD_Panel_GetName(id), "_bg_color_team")) != "") {
+ f = stof(getplayerkey(self.sv_entnum, "colors"));
+ color = vtos(colormapPaletteColor(mod(f, 16), 1) * cvar(strcat("hud_", HUD_Panel_GetName(id), "_bg_color_team")));
+ }
+ else
+ color = cvar_string(strcat("hud_", HUD_Panel_GetName(id), "_bg_color"));
color_vec = stov(color);
- if(color == "") {
+
+ if(color == "") { // fetch default color
color = cvar_string("hud_bg_color");
color_vec = stov(color);
- if(color == "shirt") {
+ if(teamplay && cvar(strcat("hud_bg_color_team"))) {
+ f = stof(getplayerkey(self.sv_entnum, "colors"));
+ color_vec = colormapPaletteColor(mod(f, 16), 1) * cvar("hud_bg_color_team");
+ }
+ else if(color == "shirt") {
f = stof(getplayerkey(self.sv_entnum, "colors"));
color_vec = colormapPaletteColor(floor(f / 16), 0);
}
string color;
color = cvar_string("hud_dock_color");
color_vec = stov(color);
- if(color == "shirt") {
+ if(teamplay && cvar(strcat("hud_dock_color_team"))) {
+ f = stof(getplayerkey(self.sv_entnum, "colors"));
+ color_vec = colormapPaletteColor(mod(f, 16), 1) * cvar("hud_dock_color_team");
+ }
+ else if(color == "shirt") {
f = stof(getplayerkey(self.sv_entnum, "colors"));
color_vec = colormapPaletteColor(floor(f / 16), 0);
}