1 const string string_null;
3 // --------------------------------------------------------------------------
7 #define DATABUF_CAPTURES (1*maxclients)
8 #define DATABUF_DEATHS (2*maxclients)
9 #define DATABUF_RETURNS (3*maxclients)
11 #define DATABUF_NEXT (5*maxclients)
13 void() menu_show_error;
18 var float(float bInputType, float nPrimary, float nSecondary) menu_action;
20 // --------------------------------------------------------------------------
23 // Map coordinate base calculations need these
29 // --------------------------------------------------------------------------
36 //float sorted_players;
44 const float COLOR_TEAM_RED = 64;
45 const float COLOR_TEAM_BLUE = 208;
47 const float COLOR_TEAM1 = 4; // red
48 const float COLOR_TEAM2 = 13; // blue
49 const float COLOR_TEAM3 = 12; // yellow
50 const float COLOR_TEAM4 = 9; // pink
51 const float COLOR_SPECTATOR = 1337;
53 #define FONT_DEFAULT 0
56 // --------------------------------------------------------------------------
59 #define MAX_HUD_FIELDS 16
70 #define SP_SEPARATOR -100
72 float hud_field[MAX_HUD_FIELDS + 1];
73 float hud_size[MAX_HUD_FIELDS + 1];
74 string hud_title[MAX_HUD_FIELDS + 1];
77 string scores_label[MAX_SCORE];
78 float scores_flags[MAX_SCORE];
79 string teamscores_label[MAX_SCORE];
80 float teamscores_flags[MAX_SCORE];
81 .float scores[MAX_SCORE];
82 .float teamscores[MAX_TEAMSCORE];
84 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
85 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
90 float RANKINGS_RECEIVED_CNT;
91 string grecordholder[RANKINGS_CNT];
92 float grecordtime[RANKINGS_CNT];
95 entity playerslots[255]; // 255 is engine limit on maxclients
96 entity teamslots[17]; // 17 teams (including "spectator team")
103 .void(void) entremove;
105 vector view_origin, view_angles, view_forward, view_right, view_up;
108 float spectatorbutton_zoom;
109 float button_attack2;
112 float switchingweapon;
114 float current_viewzoom;
118 string getcommandkey(string text, string command);
120 string vote_called_vote;
122 float ready_waiting_for_me;
124 float vote_waiting_for_me;
126 float current_zoomfraction;
128 float cs_project_is_b0rked;
129 float vid_width, vid_height, vid_pixelheight;
131 float camera_active; // Demo camera is active if set to TRUE
132 float chase_active_backup;
134 vector camera_direction;
136 void centerprint_hud(string strMessage);
137 void centerprint_generic(float new_id, string strMessage, float duration, float countdown_num);
139 #define ALPHA_MIN_VISIBLE 0.003
141 float armorblockpercent;
142 float g_weaponswitchdelay;
149 .float ping, ping_packetloss, ping_movementloss;
151 float g_balance_grenadelauncher_bouncefactor;
152 float g_balance_grenadelauncher_bouncestop;
153 float g_balance_electro_secondary_bouncefactor;
154 float g_balance_electro_secondary_bouncestop;
155 float g_trueaim_minrange;
157 entity entcs_receiver[255]; // 255 is the engine limit on maxclients