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")
48 IntrusiveList g_drawables;
49 IntrusiveList g_drawables_2d;
50 IntrusiveList g_radarlinks;
51 IntrusiveList g_radaricons;
54 g_drawables = IL_NEW();
55 g_drawables_2d = IL_NEW();
56 g_radarlinks = IL_NEW();
57 g_radaricons = IL_NEW();
62 .void(entity) entremove;
64 vector view_origin, view_forward, view_right, view_up;
68 bool spectatorbutton_zoom;
71 float current_viewzoom;
77 string _getcommandkey(string text, string command, bool forcename);
78 #define getcommandkey(cmd_name, command) _getcommandkey(cmd_name, command, false)
79 #define getcommandkey_forcename(cmd_name, command) _getcommandkey(cmd_name, command, true)
81 string vote_called_vote;
83 bool ready_waiting_for_me;
85 bool vote_waiting_for_me;
87 float current_zoomfraction;
89 int cs_project_is_b0rked;
90 int vid_width, vid_height;
91 float vid_pixelheight;
93 float camera_active; // Demo camera is active if set to true
94 float chase_active_backup;
96 vector camera_direction;
98 void centerprint_hud(string strMessage);
99 void centerprint_kill(float id);
100 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
102 const float ALPHA_MIN_VISIBLE = 0.003;
104 float armorblockpercent;
105 float damagepush_speedfactor;
109 const int HOOK_START = 1;
110 const int HOOK_END = 2;
112 .float ping, ping_packetloss, ping_movementloss;
114 float g_trueaim_minrange;
120 const int MAX_SPECTATORS = 7;
121 int spectatorlist[MAX_SPECTATORS];
125 float GetSpeedUnitFactor(int speed_unit);
126 string GetSpeedUnit(int speed_unit);