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
158 float KEY_UNKNOWN = -1;
161 float KEY_MENU_GRABBED = 3;
163 ///////////////////////////
167 float FILE_APPEND = 1;
168 float FILE_WRITE = 2;
170 ///////////////////////////
171 // logical constants (just for completeness)
176 ///////////////////////////
182 ///////////////////////////
185 float MSG_BROADCAST = 0; // unreliable to all
186 float MSG_ONE = 1; // reliable to one (msg_entity)
187 float MSG_ALL = 2; // reliable to all
188 float MSG_INIT = 3; // write to the init string
190 /////////////////////////////
191 // mouse target constants
196 /////////////////////////
197 // client state constants
199 float CS_DEDICATED = 0;
200 float CS_DISCONNECTED = 1;
201 float CS_CONNECTED = 2;
203 ///////////////////////////
206 float DRAWFLAG_NORMAL = 0;
207 float DRAWFLAG_ADDITIVE = 1;
208 float DRAWFLAG_MODULATE = 2;
209 float DRAWFLAG_2XMODULATE = 3;
212 ///////////////////////////
216 float CVAR_NOTIFY = 2;
217 float CVAR_READONLY = 4;
219 ///////////////////////////
220 // server list constants
222 float SLIST_HOSTCACHEVIEWCOUNT = 0;
223 float SLIST_HOSTCACHETOTALCOUNT = 1;
224 float SLIST_MASTERQUERYCOUNT = 2;
225 float SLIST_MASTERREPLYCOUNT = 3;
226 float SLIST_SERVERQUERYCOUNT = 4;
227 float SLIST_SERVERREPLYCOUNT = 5;
228 float SLIST_SORTFIELD = 6;
229 float SLIST_SORTDESCENDING = 7;
231 float SLIST_LEGACY_LINE1 = 1024;
232 float SLIST_LEGACY_LINE2 = 1025;
234 float SLIST_TEST_CONTAINS = 0;
235 float SLIST_TEST_NOTCONTAIN = 1;
236 float SLIST_TEST_LESSEQUAL = 2;
237 float SLIST_TEST_LESS = 3;
238 float SLIST_TEST_EQUAL = 4;
239 float SLIST_TEST_GREATER = 5;
240 float SLIST_TEST_GREATEREQUAL = 6;
241 float SLIST_TEST_NOTEQUAL = 7;
243 float SLIST_MASK_AND = 0;
244 float SLIST_MASK_OR = 512;
246 float NET_CURRENTPROTOCOL = 3;
248 ////////////////////////////////
249 // cinematic action constants
253 float CINE_PAUSE = 3;
254 float CINE_FIRSTFRAME = 4;
255 float CINE_RESETONWAKEUP= 5;
257 ///////////////////////////
258 // null entity (actually it is the same like the world entity)
262 ///////////////////////////
266 float ERR_CANNOTOPEN = -1; // fopen
267 float ERR_NOTENOUGHFILEHANDLES = -2; // fopen
268 float ERR_INVALIDMODE = -3; // fopen
269 float ERR_BADFILENAME = -4; // fopen
273 float ERR_NULLSTRING = -1;
274 float ERR_BADDRAWFLAG = -2;
275 float ERR_BADSCALE = -3;
276 //float ERR_BADSIZE = ERR_BADSCALE;
277 float ERR_NOTCACHED = -4;
279 float GECKO_BUTTON_DOWN = 0;
280 float GECKO_BUTTON_UP = 1;
281 // either use down and up or just press but not all of them!
282 float GECKO_BUTTON_PRESS = 2;
283 // use this for mouse events if needed?
284 float GECKO_BUTTON_DOUBLECLICK = 3;
286 /* not supported at the moment
287 ///////////////////////////
290 float OS_WINDOWS = 0;