if(!autocvar_hud_panel_weapons) return;
if(spectatee_status == -1) return;
}
-
- hud_configure_active_panel = HUD_PANEL_WEAPONS;
+ else
+ hud_configure_active_panel = HUD_PANEL_WEAPONS;
float timeout = autocvar_hud_panel_weapons_timeout;
float timeout_effect_length, timein_effect_length;
if(!autocvar_hud_panel_ammo) return;
if(spectatee_status == -1) return;
}
-
- hud_configure_active_panel = HUD_PANEL_AMMO;
+ else
+ hud_configure_active_panel = HUD_PANEL_AMMO;
HUD_Panel_UpdateCvars(ammo);
vector pos, mySize;
}
else
{
+ hud_configure_active_panel = HUD_PANEL_POWERUPS;
+
strength_time = 15;
shield_time = 27;
}
- hud_configure_active_panel = HUD_PANEL_POWERUPS;
-
HUD_Panel_UpdateCvars(powerups);
vector pos, mySize;
pos = panel_pos;
}
else
{
+ hud_configure_active_panel = HUD_PANEL_HEALTHARMOR;
+
health = 150;
armor = 75;
fuel = 20;
}
- hud_configure_active_panel = HUD_PANEL_HEALTHARMOR;
-
HUD_Panel_UpdateCvars(healtharmor);
vector pos, mySize;
pos = panel_pos;
{
if(!autocvar_hud_panel_notify) return;
}
-
- hud_configure_active_panel = HUD_PANEL_NOTIFY;
+ else
+ hud_configure_active_panel = HUD_PANEL_NOTIFY;
HUD_Panel_UpdateCvars(notify);
vector pos, mySize;
{
if(!autocvar_hud_panel_timer) return;
}
-
- hud_configure_active_panel = HUD_PANEL_TIMER;
+ else
+ hud_configure_active_panel = HUD_PANEL_TIMER;
HUD_Panel_UpdateCvars(timer);
vector pos, mySize;
if (autocvar_hud_panel_radar == 0) return;
if (autocvar_hud_panel_radar != 2 && !teamplay) return;
}
-
- hud_configure_active_panel = HUD_PANEL_RADAR;
+ else
+ hud_configure_active_panel = HUD_PANEL_RADAR;
HUD_Panel_UpdateCvars(radar);
vector pos, mySize;
if(!autocvar_hud_panel_score) return;
if(spectatee_status == -1 && (gametype == GAME_RACE || gametype == GAME_CTS)) return;
}
-
- hud_configure_active_panel = HUD_PANEL_SCORE;
+ else
+ hud_configure_active_panel = HUD_PANEL_SCORE;
HUD_Panel_UpdateCvars(score);
vector pos, mySize;
if(!(gametype == GAME_RACE || gametype == GAME_CTS)) return;
if(spectatee_status == -1) return;
}
-
- hud_configure_active_panel = HUD_PANEL_RACETIMER;
+ else
+ hud_configure_active_panel = HUD_PANEL_RACETIMER;
HUD_Panel_UpdateCvars(racetimer);
vector pos, mySize;
}
else
{
+ hud_configure_active_panel = HUD_PANEL_VOTE;
+
vote_yescount = 3;
vote_nocount = 2;
vote_needed = 4;
}
- hud_configure_active_panel = HUD_PANEL_VOTE;
-
string s;
float a;
if(vote_active != vote_prev) {
if(!autocvar_hud_panel_modicons) return;
if (gametype != GAME_CTF && gametype != GAME_KEYHUNT && gametype != GAME_NEXBALL && gametype != GAME_CTS && gametype != GAME_RACE && gametype != GAME_CA && gametype != GAME_FREEZETAG && gametype != GAME_KEEPAWAY && gametype != GAME_DOMINATION) return;
}
-
- hud_configure_active_panel = HUD_PANEL_MODICONS;
+ else
+ hud_configure_active_panel = HUD_PANEL_MODICONS;
HUD_Panel_UpdateCvars(modicons);
vector pos, mySize;
if(!autocvar_hud_panel_pressedkeys) return;
if(spectatee_status <= 0 && autocvar_hud_panel_pressedkeys < 2) return;
}
+ else
+ hud_configure_active_panel = HUD_PANEL_PRESSEDKEYS;
- hud_configure_active_panel = HUD_PANEL_PRESSEDKEYS;
HUD_Panel_UpdateCvars(pressedkeys);
vector pos, mySize;
return;
}
}
-
- hud_configure_active_panel = HUD_PANEL_CHAT;
+ else
+ hud_configure_active_panel = HUD_PANEL_CHAT;
HUD_Panel_UpdateCvars(chat);
{
if(!autocvar_hud_panel_engineinfo) return;
}
-
- hud_configure_active_panel = HUD_PANEL_ENGINEINFO;
+ else
+ hud_configure_active_panel = HUD_PANEL_ENGINEINFO;
HUD_Panel_UpdateCvars(engineinfo);
vector pos, mySize;
{
if(!autocvar_hud_panel_infomessages) return;
}
-
- hud_configure_active_panel = HUD_PANEL_INFOMESSAGES;
+ else
+ hud_configure_active_panel = HUD_PANEL_INFOMESSAGES;
HUD_Panel_UpdateCvars(infomessages);
vector pos, mySize;
if(!autocvar__hud_configure) return;
if(spectatee_status <= 0 && autocvar_hud_panel_physics < 2) return;
}
-
- hud_configure_active_panel = HUD_PANEL_PHYSICS;
+ else
+ hud_configure_active_panel = HUD_PANEL_PHYSICS;
HUD_Panel_UpdateCvars(physics);