4 #include "../common/constants.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() menu_show_error;
21 var float(float bInputType, float nPrimary, float nSecondary) menu_action;
23 // --------------------------------------------------------------------------
26 // Map coordinate base calculations need these
32 // --------------------------------------------------------------------------
38 //float sorted_players;
47 // --------------------------------------------------------------------------
50 const int MAX_HUD_FIELDS = 16;
52 const int SP_END = -1;
54 const int SP_PING = -2;
55 const int SP_NAME = -3;
56 const int SP_KDRATIO = -4;
57 const int SP_CLRATIO = -5;
59 const int SP_FRAGS = -7;
60 const int SP_SUM = -8;
62 const int SP_SEPARATOR = -100;
64 float hud_field[MAX_HUD_FIELDS + 1];
65 float hud_size[MAX_HUD_FIELDS + 1];
66 string hud_title[MAX_HUD_FIELDS + 1];
69 string scores_label[MAX_SCORE];
70 int scores_flags[MAX_SCORE];
71 string teamscores_label[MAX_SCORE];
72 int teamscores_flags[MAX_SCORE];
73 .int scores[MAX_SCORE];
74 .float teamscores[MAX_TEAMSCORE];
76 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
77 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
82 float RANKINGS_RECEIVED_CNT;
83 string grecordholder[RANKINGS_CNT];
84 float grecordtime[RANKINGS_CNT];
87 entity playerslots[255]; // 255 is engine limit on maxclients
88 entity teamslots[17]; // 17 teams (including "spectator team")
98 vector view_origin, view_forward, view_right, view_up;
101 float spectatorbutton_zoom;
102 float button_attack2;
107 float current_viewzoom;
113 string getcommandkey(string text, string command);
115 string vote_called_vote;
117 float ready_waiting_for_me;
119 float vote_waiting_for_me;
121 float current_zoomfraction;
123 float cs_project_is_b0rked;
124 float vid_width, vid_height, vid_pixelheight;
126 float camera_active; // Demo camera is active if set to true
127 float chase_active_backup;
129 vector camera_direction;
131 void centerprint_hud(string strMessage);
132 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
134 const float ALPHA_MIN_VISIBLE = 0.003;
136 float armorblockpercent;
140 const int HOOK_START = 1;
141 const int HOOK_END = 2;
143 .float ping, ping_packetloss, ping_movementloss;
145 float g_balance_mortar_bouncefactor;
146 float g_balance_mortar_bouncestop;
147 float g_balance_electro_secondary_bouncefactor;
148 float g_balance_electro_secondary_bouncestop;
149 float g_trueaim_minrange;
151 entity entcs_receiver[255]; // 255 is the engine limit on maxclients