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 // --------------------------------------------------------------------------
28 // --------------------------------------------------------------------------
31 // Map coordinate base calculations need these
37 // --------------------------------------------------------------------------
44 //float sorted_players;
52 const float COLOR_TEAM_RED = 64;
53 const float COLOR_TEAM_BLUE = 208;
55 const float COLOR_TEAM1 = 4; // red
56 const float COLOR_TEAM2 = 13; // blue
57 const float COLOR_TEAM3 = 12; // yellow
58 const float COLOR_TEAM4 = 9; // pink
59 const float COLOR_SPECTATOR = 1337;
61 #define FONT_DEFAULT 0
64 // --------------------------------------------------------------------------
67 #define MAX_HUD_FIELDS 16
78 #define SP_SEPARATOR -100
80 float hud_field[MAX_HUD_FIELDS + 1];
81 float hud_size[MAX_HUD_FIELDS + 1];
82 string hud_title[MAX_HUD_FIELDS + 1];
85 string scores_label[MAX_SCORE];
86 float scores_flags[MAX_SCORE];
87 string teamscores_label[MAX_SCORE];
88 float teamscores_flags[MAX_SCORE];
89 .float scores[MAX_SCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(scores);
90 .float teamscores[MAX_TEAMSCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(teamscores);
92 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
93 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
98 float RANKINGS_RECEIVED_CNT;
99 string grecordholder[RANKINGS_CNT];
100 float grecordtime[RANKINGS_CNT];
103 entity playerslots[255]; // 255 is engine limit on maxclients
104 entity teamslots[17]; // 17 teams (including "spectator team")
111 .void(void) entremove;
113 vector view_origin, view_angles, view_forward, view_right, view_up;
116 float spectatorbutton_zoom;
117 float button_attack2;
119 float current_viewzoom;
121 float ignore_plus_zoom;
122 float ignore_minus_zoom;
125 string getcommandkey(string text, string command);
127 string vote_called_vote;
129 float ready_waiting_for_me;
131 float vote_waiting_for_me;
133 float previous_game_starttime;
134 entity restartAnnouncer; //a temporary entity which will play the countdown sounds 3, 2, 1 for the client
135 void restartAnnouncer_Think();
137 float current_zoomfraction;
139 float cs_project_is_b0rked;
140 float vid_width, vid_height, vid_pixelheight;
142 float camera_active; // Demo camera is active if set to TRUE
143 float chase_active_backup;
145 vector camera_direction;
147 void centerprint(string strMessage);
149 #define ALPHA_MIN_VISIBLE 0.003
151 float armorblockpercent;
152 float g_weaponswitchdelay;
159 .float ping, ping_packetloss, ping_movementloss;
161 float g_balance_grenadelauncher_bouncefactor;
162 float g_balance_grenadelauncher_bouncestop;
163 float g_balance_electro_secondary_bouncefactor;
164 float g_balance_electro_secondary_bouncestop;
165 float g_trueaim_minrange;