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 // --------------------------------------------------------------------------
43 const int MAX_SBT_FIELDS = MAX_SCORE;
45 PlayerScoreField sbt_field[MAX_SBT_FIELDS + 1];
46 float sbt_field_size[MAX_SBT_FIELDS + 1];
47 string sbt_field_title[MAX_SBT_FIELDS + 1];
52 float RANKINGS_RECEIVED_CNT;
53 string grecordholder[RANKINGS_CNT];
54 float grecordtime[RANKINGS_CNT];
57 entity playerslots[255]; // 255 is engine limit on maxclients
58 entity teamslots[17]; // 17 teams (including "spectator team")
65 IntrusiveList g_drawables;
66 STATIC_INIT(g_drawables) { g_drawables = IL_NEW(); }
68 IntrusiveList g_drawables_2d;
69 STATIC_INIT(g_drawables_2d) { g_drawables_2d = IL_NEW(); }
70 .void(entity) entremove;
72 vector view_origin, view_forward, view_right, view_up;
74 IntrusiveList g_radarlinks;
75 STATIC_INIT(g_radarlinks) { g_radarlinks = IL_NEW(); }
76 IntrusiveList g_radaricons;
77 STATIC_INIT(g_radaricons) { g_radaricons = IL_NEW(); }
80 bool spectatorbutton_zoom;
84 Weapon switchingweapon;
86 float current_viewzoom;
92 string _getcommandkey(string text, string command, bool forcename);
93 #define getcommandkey(cmd_name, command) _getcommandkey(cmd_name, command, false)
94 #define getcommandkey_forcename(cmd_name, command) _getcommandkey(cmd_name, command, true)
96 string vote_called_vote;
98 float ready_waiting_for_me;
100 float vote_waiting_for_me;
102 float current_zoomfraction;
104 float cs_project_is_b0rked;
105 float vid_width, vid_height, vid_pixelheight;
107 float camera_active; // Demo camera is active if set to true
108 float chase_active_backup;
110 vector camera_direction;
112 void centerprint_hud(string strMessage);
113 void centerprint_kill(float id);
114 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
116 const float ALPHA_MIN_VISIBLE = 0.003;
118 float armorblockpercent;
122 const int HOOK_START = 1;
123 const int HOOK_END = 2;
125 .float ping, ping_packetloss, ping_movementloss;
127 float g_trueaim_minrange;
133 const int MAX_SPECTATORS = 7;
134 int spectatorlist[MAX_SPECTATORS];
139 float GetSpeedUnitFactor(int speed_unit);
140 string GetSpeedUnit(int speed_unit);