3 #include <common/constants.qh>
4 #include <common/weapons/_all.qh>
6 // Map coordinate base calculations need these
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();
26 float RANKINGS_RECEIVED_CNT;
27 string grecordholder[RANKINGS_CNT];
28 float grecordtime[RANKINGS_CNT];
30 entity playerslots[255]; // 255 is engine limit on maxclients
31 entity teamslots[17]; // 17 teams (including "spectator team")
38 IntrusiveList g_drawables;
39 STATIC_INIT(g_drawables) { g_drawables = IL_NEW(); }
41 IntrusiveList g_drawables_2d;
42 STATIC_INIT(g_drawables_2d) { g_drawables_2d = IL_NEW(); }
43 .void(entity) entremove;
45 vector view_origin, view_forward, view_right, view_up;
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(); }
53 bool spectatorbutton_zoom;
56 float current_viewzoom;
62 string _getcommandkey(string text, string command, bool forcename);
63 #define getcommandkey(cmd_name, command) _getcommandkey(cmd_name, command, false)
64 #define getcommandkey_forcename(cmd_name, command) _getcommandkey(cmd_name, command, true)
66 string vote_called_vote;
68 float ready_waiting_for_me;
70 float vote_waiting_for_me;
72 float current_zoomfraction;
74 float cs_project_is_b0rked;
75 float vid_width, vid_height, vid_pixelheight;
77 float camera_active; // Demo camera is active if set to true
78 float chase_active_backup;
80 vector camera_direction;
82 void centerprint_hud(string strMessage);
83 void centerprint_kill(float id);
84 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
86 const float ALPHA_MIN_VISIBLE = 0.003;
88 float armorblockpercent;
89 float damagepush_speedfactor;
93 const int HOOK_START = 1;
94 const int HOOK_END = 2;
96 .float ping, ping_packetloss, ping_movementloss;
98 float g_trueaim_minrange;
104 const int MAX_SPECTATORS = 7;
105 int spectatorlist[MAX_SPECTATORS];
110 float GetSpeedUnitFactor(int speed_unit);
111 string GetSpeedUnit(int speed_unit);