4 #include <common/constants.qh>
5 #include <common/weapons/all.qh>
7 // --------------------------------------------------------------------------
10 const float DATABUF_PING = 0;
11 #define DATABUF_CAPTURES (1*maxclients)
12 #define DATABUF_DEATHS (2*maxclients)
13 #define DATABUF_RETURNS (3*maxclients)
15 #define DATABUF_NEXT (5*maxclients)
17 void setpredraw(entity this, void(entity) pdfunc);
19 // --------------------------------------------------------------------------
22 // Map coordinate base calculations need these
28 // --------------------------------------------------------------------------
34 //float sorted_players;
44 vector OFFSET_CURSOR = '0 0 0';
45 vector SIZE_CURSOR = '32 32 0';
46 void draw_cursor(vector pos, vector ofs, string img, vector col, float a);
47 void draw_cursor_normal(vector pos, vector col, float a);
48 void LoadMenuSkinValues();
50 // --------------------------------------------------------------------------
53 const int MAX_HUD_FIELDS = 16;
55 const int SP_END = -1;
57 const int SP_PING = -2;
58 const int SP_NAME = -3;
59 const int SP_KDRATIO = -4;
60 const int SP_CLRATIO = -5;
62 const int SP_FRAGS = -7;
63 const int SP_SUM = -8;
65 const int SP_SEPARATOR = -100;
67 float hud_field[MAX_HUD_FIELDS + 1];
68 float hud_size[MAX_HUD_FIELDS + 1];
69 string hud_title[MAX_HUD_FIELDS + 1];
72 string scores_label[MAX_SCORE];
73 int scores_flags[MAX_SCORE];
74 string teamscores_label[MAX_SCORE];
75 int teamscores_flags[MAX_SCORE];
76 .int scores[MAX_SCORE];
77 .float teamscores[MAX_TEAMSCORE];
79 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
80 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
85 float RANKINGS_RECEIVED_CNT;
86 string grecordholder[RANKINGS_CNT];
87 float grecordtime[RANKINGS_CNT];
90 entity playerslots[255]; // 255 is engine limit on maxclients
91 entity teamslots[17]; // 17 teams (including "spectator team")
99 .void(entity) entremove;
101 vector view_origin, view_forward, view_right, view_up;
104 bool spectatorbutton_zoom;
108 Weapon switchingweapon;
110 float current_viewzoom;
116 string getcommandkey(string text, string command);
118 string vote_called_vote;
120 float ready_waiting_for_me;
122 float vote_waiting_for_me;
124 float current_zoomfraction;
126 float cs_project_is_b0rked;
127 float vid_width, vid_height, vid_pixelheight;
129 float camera_active; // Demo camera is active if set to true
130 float chase_active_backup;
132 vector camera_direction;
134 void centerprint_hud(string strMessage);
135 void centerprint_kill(float id);
136 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
138 const float ALPHA_MIN_VISIBLE = 0.003;
140 float armorblockpercent;
144 const int HOOK_START = 1;
145 const int HOOK_END = 2;
147 .float ping, ping_packetloss, ping_movementloss;
149 float g_trueaim_minrange;