==================
*/
+void HUD_Vehicle()
+{
+ if(autocvar__hud_configure) return;
+ if(intermission == 2) return;
+
+ if(hud == HUD_BUMBLEBEE_GUN)
+ CSQC_BUMBLE_GUN_HUD();
+ else {
+ Vehicle info = get_vehicleinfo(hud);
+ info.vr_hud(info);
+ }
+}
+
bool HUD_Panel_CheckFlags(int showflags)
{
if ( HUD_Minigame_Showpanels() )
panel.panel_draw();
}
-void HUD_Reset (void)
+void HUD_Reset(void)
{
// reset gametype specific icons
if(gametype == MAPINFO_TYPE_CTF)
HUD_Mod_CTF_Reset();
}
-void HUD_Main (void)
+void HUD_Main(void)
{
int i;
// global hud theAlpha fade
for(i = hud_panels_COUNT - 1; i >= 0; --i)
HUD_Panel_Draw(hud_panels[panel_order[i]]);
+ HUD_Vehicle();
+
hud_draw_maximized = 1; // panels that may be maximized must check this var
// draw maximized panels on top
if(hud_panel_radar_maximized)
return false;
}
-void HUD_Vehicle()
-{
- if(!hud || intermission)
- return;
-
- if(hud == HUD_BUMBLEBEE_GUN)
- CSQC_BUMBLE_GUN_HUD();
- else {
- Vehicle info = get_vehicleinfo(hud);
- info.vr_hud(info);
- }
-}
-
void HUD_Crosshair_Vehicle()
{
if(!hud || intermission)
Accuracy_LoadLevels();
HUD_Main();
- HUD_Vehicle();
HUD_DrawScoreboard();
if (scoreboard_active || intermission == 2)
vector colorAmmo2)
{
SELFPARAM();
- if(scoreboard_active)
- return;
-
// Initialize
vector tmpSize = '0 0 0';
vector tmpPos = '0 0 0';
- float hudAlpha = autocvar_hud_panel_fg_alpha;
+ float hudAlpha = autocvar_hud_panel_fg_alpha * hud_fade_alpha;
float barAlpha = autocvar_hud_progressbar_alpha * hudAlpha;
float blinkValue = 0.55 + sin(time * 7) * 0.45;
vehicleHud_Pos.y = vid_conheight - vehicleHud_Size.y;
if(teamplay && autocvar_hud_panel_bg_color_team)
- drawpic(vehicleHud_Pos, frame, vehicleHud_Size, myteamcolors * autocvar_hud_panel_bg_color_team, autocvar_hud_panel_bg_alpha, DRAWFLAG_NORMAL);
+ drawpic(vehicleHud_Pos, frame, vehicleHud_Size, myteamcolors * autocvar_hud_panel_bg_color_team, autocvar_hud_panel_bg_alpha * hud_fade_alpha, DRAWFLAG_NORMAL);
else
- drawpic(vehicleHud_Pos, frame, vehicleHud_Size, autocvar_hud_panel_bg_color, autocvar_hud_panel_bg_alpha, DRAWFLAG_NORMAL);
+ drawpic(vehicleHud_Pos, frame, vehicleHud_Size, autocvar_hud_panel_bg_color, autocvar_hud_panel_bg_alpha * hud_fade_alpha, DRAWFLAG_NORMAL);
if(!autocvar__vehicles_shownchasemessage && time < vh_notice_time)
{