1 const string string_null;
\r
3 // --------------------------------------------------------------------------
\r
4 // MENU Functionality
\r
6 #define DATABUF_PING 0
\r
7 #define DATABUF_CAPTURES (1*maxclients)
\r
8 #define DATABUF_DEATHS (2*maxclients)
\r
9 #define DATABUF_RETURNS (3*maxclients)
\r
11 #define DATABUF_NEXT (5*maxclients)
\r
13 void() menu_show_error;
\r
14 void() menu_sub_null;
\r
17 var void() menu_show;
\r
18 var float(float bInputType, float nPrimary, float nSecondary) menu_action;
\r
20 // --------------------------------------------------------------------------
\r
23 void() ctf_menu_show;
\r
26 // --------------------------------------------------------------------------
\r
29 // Map coordinate base calculations need these
\r
36 // --------------------------------------------------------------------------
\r
43 //float sorted_players;
\r
44 //float sorted_teams;
\r
51 const float COLOR_TEAM_RED = 64;
\r
52 const float COLOR_TEAM_BLUE = 208;
\r
54 const float COLOR_TEAM1 = 4; // red
\r
55 const float COLOR_TEAM2 = 13; // blue
\r
56 const float COLOR_TEAM3 = 12; // yellow
\r
57 const float COLOR_TEAM4 = 9; // pink
\r
58 const float COLOR_SPECTATOR = 1337;
\r
60 #define FONT_DEFAULT 0
\r
63 // --------------------------------------------------------------------------
\r
66 #define MAX_SBAR_FIELDS 16
\r
72 #define SP_KDRATIO -4
\r
73 #define SP_CLRATIO -5
\r
77 #define SP_SEPARATOR -100
\r
79 #define ST_HIGHLIGHT -1
\r
81 #define ST_HEALTH -3
\r
83 float sbar_field[MAX_SBAR_FIELDS + 1];
\r
84 float sbar_size[MAX_SBAR_FIELDS + 1];
\r
85 string sbar_title[MAX_SBAR_FIELDS + 1];
\r
86 float sbar_num_fields;
\r
91 string scores_label[MAX_SCORE];
\r
92 float scores_flags[MAX_SCORE];
\r
93 string teamscores_label[MAX_SCORE];
\r
94 float teamscores_flags[MAX_SCORE];
\r
95 .float scores[MAX_SCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(scores);
\r
96 .float teamscores[MAX_TEAMSCORE]; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(teamscores);
\r
98 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
\r
99 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
\r
102 vector sbar_fontsize;
\r
103 vector sbar_oldfontsize;
\r
104 vector sbar_fontsize_spec;
\r
106 float RANKINGS_RECEIVED_CNT;
\r
107 string grecordholder[RANKINGS_CNT];
\r
108 float grecordtime[RANKINGS_CNT];
\r
109 //float csqc_flags;
\r
111 entity playerslots[255]; // 255 is engine limit on maxclients
\r
112 entity teamslots[17]; // 17 teams (including "spectator team")
\r
118 .void(void) draw2d;
\r
119 .void(void) entremove;
\r
120 float drawframetime;
\r
121 vector view_origin, view_angles, view_forward, view_right, view_up;
\r
124 float spectatorbutton_zoom;
\r
125 float button_attack2;
\r
126 float activeweapon;
\r
127 float current_viewzoom;
\r
128 float zoomin_effect;
\r
129 float ignore_plus_zoom;
\r
130 float ignore_minus_zoom;
\r
131 float warmup_stage;
\r
133 string getcommandkey(string text, string command);
\r
134 float sbar_showbinds;
\r
135 float sbar_showbinds_limit;
\r
137 string vote_called_vote;
\r
138 float ready_waiting;
\r
139 float ready_waiting_for_me;
\r
140 float vote_waiting;
\r
141 float vote_waiting_for_me;
\r
143 float previous_game_starttime;
\r
144 entity restartAnnouncer; //a temporary entity which will play the countdown sounds 3, 2, 1 for the client
\r
145 void restartAnnouncer_Think();
\r
147 float current_zoomfraction;
\r
149 float cs_project_is_b0rked;
\r
150 float vid_width, vid_height, vid_pixelheight;
\r
152 float camera_active; // Demo camera is active if set to TRUE
\r
153 float chase_active_backup;
\r
155 vector camera_direction;
\r
157 void centerprint(string strMessage);
\r
159 #define ALPHA_MIN_VISIBLE 0.003
\r
161 float armorblockpercent;
\r
162 float g_weaponswitchdelay;
\r
164 float g_balance_vore_swallow_limit, g_vore_showpreyhealth;
\r
167 float calledgrabbers;
\r
168 #define GRABBER_START 1
\r
169 #define GRABBER_END 2
\r
171 .float ping, ping_packetloss, ping_movementloss;
\r
172 .float plhealth, pleater;
\r