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
36 // --------------------------------------------------------------------------
43 //float sorted_players;
51 const float COLOR_TEAM_RED = 64;
52 const float COLOR_TEAM_BLUE = 208;
54 const float COLOR_TEAM1 = 4; // red
55 const float COLOR_TEAM2 = 13; // blue
56 const float COLOR_TEAM3 = 12; // yellow
57 const float COLOR_TEAM4 = 9; // pink
58 const float COLOR_SPECTATOR = 1337;
60 #define FONT_DEFAULT 0
63 // --------------------------------------------------------------------------
66 #define MAX_SBAR_FIELDS 16
77 #define SP_SEPARATOR -100
79 float sbar_field[MAX_SBAR_FIELDS + 1];
80 float sbar_size[MAX_SBAR_FIELDS + 1];
81 string sbar_title[MAX_SBAR_FIELDS + 1];
82 float sbar_num_fields;
87 string scores_label[MAX_SCORE];
88 float scores_flags[MAX_SCORE];
89 string teamscores_label[MAX_SCORE];
90 float teamscores_flags[MAX_SCORE];
91 .float scores[MAX_SCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(scores);
92 .float teamscores[MAX_TEAMSCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(teamscores);
94 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
95 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
102 entity playerslots[255]; // 255 is engine limit on maxclients
103 entity teamslots[17]; // 17 teams (including "spectator team")
110 .void(void) entremove;
112 vector view_origin, view_angles, view_forward, view_right, view_up;
115 float spectatorbutton_zoom;
116 float button_attack2;
118 float current_viewzoom;
120 float ignore_plus_zoom;
121 float ignore_minus_zoom;
124 float weaponimpulse[24];
125 string getcommandkey(string text, string command);
126 float sbar_showbinds;
127 float sbar_showbinds_limit;
129 string vote_called_vote;
131 float ready_waiting_for_me;
133 float vote_waiting_for_me;
135 float previous_game_starttime;
136 entity restartAnnouncer; //a temporary entity which will play the countdown sounds 3, 2, 1 for the client
137 void restartAnnouncer_Think();
139 float current_zoomfraction;
141 float cs_project_is_b0rked;
142 float vid_width, vid_height, vid_pixelheight;
144 float camera_active; // Demo camera is active if set to TRUE
145 float chase_active_backup;
147 vector camera_direction;
149 void centerprint(string strMessage);
151 #define ALPHA_MIN_VISIBLE 0.003
153 float armorblockpercent;