1 #pragma flag off fastarrays // make dp behave with new fteqcc versions. remove when dp bug with fteqcc fastarrays is fixed
2 #define MENUQC // so common/*.qc can check for menu QC or game QC
4 //////////////////////////////////////////////////////////
9 /////////////////////////////////////////////////////////
11 /////////////////////////////////////////////////////////
14 /////////////////////////////////////////////////////////
16 /////////////////////////////////////////////////////////
20 void(float keynr, float ascii) m_keydown;
22 void() m_display; // old NG Menu
24 void() m_hide; // old NG Menu
27 /////////////////////////////////////////////////////////
29 ///////////////////////////
33 // these are the key numbers that should be passed to Key_Event
40 // normal keys should be passed as lowercased ascii
42 float K_BACKSPACE = 127;
43 float K_UPARROW = 128;
44 float K_DOWNARROW = 129;
45 float K_LEFTARROW = 130;
46 float K_RIGHTARROW = 131;
70 float K_KP_HOME = 160;
71 float K_KP_UPARROW = 161;
72 float K_KP_PGUP = 162;
73 float K_KP_LEFTARROW = 163;
75 float K_KP_RIGHTARROW = 165;
77 float K_KP_DOWNARROW = 167;
78 float K_KP_PGDN = 168;
79 float K_KP_ENTER = 169;
82 float K_KP_SLASH = 172;
83 float K_KP_MINUS = 173;
84 float K_KP_PLUS = 174;
97 // aux keys are for multi-buttoned joysticks to generate so they can use
98 // the normal binding process
134 // mouse buttons generate virtual keys
136 float K_MOUSE1 = 512;
137 float K_MOUSE2 = 513;
138 float K_MOUSE3 = 514;
139 float K_MWHEELUP = 515;
140 float K_MWHEELDOWN = 516;
141 float K_MOUSE4 = 517;
142 float K_MOUSE5 = 518;
143 float K_MOUSE6 = 519;
144 float K_MOUSE7 = 520;
145 float K_MOUSE8 = 521;
146 float K_MOUSE9 = 522;
147 float K_MOUSE10 = 523;
148 float K_MOUSE11 = 524;
149 float K_MOUSE12 = 525;
150 float K_MOUSE13 = 526;
151 float K_MOUSE14 = 527;
152 float K_MOUSE15 = 528;
153 float K_MOUSE16 = 529;
155 ///////////////////////////
156 // key dest constants
160 float KEY_UNKNOWN = 3;
162 ///////////////////////////
166 float FILE_APPEND = 1;
167 float FILE_WRITE = 2;
169 ///////////////////////////
170 // logical constants (just for completeness)
175 ///////////////////////////
181 ///////////////////////////
184 float MSG_BROADCAST = 0; // unreliable to all
185 float MSG_ONE = 1; // reliable to one (msg_entity)
186 float MSG_ALL = 2; // reliable to all
187 float MSG_INIT = 3; // write to the init string
189 /////////////////////////////
190 // mouse target constants
195 /////////////////////////
196 // client state constants
198 float CS_DEDICATED = 0;
199 float CS_DISCONNECTED = 1;
200 float CS_CONNECTED = 2;
202 ///////////////////////////
205 float DRAWFLAG_NORMAL = 0;
206 float DRAWFLAG_ADDITIVE = 1;
207 float DRAWFLAG_MODULATE = 2;
208 float DRAWFLAG_2XMODULATE = 3;
211 ///////////////////////////
215 float CVAR_NOTIFY = 2;
216 float CVAR_READONLY = 4;
218 ///////////////////////////
219 // server list constants
221 float SLIST_HOSTCACHEVIEWCOUNT = 0;
222 float SLIST_HOSTCACHETOTALCOUNT = 1;
223 float SLIST_MASTERQUERYCOUNT = 2;
224 float SLIST_MASTERREPLYCOUNT = 3;
225 float SLIST_SERVERQUERYCOUNT = 4;
226 float SLIST_SERVERREPLYCOUNT = 5;
227 float SLIST_SORTFIELD = 6;
228 float SLIST_SORTDESCENDING = 7;
230 float SLIST_LEGACY_LINE1 = 1024;
231 float SLIST_LEGACY_LINE2 = 1025;
233 float SLIST_TEST_CONTAINS = 0;
234 float SLIST_TEST_NOTCONTAIN = 1;
235 float SLIST_TEST_LESSEQUAL = 2;
236 float SLIST_TEST_LESS = 3;
237 float SLIST_TEST_EQUAL = 4;
238 float SLIST_TEST_GREATER = 5;
239 float SLIST_TEST_GREATEREQUAL = 6;
240 float SLIST_TEST_NOTEQUAL = 7;
242 float SLIST_MASK_AND = 0;
243 float SLIST_MASK_OR = 512;
245 float NET_CURRENTPROTOCOL = 3;
247 ////////////////////////////////
248 // cinematic action constants
252 float CINE_PAUSE = 3;
253 float CINE_FIRSTFRAME = 4;
254 float CINE_RESETONWAKEUP= 5;
256 ///////////////////////////
257 // null entity (actually it is the same like the world entity)
261 ///////////////////////////
265 float ERR_CANNOTOPEN = -1; // fopen
266 float ERR_NOTENOUGHFILEHANDLES = -2; // fopen
267 float ERR_INVALIDMODE = -3; // fopen
268 float ERR_BADFILENAME = -4; // fopen
272 float ERR_NULLSTRING = -1;
273 float ERR_BADDRAWFLAG = -2;
274 float ERR_BADSCALE = -3;
275 //float ERR_BADSIZE = ERR_BADSCALE;
276 float ERR_NOTCACHED = -4;
278 /* not supported at the moment
279 ///////////////////////////
282 float OS_WINDOWS = 0;