4 // --------------------------------------------------------------------------
7 const float DATABUF_PING = 0;
8 #define DATABUF_CAPTURES (1*maxclients)
9 #define DATABUF_DEATHS (2*maxclients)
10 #define DATABUF_RETURNS (3*maxclients)
12 #define DATABUF_NEXT (5*maxclients)
14 void() menu_show_error;
19 var float(float bInputType, float nPrimary, float nSecondary) menu_action;
21 // --------------------------------------------------------------------------
24 // Map coordinate base calculations need these
30 // --------------------------------------------------------------------------
36 //float sorted_players;
45 // --------------------------------------------------------------------------
48 const int MAX_HUD_FIELDS = 16;
50 const int SP_END = -1;
52 const int SP_PING = -2;
53 const int SP_NAME = -3;
54 const int SP_KDRATIO = -4;
55 const int SP_CLRATIO = -5;
57 const int SP_FRAGS = -7;
58 const int SP_SUM = -8;
60 const int SP_SEPARATOR = -100;
62 float hud_field[MAX_HUD_FIELDS + 1];
63 float hud_size[MAX_HUD_FIELDS + 1];
64 string hud_title[MAX_HUD_FIELDS + 1];
67 string scores_label[MAX_SCORE];
68 int scores_flags[MAX_SCORE];
69 string teamscores_label[MAX_SCORE];
70 int teamscores_flags[MAX_SCORE];
71 .int scores[MAX_SCORE];
72 .float teamscores[MAX_TEAMSCORE];
74 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
75 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
80 float RANKINGS_RECEIVED_CNT;
81 string grecordholder[RANKINGS_CNT];
82 float grecordtime[RANKINGS_CNT];
85 entity playerslots[255]; // 255 is engine limit on maxclients
86 entity teamslots[17]; // 17 teams (including "spectator team")
94 .void(void) entremove;
96 vector view_origin, view_forward, view_right, view_up;
99 float spectatorbutton_zoom;
100 float button_attack2;
105 float current_viewzoom;
109 string getcommandkey(string text, string command);
111 string vote_called_vote;
113 float ready_waiting_for_me;
115 float vote_waiting_for_me;
117 float current_zoomfraction;
119 float cs_project_is_b0rked;
120 float vid_width, vid_height, vid_pixelheight;
122 float camera_active; // Demo camera is active if set to true
123 float chase_active_backup;
125 vector camera_direction;
127 void centerprint_hud(string strMessage);
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_balance_mortar_bouncefactor;
142 float g_balance_mortar_bouncestop;
143 float g_balance_electro_secondary_bouncefactor;
144 float g_balance_electro_secondary_bouncestop;
145 float g_trueaim_minrange;
147 entity entcs_receiver[255]; // 255 is the engine limit on maxclients