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_HUD_FIELDS = 16;
45 const int SP_END = -1;
47 const int SP_PING = -2;
48 const int SP_NAME = -3;
49 const int SP_KDRATIO = -4;
50 const int SP_CLRATIO = -5;
52 const int SP_FRAGS = -7;
53 const int SP_SUM = -8;
55 const int SP_SEPARATOR = -100;
57 float hud_field[MAX_HUD_FIELDS + 1];
58 float hud_size[MAX_HUD_FIELDS + 1];
59 string hud_title[MAX_HUD_FIELDS + 1];
62 string scores_label[MAX_SCORE];
63 int scores_flags[MAX_SCORE];
64 string teamscores_label[MAX_SCORE];
65 int teamscores_flags[MAX_SCORE];
66 .int scores[MAX_SCORE];
67 .float teamscores[MAX_TEAMSCORE];
69 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
70 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
75 float RANKINGS_RECEIVED_CNT;
76 string grecordholder[RANKINGS_CNT];
77 float grecordtime[RANKINGS_CNT];
80 entity playerslots[255]; // 255 is engine limit on maxclients
81 entity teamslots[17]; // 17 teams (including "spectator team")
89 .void(entity) entremove;
91 vector view_origin, view_forward, view_right, view_up;
94 bool spectatorbutton_zoom;
98 Weapon switchingweapon;
100 float current_viewzoom;
106 string _getcommandkey(string text, string command, bool forcename);
107 #define getcommandkey(cmd_name, command) _getcommandkey(cmd_name, command, false)
108 #define getcommandkey_forcename(cmd_name, command) _getcommandkey(cmd_name, command, true)
110 string vote_called_vote;
112 float ready_waiting_for_me;
114 float vote_waiting_for_me;
116 float current_zoomfraction;
118 float cs_project_is_b0rked;
119 float vid_width, vid_height, vid_pixelheight;
121 float camera_active; // Demo camera is active if set to true
122 float chase_active_backup;
124 vector camera_direction;
126 void centerprint_hud(string strMessage);
127 void centerprint_kill(float id);
128 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
130 const float ALPHA_MIN_VISIBLE = 0.003;
132 float armorblockpercent;
136 const int HOOK_START = 1;
137 const int HOOK_END = 2;
139 .float ping, ping_packetloss, ping_movementloss;
141 float g_trueaim_minrange;
148 float GetSpeedUnitFactor(int speed_unit);
149 string GetSpeedUnit(int speed_unit);