]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/main.qh
Merge branch 'DefaultUser/m_itemid' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / main.qh
1 #pragma once
2
3 #include <common/constants.qh>
4 #include <common/weapons/_all.qh>
5
6 // Map coordinate base calculations need these
7 vector mi_center;
8 vector mi_scale;
9 // Minimap
10 string minimapname;
11
12 float postinit;
13 entity gametype;
14
15 float FONT_USER = 8;
16
17
18 vector OFFSET_CURSOR = '0 0 0';
19 vector SIZE_CURSOR = '32 32 0';
20 void draw_cursor(vector pos, vector ofs, string img, vector col, float a);
21 void draw_cursor_normal(vector pos, vector col, float a);
22 void LoadMenuSkinValues();
23
24 vector hud_fontsize;
25
26 float RANKINGS_RECEIVED_CNT;
27 string grecordholder[RANKINGS_CNT];
28 float grecordtime[RANKINGS_CNT];
29
30 entity playerslots[255]; // 255 is engine limit on maxclients
31 entity teamslots[17];    // 17 teams (including "spectator team")
32 .float gotscores;
33 .entity owner;
34 .float ready;
35 .float eliminated;
36
37 .void(entity) draw;
38 IntrusiveList g_drawables;
39 STATIC_INIT(g_drawables) { g_drawables = IL_NEW(); }
40 .void(entity) draw2d;
41 IntrusiveList g_drawables_2d;
42 STATIC_INIT(g_drawables_2d) { g_drawables_2d = IL_NEW(); }
43 .void(entity) entremove;
44 float drawframetime;
45 vector view_origin, view_forward, view_right, view_up;
46
47 IntrusiveList g_radarlinks;
48 STATIC_INIT(g_radarlinks) { g_radarlinks = IL_NEW(); }
49 IntrusiveList g_radaricons;
50 STATIC_INIT(g_radaricons) { g_radaricons = IL_NEW(); }
51
52 bool button_zoom;
53 bool spectatorbutton_zoom;
54 bool button_attack2;
55
56 Weapon activeweapon;
57 Weapon switchingweapon;
58 Weapon switchweapon;
59 float current_viewzoom;
60 float zoomin_effect;
61 float warmup_stage;
62
63 void Fog_Force();
64
65 string _getcommandkey(string text, string command, bool forcename);
66 #define getcommandkey(cmd_name, command) _getcommandkey(cmd_name, command, false)
67 #define getcommandkey_forcename(cmd_name, command) _getcommandkey(cmd_name, command, true)
68
69 string vote_called_vote;
70 float ready_waiting;
71 float ready_waiting_for_me;
72 float vote_waiting;
73 float vote_waiting_for_me;
74
75 float current_zoomfraction;
76
77 float cs_project_is_b0rked;
78 float vid_width, vid_height, vid_pixelheight;
79
80 float camera_active;            // Demo camera is active if set to true
81 float chase_active_backup;
82 float camera_roll;
83 vector camera_direction;
84
85 void centerprint_hud(string strMessage);
86 void centerprint_kill(float id);
87 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
88
89 const float ALPHA_MIN_VISIBLE = 0.003;
90
91 float armorblockpercent;
92
93 //hooks
94 int calledhooks;
95 const int HOOK_START =    1;
96 const int HOOK_END =      2;
97
98 .float ping, ping_packetloss, ping_movementloss;
99
100 float g_trueaim_minrange;
101
102 int hud;
103 float view_quality;
104
105 int num_spectators;
106 const int MAX_SPECTATORS = 7;
107 int spectatorlist[MAX_SPECTATORS];
108
109 int framecount;
110 .float health;
111
112 float GetSpeedUnitFactor(int speed_unit);
113 string GetSpeedUnit(int speed_unit);