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 // --------------------------------------------------------------------------
26 // --------------------------------------------------------------------------
29 // Map coordinate base calculations need these
35 // --------------------------------------------------------------------------
42 //float sorted_players;
50 const float COLOR_TEAM_RED = 64;
51 const float COLOR_TEAM_BLUE = 208;
53 const float COLOR_TEAM1 = 4; // red
54 const float COLOR_TEAM2 = 13; // blue
55 const float COLOR_TEAM3 = 12; // yellow
56 const float COLOR_TEAM4 = 9; // pink
57 const float COLOR_SPECTATOR = 1337;
59 #define FONT_DEFAULT 0
62 // --------------------------------------------------------------------------
65 #define MAX_HUD_FIELDS 16
76 #define SP_SEPARATOR -100
78 float hud_field[MAX_HUD_FIELDS + 1];
79 float hud_size[MAX_HUD_FIELDS + 1];
80 string hud_title[MAX_HUD_FIELDS + 1];
86 string scores_label[MAX_SCORE];
87 float scores_flags[MAX_SCORE];
88 string teamscores_label[MAX_SCORE];
89 float teamscores_flags[MAX_SCORE];
90 .float scores[MAX_SCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(scores);
91 .float teamscores[MAX_TEAMSCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(teamscores);
93 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
94 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
99 float RANKINGS_RECEIVED_CNT;
100 string grecordholder[RANKINGS_CNT];
101 float grecordtime[RANKINGS_CNT];
104 entity playerslots[255]; // 255 is engine limit on maxclients
105 entity teamslots[17]; // 17 teams (including "spectator team")
112 .void(void) entremove;
114 vector view_origin, view_angles, view_forward, view_right, view_up;
117 float spectatorbutton_zoom;
118 float button_attack2;
120 float current_viewzoom;
122 float ignore_plus_zoom;
123 float ignore_minus_zoom;
126 string getcommandkey(string text, string command);
128 float hud_showbinds_limit;
130 string vote_called_vote;
132 float ready_waiting_for_me;
134 float vote_waiting_for_me;
136 float previous_game_starttime;
137 entity restartAnnouncer; //a temporary entity which will play the countdown sounds 3, 2, 1 for the client
138 void restartAnnouncer_Think();
140 float current_zoomfraction;
142 float cs_project_is_b0rked;
143 float vid_width, vid_height, vid_pixelheight;
145 float camera_active; // Demo camera is active if set to TRUE
146 float chase_active_backup;
148 vector camera_direction;
150 void centerprint(string strMessage);
152 #define ALPHA_MIN_VISIBLE 0.003
154 float armorblockpercent;
155 float g_weaponswitchdelay;
162 .float ping, ping_packetloss, ping_movementloss;
164 float g_balance_grenadelauncher_secondary_bouncefactor;
165 float g_balance_grenadelauncher_secondary_bouncestop;