3 #include <common/constants.qh>
4 #include <common/weapons/_all.qh>
6 // Map coordinate base calculations need these
15 #define ISGAMETYPE(NAME) (gametype == MAPINFO_TYPE_##NAME)
20 vector OFFSET_CURSOR = '0 0 0';
21 vector SIZE_CURSOR = '32 32 0';
22 void draw_cursor(vector pos, vector ofs, string img, vector col, float a);
23 void draw_cursor_normal(vector pos, vector col, float a);
24 void LoadMenuSkinValues();
28 void Ent_Remove(entity this);
32 bool SetTeam(entity pl, int Team);
36 float RANKINGS_RECEIVED_CNT;
37 float RANKINGS_DISPLAY_CNT;
38 string grecordholder[RANKINGS_CNT];
39 float grecordtime[RANKINGS_CNT];
41 entity playerslots[255]; // 255 is engine limit on maxclients
42 entity teamslots[17]; // 17 teams (including "spectator team")
49 IntrusiveList g_drawables;
50 STATIC_INIT(g_drawables) { g_drawables = IL_NEW(); }
52 IntrusiveList g_drawables_2d;
53 STATIC_INIT(g_drawables_2d) { g_drawables_2d = IL_NEW(); }
54 .void(entity) entremove;
56 vector view_origin, view_forward, view_right, view_up;
58 IntrusiveList g_radarlinks;
59 STATIC_INIT(g_radarlinks) { g_radarlinks = IL_NEW(); }
60 IntrusiveList g_radaricons;
61 STATIC_INIT(g_radaricons) { g_radaricons = IL_NEW(); }
64 bool spectatorbutton_zoom;
67 float current_viewzoom;
73 string _getcommandkey(string text, string command, bool forcename);
74 #define getcommandkey(cmd_name, command) _getcommandkey(cmd_name, command, false)
75 #define getcommandkey_forcename(cmd_name, command) _getcommandkey(cmd_name, command, true)
77 string vote_called_vote;
79 bool ready_waiting_for_me;
81 bool vote_waiting_for_me;
83 float current_zoomfraction;
85 int cs_project_is_b0rked;
86 int vid_width, vid_height;
87 float vid_pixelheight;
89 float camera_active; // Demo camera is active if set to true
90 float chase_active_backup;
92 vector camera_direction;
94 void centerprint_hud(string strMessage);
95 void centerprint_kill(float id);
96 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
98 const float ALPHA_MIN_VISIBLE = 0.003;
100 float armorblockpercent;
101 float damagepush_speedfactor;
105 const int HOOK_START = 1;
106 const int HOOK_END = 2;
108 .float ping, ping_packetloss, ping_movementloss;
110 float g_trueaim_minrange;
116 const int MAX_SPECTATORS = 7;
117 int spectatorlist[MAX_SPECTATORS];
121 float GetSpeedUnitFactor(int speed_unit);
122 string GetSpeedUnit(int speed_unit);