Use separate variable to store number of records to arrive from the server
[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 float RANKINGS_DISPLAY_CNT;
28 string grecordholder[RANKINGS_CNT];
29 float grecordtime[RANKINGS_CNT];
30
31 entity playerslots[255]; // 255 is engine limit on maxclients
32 entity teamslots[17];    // 17 teams (including "spectator team")
33 .float gotscores;
34 .entity owner;
35 .float ready;
36 .float eliminated;
37
38 .void(entity) draw;
39 IntrusiveList g_drawables;
40 STATIC_INIT(g_drawables) { g_drawables = IL_NEW(); }
41 .void(entity) draw2d;
42 IntrusiveList g_drawables_2d;
43 STATIC_INIT(g_drawables_2d) { g_drawables_2d = IL_NEW(); }
44 .void(entity) entremove;
45 float drawframetime;
46 vector view_origin, view_forward, view_right, view_up;
47
48 IntrusiveList g_radarlinks;
49 STATIC_INIT(g_radarlinks) { g_radarlinks = IL_NEW(); }
50 IntrusiveList g_radaricons;
51 STATIC_INIT(g_radaricons) { g_radaricons = IL_NEW(); }
52
53 bool button_zoom;
54 bool spectatorbutton_zoom;
55 bool button_attack2;
56
57 float current_viewzoom;
58 float zoomin_effect;
59 float warmup_stage;
60
61 void Fog_Force();
62
63 string _getcommandkey(string text, string command, bool forcename);
64 #define getcommandkey(cmd_name, command) _getcommandkey(cmd_name, command, false)
65 #define getcommandkey_forcename(cmd_name, command) _getcommandkey(cmd_name, command, true)
66
67 string vote_called_vote;
68 float ready_waiting;
69 float ready_waiting_for_me;
70 float vote_waiting;
71 float vote_waiting_for_me;
72
73 float current_zoomfraction;
74
75 float cs_project_is_b0rked;
76 float vid_width, vid_height, vid_pixelheight;
77
78 float camera_active;            // Demo camera is active if set to true
79 float chase_active_backup;
80 float camera_roll;
81 vector camera_direction;
82
83 void centerprint_hud(string strMessage);
84 void centerprint_kill(float id);
85 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
86
87 const float ALPHA_MIN_VISIBLE = 0.003;
88
89 float armorblockpercent;
90 float damagepush_speedfactor;
91
92 //hooks
93 int calledhooks;
94 const int HOOK_START =    1;
95 const int HOOK_END =      2;
96
97 .float ping, ping_packetloss, ping_movementloss;
98
99 float g_trueaim_minrange;
100
101 int hud;
102 float view_quality;
103
104 int num_spectators;
105 const int MAX_SPECTATORS = 7;
106 int spectatorlist[MAX_SPECTATORS];
107
108 int framecount;
109 .float health;
110
111 float GetSpeedUnitFactor(int speed_unit);
112 string GetSpeedUnit(int speed_unit);