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_MOUSE4 = 515;
140 float K_MOUSE5 = 516;
141 float K_MOUSE6 = 517;
142 float K_MOUSE7 = 518;
143 float K_MOUSE8 = 519;
144 float K_MOUSE9 = 520;
145 float K_MOUSE10 = 521;
147 float K_MWHEELDOWN = K_MOUSE4;
148 float K_MWHEELUP = K_MOUSE5;
150 ///////////////////////////
151 // key dest constants
155 float KEY_UNKNOWN = 3;
157 ///////////////////////////
161 float FILE_APPEND = 1;
162 float FILE_WRITE = 2;
164 ///////////////////////////
165 // logical constants (just for completeness)
170 ///////////////////////////
176 ///////////////////////////
179 float MSG_BROADCAST = 0; // unreliable to all
180 float MSG_ONE = 1; // reliable to one (msg_entity)
181 float MSG_ALL = 2; // reliable to all
182 float MSG_INIT = 3; // write to the init string
184 /////////////////////////////
185 // mouse target constants
190 /////////////////////////
191 // client state constants
193 float CS_DEDICATED = 0;
194 float CS_DISCONNECTED = 1;
195 float CS_CONNECTED = 2;
197 ///////////////////////////
200 float DRAWFLAG_NORMAL = 0;
201 float DRAWFLAG_ADDITIVE = 1;
202 float DRAWFLAG_MODULATE = 2;
203 float DRAWFLAG_2XMODULATE = 3;
206 ///////////////////////////
210 float CVAR_NOTIFY = 2;
211 float CVAR_READONLY = 4;
213 ///////////////////////////
214 // server list constants
216 float SLIST_HOSTCACHEVIEWCOUNT = 0;
217 float SLIST_HOSTCACHETOTALCOUNT = 1;
218 float SLIST_MASTERQUERYCOUNT = 2;
219 float SLIST_MASTERREPLYCOUNT = 3;
220 float SLIST_SERVERQUERYCOUNT = 4;
221 float SLIST_SERVERREPLYCOUNT = 5;
222 float SLIST_SORTFIELD = 6;
223 float SLIST_SORTDESCENDING = 7;
225 float SLIST_LEGACY_LINE1 = 1024;
226 float SLIST_LEGACY_LINE2 = 1025;
228 float SLIST_TEST_CONTAINS = 0;
229 float SLIST_TEST_NOTCONTAIN = 1;
230 float SLIST_TEST_LESSEQUAL = 2;
231 float SLIST_TEST_LESS = 3;
232 float SLIST_TEST_EQUAL = 4;
233 float SLIST_TEST_GREATER = 5;
234 float SLIST_TEST_GREATEREQUAL = 6;
235 float SLIST_TEST_NOTEQUAL = 7;
237 float SLIST_MASK_AND = 0;
238 float SLIST_MASK_OR = 512;
240 float NET_CURRENTPROTOCOL = 3;
242 ////////////////////////////////
243 // cinematic action constants
247 float CINE_PAUSE = 3;
248 float CINE_FIRSTFRAME = 4;
249 float CINE_RESETONWAKEUP= 5;
251 ///////////////////////////
252 // null entity (actually it is the same like the world entity)
256 ///////////////////////////
260 float ERR_CANNOTOPEN = -1; // fopen
261 float ERR_NOTENOUGHFILEHANDLES = -2; // fopen
262 float ERR_INVALIDMODE = -3; // fopen
263 float ERR_BADFILENAME = -4; // fopen
267 float ERR_NULLSTRING = -1;
268 float ERR_BADDRAWFLAG = -2;
269 float ERR_BADSCALE = -3;
270 //float ERR_BADSIZE = ERR_BADSCALE;
271 float ERR_NOTCACHED = -4;
273 /* not supported at the moment
274 ///////////////////////////
277 float OS_WINDOWS = 0;