3 #include <client/draw.qh>
4 #include <common/ent_cs.qh>
5 #include <common/gamemodes/_mod.qh>
6 #include <common/gamemodes/gamemode/ctf/cl_ctf.qh>
7 #include <common/mapinfo.qh>
8 #include <common/scores.qh>
12 void HUD_ModIcons_Export(int fh)
14 // allow saving cvars that aesthetically change the panel into hud skin files
16 FOREACH(Gametypes, it.m_modicons_export, it.m_modicons_export(fh));
19 void HUD_ModIcons_SetFunc()
21 HUD_ModIcons_GameType = gametype.m_modicons;
28 if(!autocvar__hud_configure)
30 if(!autocvar_hud_panel_modicons) return;
31 if(!HUD_ModIcons_GameType) return;
34 if(mod_active || autocvar__hud_configure)
35 mod_alpha = min(mod_alpha + frametime * 2, 1);
37 mod_alpha = max(mod_alpha - frametime * 2, 0);
41 panel_fade_alpha *= mod_alpha;
42 HUD_Panel_LoadCvars();
46 if (autocvar_hud_panel_modicons_dynamichud)
55 panel_pos += '1 1 0' * panel_bg_padding;
56 panel_size -= '2 2 0' * panel_bg_padding;
59 if(autocvar__hud_configure)
60 HUD_Mod_CTF(panel_pos, panel_size);
62 HUD_ModIcons_GameType(panel_pos, panel_size);