3 #include <common/constants.qh>
4 #include <common/weapons/_all.qh>
6 // --------------------------------------------------------------------------
9 // --------------------------------------------------------------------------
12 // Map coordinate base calculations need these
18 // --------------------------------------------------------------------------
24 //float sorted_players;
34 vector OFFSET_CURSOR = '0 0 0';
35 vector SIZE_CURSOR = '32 32 0';
36 void draw_cursor(vector pos, vector ofs, string img, vector col, float a);
37 void draw_cursor_normal(vector pos, vector col, float a);
38 void LoadMenuSkinValues();
40 // --------------------------------------------------------------------------
45 float RANKINGS_RECEIVED_CNT;
46 string grecordholder[RANKINGS_CNT];
47 float grecordtime[RANKINGS_CNT];
50 entity playerslots[255]; // 255 is engine limit on maxclients
51 entity teamslots[17]; // 17 teams (including "spectator team")
58 IntrusiveList g_drawables;
59 STATIC_INIT(g_drawables) { g_drawables = IL_NEW(); }
61 IntrusiveList g_drawables_2d;
62 STATIC_INIT(g_drawables_2d) { g_drawables_2d = IL_NEW(); }
63 .void(entity) entremove;
65 vector view_origin, view_forward, view_right, view_up;
67 IntrusiveList g_radarlinks;
68 STATIC_INIT(g_radarlinks) { g_radarlinks = IL_NEW(); }
69 IntrusiveList g_radaricons;
70 STATIC_INIT(g_radaricons) { g_radaricons = IL_NEW(); }
73 bool spectatorbutton_zoom;
77 Weapon switchingweapon;
79 float current_viewzoom;
85 string _getcommandkey(string text, string command, bool forcename);
86 #define getcommandkey(cmd_name, command) _getcommandkey(cmd_name, command, false)
87 #define getcommandkey_forcename(cmd_name, command) _getcommandkey(cmd_name, command, true)
89 string vote_called_vote;
91 float ready_waiting_for_me;
93 float vote_waiting_for_me;
95 float current_zoomfraction;
97 float cs_project_is_b0rked;
98 float vid_width, vid_height, vid_pixelheight;
100 float camera_active; // Demo camera is active if set to true
101 float chase_active_backup;
103 vector camera_direction;
105 void centerprint_hud(string strMessage);
106 void centerprint_kill(float id);
107 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
109 const float ALPHA_MIN_VISIBLE = 0.003;
111 float armorblockpercent;
115 const int HOOK_START = 1;
116 const int HOOK_END = 2;
118 .float ping, ping_packetloss, ping_movementloss;
120 float g_trueaim_minrange;
126 const int MAX_SPECTATORS = 7;
127 int spectatorlist[MAX_SPECTATORS];
132 float GetSpeedUnitFactor(int speed_unit);
133 string GetSpeedUnit(int speed_unit);