3 #include <common/constants.qh>
4 #include <common/weapons/all.qh>
6 // --------------------------------------------------------------------------
9 const float DATABUF_PING = 0;
10 #define DATABUF_CAPTURES (1*maxclients)
11 #define DATABUF_DEATHS (2*maxclients)
12 #define DATABUF_RETURNS (3*maxclients)
14 #define DATABUF_NEXT (5*maxclients)
16 void setpredraw(entity this, void(entity) pdfunc);
18 // --------------------------------------------------------------------------
21 // Map coordinate base calculations need these
27 // --------------------------------------------------------------------------
33 //float sorted_players;
43 vector OFFSET_CURSOR = '0 0 0';
44 vector SIZE_CURSOR = '32 32 0';
45 void draw_cursor(vector pos, vector ofs, string img, vector col, float a);
46 void draw_cursor_normal(vector pos, vector col, float a);
47 void LoadMenuSkinValues();
49 // --------------------------------------------------------------------------
52 const int MAX_HUD_FIELDS = 16;
54 const int SP_END = -1;
56 const int SP_PING = -2;
57 const int SP_NAME = -3;
58 const int SP_KDRATIO = -4;
59 const int SP_CLRATIO = -5;
61 const int SP_FRAGS = -7;
62 const int SP_SUM = -8;
64 const int SP_SEPARATOR = -100;
66 float hud_field[MAX_HUD_FIELDS + 1];
67 float hud_size[MAX_HUD_FIELDS + 1];
68 string hud_title[MAX_HUD_FIELDS + 1];
71 string scores_label[MAX_SCORE];
72 int scores_flags[MAX_SCORE];
73 string teamscores_label[MAX_SCORE];
74 int teamscores_flags[MAX_SCORE];
75 .int scores[MAX_SCORE];
76 .float teamscores[MAX_TEAMSCORE];
78 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
79 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
84 float RANKINGS_RECEIVED_CNT;
85 string grecordholder[RANKINGS_CNT];
86 float grecordtime[RANKINGS_CNT];
89 entity playerslots[255]; // 255 is engine limit on maxclients
90 entity teamslots[17]; // 17 teams (including "spectator team")
98 .void(entity) entremove;
100 vector view_origin, view_forward, view_right, view_up;
103 bool spectatorbutton_zoom;
107 Weapon switchingweapon;
109 float current_viewzoom;
115 string getcommandkey(string text, string command);
117 string vote_called_vote;
119 float ready_waiting_for_me;
121 float vote_waiting_for_me;
123 float current_zoomfraction;
125 float cs_project_is_b0rked;
126 float vid_width, vid_height, vid_pixelheight;
128 float camera_active; // Demo camera is active if set to true
129 float chase_active_backup;
131 vector camera_direction;
133 void centerprint_hud(string strMessage);
134 void centerprint_kill(float id);
135 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
137 const float ALPHA_MIN_VISIBLE = 0.003;
139 float armorblockpercent;
143 const int HOOK_START = 1;
144 const int HOOK_END = 2;
146 .float ping, ping_packetloss, ping_movementloss;
148 float g_trueaim_minrange;