Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
hud.qh
Go to the documentation of this file.
1#pragma once
2
4#include <common/scores.qh>
5
7vector SIZE_CURSOR = '32 32 0';
8void draw_cursor(vector pos, vector ofs, string img, vector col, float a);
9void draw_cursor_normal(vector pos, vector col, float a);
11
13void HUD_Scale_Enable();
14
15#define HUD_ScaleX(f) (f * hud_scale.x)
16#define HUD_ScaleY(f) (f * hud_scale.y)
17#define HUD_ShiftX(f) (f + hud_shift.x + hud_shift.z * (f - hud_scale_center.x))
18#define HUD_ShiftY(f) (f + hud_shift.y + hud_shift.z * (f - hud_scale_center.y))
21
22vector HUD_GetFontsize(string cvarname);
23
25
27void HUD_Radar_Mouse();
30
31REGISTRY(hud_panels, BITS(6))
32REGISTER_REGISTRY(hud_panels)
33
34REGISTRY_DEFINE_GET(hud_panels, NULL)
35
36#define _REGISTER_HUD_PANEL(id, draw_func, export_func, configflags, showflags) \
37 void draw_func(); \
38 void export_func(int fh); \
39 REGISTER(hud_panels, HUD_PANEL, id, m_id, new_pure(hud_panel)) \
40 { \
41 this.panel_id = this.m_id; \
42 this.panel_draw = draw_func; \
43 this.panel_export = export_func; \
44 this.panel_name = strzone(strtolower(#id)); \
45 this.panel_configflags = configflags; \
46 this.panel_showflags = showflags; \
47 }
48
49#define REGISTER_HUD_PANEL(id, draw_func, configflags, showflags) \
50 _REGISTER_HUD_PANEL(id, draw_func, draw_func##_Export, configflags, showflags)
51
52#define HUD_PANEL(NAME) HUD_PANEL_##NAME
53
54// draw the background/borders
55#define HUD_Panel_DrawBg() MACRO_BEGIN \
56 if (panel.current_panel_bg != "0" && panel.current_panel_bg != "") \
57 draw_BorderPicture( \
58 HUD_Shift(panel_pos - '1 1 0' * panel_bg_border), \
59 panel.current_panel_bg, \
60 HUD_Scale(panel_size + '1 1 0' * 2 * panel_bg_border), \
61 panel_bg_color, panel_bg_alpha, \
62 HUD_Scale('1 1 0' * BORDER_MULTIPLIER * panel_bg_border) \
63 ); \
64MACRO_END
65
66int panel_order[REGISTRY_MAX(hud_panels)];
68
76
77float HUD_Radar_InputEvent(float bInputType, float nPrimary, float nSecondary);
79
80float HUD_GetRowCount(int item_count, vector size, float item_aspect);
81vector HUD_Get_Num_Color(float hp, float maxvalue, bool blink);
82void DrawNumIcon(vector myPos, vector mySize, float theTime, string icon, bool vertical, bool isInfinite, bool icon_right_align, vector color, float theAlpha);
83void DrawNumIcon_expanding(vector myPos, vector mySize, float theTime, string icon, bool vertical, bool isInfinite, int icon_right_align, vector color, float theAlpha, float fadelerp);
84void HUD_Panel_DrawHighlight(vector pos, vector mySize, vector color, float theAlpha, int drawflag);
85vector HUD_GetTableSize_BestItemAR(int item_count, vector psize, float item_aspect);
86
87void HUD_Reset ();
88void HUD_Main ();
89
90int race_CheckName(string net_name);
91string MakeRaceString(int cp, float mytime, float theirtime, float othertime, float lapdelta, string theirname);
92
96int vote_highlighted; // currently selected vote
97
98int vote_active; // is there an active vote?
99int vote_prev; // previous state of vote_active to check for a change
101float vote_change; // "time" when vote_active changed
102
104vector panel_click_distance; // mouse cursor distance from the top left corner of the panel (saved only upon a click)
105vector panel_click_resizeorigin; // coordinates for opposite point when resizing
106float resizeCorner; // 1 = topleft, 2 = topright, 3 = bottomleft, 4 = bottomright
108float highlightedAction; // 0 = nothing, 1 = move, 2 = resize
109
110const float BORDER_MULTIPLIER = 4;
112
116
119
124
125float timer;
127
129const int S_SHIFT = 1;
130const int S_CTRL = 2;
131const int S_ALT = 4;
132const int S_TAB = 8;
133
135
138
140
144
146
148entityclass(HUDPanel);
149classfield(HUDPanel) .string panel_name;
150classfield(HUDPanel) .int panel_id;
151classfield(HUDPanel) .vector current_panel_pos;
152classfield(HUDPanel) .vector current_panel_size;
153classfield(HUDPanel) .string current_panel_bg;
154classfield(HUDPanel) .float current_panel_bg_alpha;
155classfield(HUDPanel) .float current_panel_bg_border;
156classfield(HUDPanel) .vector current_panel_bg_color;
157classfield(HUDPanel) .float current_panel_bg_color_team;
158classfield(HUDPanel) .float current_panel_bg_padding;
159classfield(HUDPanel) .float current_panel_fg_alpha;
160classfield(HUDPanel) .float update_time;
164string panel_bg_str; // "_str" vars contain the raw value of the cvar, non-"_str" contains what hud.qc code should use
176
177classfield(HUDPanel) .void() panel_draw;
178classfield(HUDPanel) .void(int fh) panel_export;
179
180// chat panel can be reduced / moved while the mapvote is active
181// let know the mapvote panel about chat pos and size
184
186
187float autocvar__menu_alpha; // updated by the menu VM, useful to tell when the menu is being drawn
188
190
206
208
212
216
217// shared across viewmodel effects and dynamic hud code
220
226
227void HUD_Panel_DrawProgressBar(vector theOrigin, vector theSize, string pic, float length_ratio, bool vertical, float baralign, vector theColor, float theAlpha, int drawflag);
228
230const int PANEL_SHOW_MAINGAME = BIT(0); // show in the main HUD
231const int PANEL_SHOW_MINIGAME = BIT(1); // show when minigames panels are shown
232const int PANEL_SHOW_MAPVOTE = BIT(2); // show during map vote
233const int PANEL_SHOW_WITH_SB = BIT(3); // show when scoreboard is on
234
236const int PANEL_CONFIG_NO = 0x00;
237const int PANEL_CONFIG_MAIN = 0x01;
238const int PANEL_CONFIG_CANBEOFF = 0x02; // panel can be disabled (if disabled it's displayed with a low alpha)
239
240
241// prev_* vars contain the health/armor at the previous FRAME
242// set to -1 when player is dead or was not playing
246// old_p_* vars keep track of previous values when smoothing value changes of the progressbar
249// prev_p_* vars contain the health/armor progressbar value at the previous FRAME
250// set to -1 to forcedly stop effects when we switch spectated player (e.g. from playerX: 70h to playerY: 50h)
252
253void HUD_ItemsTime();
254
283// always add new panels to the end of list and add a comment in the form of
284// "// Panel Name (#nr)" with the relative panel nr in your main panelname.qc
285
286// Because calling lots of functions in QC apparently cuts fps in half on many machines:
287// ----------------------
288// MACRO HELL STARTS HERE
289// ----------------------
290// Little help for the poor people who have to make sense of this: Start from the bottom ;)
291
292// Get value for panel.current_panel_bg: if "" fetch default, else use panel_bg_str
293// comment on last line of macro: // we probably want to see a background in config mode at all times...
294#define HUD_Panel_GetBg() MACRO_BEGIN \
295 string panel_bg; \
296 if (!autocvar__hud_configure && panel_bg_str == "0") \
297 panel_bg = "0"; \
298 else \
299 { \
300 if (panel_bg_str == "") \
301 panel_bg_str = autocvar_hud_panel_bg; \
302 if (panel_bg_str == "0" && !autocvar__hud_configure) \
303 panel_bg = "0"; \
304 else \
305 { \
306 if (panel_bg_str == "0" && autocvar__hud_configure) \
307 panel_bg_alpha_str = "0"; \
308 panel_bg = strcat(hud_skin_path, "/", panel_bg_str); \
309 if (precache_pic(panel_bg) == "") \
310 { \
311 panel_bg = strcat(hud_skin_path, "/", "border_default"); \
312 if (precache_pic(panel_bg) == "") \
313 panel_bg = strcat("gfx/hud/default/", "border_default"); \
314 } \
315 } \
316 } \
317 strcpy(panel.current_panel_bg, panel_bg); \
318MACRO_END
319
320// Get value for panel_bg_color: if "" fetch default, else use panel_bg_color. Convert pants, shirt or teamcolor into a vector.
321#define HUD_Panel_GetColor() MACRO_BEGIN \
322 if (teamplay && panel_bg_color_team > 0) \
323 { \
324 if (autocvar__hud_configure && myteam == NUM_SPECTATOR) \
325 panel_bg_color = '1 0 0' * panel_bg_color_team; \
326 else \
327 panel_bg_color = myteamcolors * panel_bg_color_team; \
328 } \
329 else if (autocvar_hud_configure_teamcolorforced && autocvar__hud_configure && panel_bg_color_team > 0) \
330 panel_bg_color = '1 0 0' * panel_bg_color_team; \
331 else \
332 { \
333 if (panel_bg_color_str == "") \
334 panel_bg_color = autocvar_hud_panel_bg_color; \
335 else \
336 { \
337 if (panel_bg_color_str == "shirt") \
338 panel_bg_color = colormapPaletteColor(floor(entcs_GetClientColors(current_player) / 16), 0); \
339 else if (panel_bg_color_str == "pants") \
340 panel_bg_color = colormapPaletteColor(entcs_GetClientColors(current_player) % 16, 1); \
341 else \
342 panel_bg_color = stov(panel_bg_color_str); \
343 } \
344 } \
345MACRO_END
346
347// Get value for panel_bg_color_team: if "" fetch default, else use panel_bg_color_team_str
348#define HUD_Panel_GetColorTeam() MACRO_BEGIN \
349 if (panel_bg_color_team_str == "") \
350 panel_bg_color_team = autocvar_hud_panel_bg_color_team; \
351 else \
352 panel_bg_color_team = stof(panel_bg_color_team_str); \
353MACRO_END
354
355// Get value for panel_bg_alpha: if "" fetch default, else use panel_bg_alpha. Also do various menu dialog fadeout/in checks, and minalpha checks
356// comment on line 3 of macro: // do not set a minalpha cap when showing the config dialog for this panel
357#define HUD_Panel_GetBgAlpha() MACRO_BEGIN \
358 if (panel_bg_alpha_str == "") \
359 panel_bg_alpha_str = ftos(autocvar_hud_panel_bg_alpha); \
360 panel_bg_alpha = stof(panel_bg_alpha_str); \
361 if (autocvar__hud_configure) \
362 { \
363 if (!panel_enabled) \
364 panel_bg_alpha = 0.25; \
365 else if (hud_configure_menu_open == 2 && panel == highlightedPanel) \
366 panel_bg_alpha = (1 - autocvar__menu_alpha) * max(cvar("hud_configure_bg_minalpha"), panel_bg_alpha) + autocvar__menu_alpha * panel_bg_alpha; \
367 else \
368 panel_bg_alpha = max(cvar("hud_configure_bg_minalpha"), panel_bg_alpha); \
369 } \
370MACRO_END
371
372// Get value for panel_fg_alpha. Also do various minalpha checks
373// comment on line 2 of macro: // ALWAYS show disabled panels at 0.25 alpha when in config mode
374#define HUD_Panel_GetFgAlpha() MACRO_BEGIN \
375 panel_fg_alpha = autocvar_hud_panel_fg_alpha; \
376 if (autocvar__hud_configure && !panel_enabled) \
377 panel_fg_alpha = 0.25; \
378MACRO_END
379
380// Get border. See comments above, it's similar.
381#define HUD_Panel_GetBorder() MACRO_BEGIN \
382 if (panel_bg_border_str == "") \
383 panel_bg_border = autocvar_hud_panel_bg_border; \
384 else \
385 panel_bg_border = stof(panel_bg_border_str); \
386MACRO_END
387
388// Get padding. See comments above, it's similar.
389// last line is a port of the old function, basically always make sure the panel contents are at least 5 pixels tall/wide, to disallow extreme padding values
390#define HUD_Panel_GetPadding() MACRO_BEGIN \
391 if (panel_bg_padding_str == "") \
392 panel_bg_padding = autocvar_hud_panel_bg_padding; \
393 else \
394 panel_bg_padding = stof(panel_bg_padding_str); \
395 panel_bg_padding = min(min(panel_size.x, panel_size.y) * 0.5 - 5, panel_bg_padding); \
396MACRO_END
397
398// return smoothly faded pos and size of given panel when a dialog is active
399// don't center too wide panels, it doesn't work with different resolutions
400#define HUD_Panel_UpdatePosSize_ForMenu() MACRO_BEGIN \
401 vector new_size = panel_size; \
402 float max_panel_width = 0.52 * vid_conwidth; \
403 if (panel_size.x > max_panel_width) \
404 { \
405 new_size.x = max_panel_width; \
406 new_size.y = panel_size.y * (new_size.x / panel_size.x); \
407 } \
408 vector new_pos = vec2(panel_bg_border + 0.5 * max_panel_width, 0.5 * vid_conheight) - 0.5 * new_size; \
409 panel_pos = (1 - autocvar__menu_alpha) * panel_pos + (autocvar__menu_alpha) * new_pos; \
410 panel_size = (1 - autocvar__menu_alpha) * panel_size + (autocvar__menu_alpha) * new_size; \
411MACRO_END
412
413// Scale the pos and size vectors to absolute coordinates
414#define HUD_Panel_ScalePosSize() MACRO_BEGIN \
415 panel_pos.x *= vid_conwidth; \
416 panel_pos.y *= vid_conheight; \
417 panel_size.x *= vid_conwidth; \
418 panel_size.y *= vid_conheight; \
419MACRO_END
420
423
424#define Hud_Panel_GetPanelEnabled() \
425 panel_enabled = ((panel.panel_configflags & PANEL_CONFIG_CANBEOFF) \
426 ? cvar(strcat("hud_panel_", panel.panel_name)) : true)
427
428#define HUD_Panel_UpdatePosSize() MACRO_BEGIN \
429 Hud_Panel_GetPanelEnabled(); \
430 panel_pos = stov(cvar_string(strcat("hud_panel_", panel.panel_name, "_pos"))); \
431 panel_size = stov(cvar_string(strcat("hud_panel_", panel.panel_name, "_size"))); \
432 HUD_Panel_ScalePosSize(); \
433 if (hud_configure_menu_open == 2 && panel == highlightedPanel) \
434 HUD_Panel_UpdatePosSize_ForMenu(); \
435 panel_bg_border_str = cvar_string(strcat("hud_panel_", panel.panel_name, "_bg_border")); \
436 HUD_Panel_GetBorder(); \
437MACRO_END
438
439const int NOTIFY_MAX_ENTRIES = 10;
440const float NOTIFY_ICON_MARGIN = 0.02;
441
448
449void HUD_Notify_Push(string icon, string attacker, string victim);
450
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition bits.qh:8
#define BITS(n)
Definition bits.qh:9
void HUD_CenterPrint()
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void HUD_Checkpoints()
void HUD_MinigameStatus()
void HUD_MinigameHelp()
void HUD_MinigameBoard()
void HUD_MinigameMenu()
void HUD_Ammo()
Definition ammo.qc:108
void HUD_Chat()
Definition chat.qc:68
void HUD_Physics()
Definition physics.qc:38
void HUD_Pickup()
Definition pickup.qc:33
void HUD_Powerups()
Definition powerups.qc:75
void HUD_Vote()
Definition vote.qc:13
void MapVote_Draw()
Definition mapvoting.qc:425
entity PlayerScoreField
Definition scores.qh:140
ERASEABLE float blink(float base, float range, float freq)
Definition util.qc:2178
vector size
vector color
Definition dynlight.qc:15
void HUD_EngineInfo()
Definition engineinfo.qc:23
Weapons
Definition guide.qh:113
void HUD_HealthArmor()
int race_CheckName(string net_name)
Definition cl_race.qc:18
entity highlightedPanel
Definition hud.qh:107
const float NOTIFY_ICON_MARGIN
Definition hud.qh:440
int vote_highlighted
Definition hud.qh:96
float panel_fade_alpha
Definition hud.qh:421
int vote_nocount
Definition hud.qh:94
string panel_bg_color_team_str
Definition hud.qh:168
float old_p_armortime
Definition hud.qh:248
float autocvar_hud_progressbar_alpha
Definition hud.qh:204
string autocvar_hud_dock
Definition hud.qh:192
vector panel_size
Definition hud.qh:163
const int PANEL_CONFIG_NO
Definition hud.qh:236
float notify_times[NOTIFY_MAX_ENTRIES]
Definition hud.qh:444
void draw_cursor_normal(vector pos, vector col, float a)
Definition hud.qc:37
float hud_panel_radar_bottom
Definition hud.qh:72
float highlightedAction
Definition hud.qh:108
float HUD_Radar_InputEvent(float bInputType, float nPrimary, float nSecondary)
bool hud_panel_radar_mouse
Definition hud.qh:71
float hud_dynamic_shake_time
Definition hud.qh:215
entity highlightedPanel_backup
Definition hud.qh:141
bool radar_panel_modified
Definition hud.qh:75
int vote_needed
Definition hud.qh:95
float panel_fg_alpha
Definition hud.qh:169
float health_damagetime
Definition hud.qh:244
float autocvar_hud_dock_alpha
Definition hud.qh:193
void HUD_Reset()
Definition hud.qc:555
string notify_icons[NOTIFY_MAX_ENTRIES]
Definition hud.qh:447
string panel_bg_border_str
Definition hud.qh:173
int vote_active
Definition hud.qh:98
string hud_skin_prev
Definition hud.qh:137
vector panel_pos_backup
Definition hud.qh:142
int complain_weapon_type
Definition hud.qh:114
vector panel_click_distance
Definition hud.qh:104
float weaponprevtime
Definition hud.qh:123
void HUD_Notify_Push(string icon, string attacker, string victim)
Definition notify.qc:19
const int S_SHIFT
Definition hud.qh:129
int health_beforedamage
Definition hud.qh:245
int hudShiftState
Definition hud.qh:128
int panel_showflags
Definition hud.qh:229
void HUD_Panel_DrawProgressBar(vector theOrigin, vector theSize, string pic, float length_ratio, bool vertical, float baralign, vector theColor, float theAlpha, int drawflag)
Definition hud.qc:269
string autocvar__hud_panelorder
Definition hud.qh:189
string MakeRaceString(int cp, float mytime, float theirtime, float othertime, float lapdelta, string theirname)
Definition racetimer.qc:22
var void HUD_ModIcons_GameType(vector pos, vector size)
Weapon last_switchweapon
Definition hud.qh:120
const int S_ALT
Definition hud.qh:131
int teamnagger
Definition hud.qh:126
float autocvar__menu_alpha
Definition hud.qh:187
float hud_dynamic_shake_factor
Definition hud.qh:214
void HUD_Panel_LoadCvars()
Definition hud.qc:215
vector HUD_Shift(vector v)
Definition hud.qc:105
float panel_bg_padding
Definition hud.qh:174
float autocvar_hud_panel_bg_alpha
Definition hud.qh:197
string panel_bg_alpha_str
Definition hud.qh:171
vector hud_dynamic_shake_realofs
Definition hud.qh:213
bool hud_draw_maximized
Definition hud.qh:69
const int NOTIFY_MAX_ENTRIES
Definition hud.qh:439
string autocvar_hud_skin
Definition hud.qh:203
int prev_armor
Definition hud.qh:243
vector autocvar_hud_dynamic_follow_scale_xyz
Definition hud.qh:211
bool hud_panel_radar_maximized
Definition hud.qh:70
int panel_order[REGISTRY_MAX(hud_panels)]
Definition hud.qh:66
void LoadMenuSkinValues()
Definition hud.qc:42
void HUD_Radar_Mouse()
Definition radar.qc:123
void draw_cursor(vector pos, vector ofs, string img, vector col, float a)
Definition hud.qc:31
bool hud_panel_radar_temp_hidden
Definition hud.qh:73
int notify_count
Definition hud.qh:443
float autocvar_hud_dynamic_follow
Definition hud.qh:209
float panel_bg_border
Definition hud.qh:172
int vote_yescount
Definition hud.qh:93
Weapon last_activeweapon
Definition hud.qh:121
entity complain_weapon
Definition hud.qh:113
bool HUD_WouldShowCursor()
Definition hud.qc:663
float panel_bg_color_team
Definition hud.qh:167
float resizeCorner
Definition hud.qh:106
float chat_sizey
Definition hud.qh:183
string panel_bg_str
Definition hud.qh:164
vector hud_scale_current
Definition hud.qh:222
string panel_bg_color_str
Definition hud.qh:166
bool autocvar_hud_dock_color_team
Definition hud.qh:195
#define REGISTER_HUD_PANEL(id, draw_func, configflags, showflags)
Definition hud.qh:49
string hud_panelorder_prev
Definition hud.qh:67
int prev_health
Definition hud.qh:243
const int PANEL_SHOW_MAPVOTE
Definition hud.qh:232
float autocvar_hud_panel_bg_border
Definition hud.qh:198
float vote_change
Definition hud.qh:101
float vote_alpha
Definition hud.qh:100
vector panel_size_copied
Definition hud.qh:145
const int PANEL_SHOW_MINIGAME
Definition hud.qh:231
int panel_configflags
Definition hud.qh:235
bool QuickMenu_IsOpened()
Definition quickmenu.qc:291
int vote_prev
Definition hud.qh:99
float panel_enabled
Definition hud.qh:161
void HUD_ModIcons_SetFunc()
Definition modicons.qc:19
float complain_weapon_time
Definition hud.qh:115
vector HUD_GetFontsize(string cvarname)
Definition hud.qc:112
float hud_fade_alpha
Definition hud.qh:134
const int PANEL_SHOW_MAINGAME
Definition hud.qh:230
int old_p_health
Definition hud.qh:247
vector hud_scale_center
Definition hud.qh:225
string autocvar_hud_dock_color
Definition hud.qh:194
void HUD_Main()
Definition hud.qc:682
float autocvar_hud_panel_update_interval
Definition hud.qh:205
vector hud_shift
Definition hud.qh:223
float armor_damagetime
Definition hud.qh:244
int prev_p_armor
Definition hud.qh:251
vector autocvar_hud_panel_bg_color
Definition hud.qh:199
vector panel_size_backup
Definition hud.qh:143
int weapon_accuracy[REGISTRY_MAX(Weapons)]
Definition hud.qh:111
void HUD_ItemsTime()
Definition itemstime.qc:287
int autocvar_hud_speed_unit
Definition hud.qh:207
int notify_index
Definition hud.qh:442
string notify_attackers[NOTIFY_MAX_ENTRIES]
Definition hud.qh:445
PlayerScoreField ps_secondary
Definition hud.qh:117
float HUD_GetRowCount(int item_count, vector size, float item_aspect)
Definition hud.qc:165
bool autocvar_hud_cursormode
Definition hud.qh:191
float current_player
Definition hud.qh:185
vector hud_scale
Definition hud.qh:221
vector cl_followmodel_ofs
Definition hud.qh:218
PlayerScoreField ps_primary
Definition hud.qh:117
float timer
Definition hud.qh:125
string autocvar_hud_panel_bg
Definition hud.qh:196
vector OFFSET_CURSOR
Definition hud.qh:6
vector HUD_GetTableSize_BestItemAR(int item_count, vector psize, float item_aspect)
Definition hud.qc:172
int ts_secondary
Definition hud.qh:118
void HUD_Scale_Enable()
Definition hud.qc:91
const float BORDER_MULTIPLIER
Definition hud.qh:110
string hud_skin_path
Definition hud.qh:136
vector panel_pos
Definition hud.qh:162
const int PANEL_SHOW_WITH_SB
Definition hud.qh:233
float chat_posy
Definition hud.qh:182
float autocvar_hud_panel_bg_padding
Definition hud.qh:201
float panel_bg_alpha
Definition hud.qh:170
int prev_p_health
Definition hud.qh:251
string notify_victims[NOTIFY_MAX_ENTRIES]
Definition hud.qh:446
vector HUD_Scale(vector v)
Definition hud.qc:98
float autocvar_hud_panel_bg_color_team
Definition hud.qh:200
vector panel_bg_color
Definition hud.qh:165
float weapontime
Definition hud.qh:122
void Hud_Dynamic_Frame()
Definition hud.qc:589
const int PANEL_CONFIG_CANBEOFF
Definition hud.qh:238
vector mousepos
Definition hud.qh:103
int ts_primary
Definition hud.qh:118
int armor_beforedamage
Definition hud.qh:245
const int S_TAB
Definition hud.qh:132
string panel_bg_padding_str
Definition hud.qh:175
entity panel
Definition hud.qh:147
const int PANEL_CONFIG_MAIN
Definition hud.qh:237
float cl_followmodel_time
Definition hud.qh:219
vector myteamcolors
Definition hud.qh:139
vector HUD_Get_Num_Color(float hp, float maxvalue, bool blink)
Definition hud.qc:123
const int S_CTRL
Definition hud.qh:130
int old_p_armor
Definition hud.qh:247
bool chat_panel_modified
Definition hud.qh:74
void DrawNumIcon(vector myPos, vector mySize, float theTime, string icon, bool vertical, bool isInfinite, bool icon_right_align, vector color, float theAlpha)
void HUD_Panel_DrawHighlight(vector pos, vector mySize, vector color, float theAlpha, int drawflag)
Definition hud.qc:374
float autocvar_hud_dynamic_follow_scale
Definition hud.qh:210
void HUD_Scale_Disable()
Definition hud.qc:84
vector hud_shift_current
Definition hud.qh:224
float old_p_healthtime
Definition hud.qh:248
float autocvar_hud_panel_fg_alpha
Definition hud.qh:202
bool HUD_Radar_Clickable()
Definition radar.qc:26
void DrawNumIcon_expanding(vector myPos, vector mySize, float theTime, string icon, bool vertical, bool isInfinite, int icon_right_align, vector color, float theAlpha, float fadelerp)
Definition hud.qc:393
vector panel_click_resizeorigin
Definition hud.qh:105
void HUD_Radar_Hide_Maximized()
Definition radar.qc:51
vector SIZE_CURSOR
Definition hud.qh:7
void HUD_InfoMessages()
void HUD_ModIcons()
Definition modicons.qc:26
void HUD_Notify()
Definition notify.qc:57
#define entityclass(...)
Definition oo.qh:52
#define classfield(name)
Definition oo.qh:57
#define NULL
Definition post.qh:14
void HUD_PressedKeys()
void HUD_QuickMenu()
Definition quickmenu.qc:634
void HUD_RaceTimer()
Definition racetimer.qc:157
void HUD_Radar()
Definition radar.qc:178
#define REGISTER_REGISTRY(id)
Definition registry.qh:229
#define REGISTRY(id, max)
Declare a new registry.
Definition registry.qh:26
#define REGISTRY_DEFINE_GET(id, null)
Definition registry.qh:40
#define REGISTRY_MAX(id)
Definition registry.qh:17
void HUD_Score()
Definition score.qc:140
void Scoreboard_Draw()
vector
Definition self.qh:92
void HUD_StrafeHUD()
Definition strafehud.qc:21
void HUD_Timer()
Definition timer.qc:67
void HUD_Weapons()
Definition weapons.qc:117