1 #pragma flag off fastarrays // make dp behave with new fteqcc versions. remove when dp bug with fteqcc fastarrays is fixed
3 //////////////////////////////////////////////////////////
8 /////////////////////////////////////////////////////////
10 /////////////////////////////////////////////////////////
13 /////////////////////////////////////////////////////////
15 /////////////////////////////////////////////////////////
19 void(float keynr, float ascii) m_keydown;
21 void() m_display; // old NG Menu
23 void() m_hide; // old NG Menu
26 /////////////////////////////////////////////////////////
28 ///////////////////////////
32 // these are the key numbers that should be passed to Key_Event
39 // normal keys should be passed as lowercased ascii
41 float K_BACKSPACE = 127;
42 float K_UPARROW = 128;
43 float K_DOWNARROW = 129;
44 float K_LEFTARROW = 130;
45 float K_RIGHTARROW = 131;
69 float K_KP_HOME = 160;
70 float K_KP_UPARROW = 161;
71 float K_KP_PGUP = 162;
72 float K_KP_LEFTARROW = 163;
74 float K_KP_RIGHTARROW = 165;
76 float K_KP_DOWNARROW = 167;
77 float K_KP_PGDN = 168;
78 float K_KP_ENTER = 169;
81 float K_KP_SLASH = 172;
82 float K_KP_MINUS = 173;
83 float K_KP_PLUS = 174;
96 // aux keys are for multi-buttoned joysticks to generate so they can use
97 // the normal binding process
133 // mouse buttons generate virtual keys
135 float K_MOUSE1 = 512;
136 float K_MOUSE2 = 513;
137 float K_MOUSE3 = 514;
138 float K_MOUSE4 = 515;
139 float K_MOUSE5 = 516;
140 float K_MOUSE6 = 517;
141 float K_MOUSE7 = 518;
142 float K_MOUSE8 = 519;
143 float K_MOUSE9 = 520;
144 float K_MOUSE10 = 521;
146 float K_MWHEELDOWN = K_MOUSE4;
147 float K_MWHEELUP = K_MOUSE5;
149 ///////////////////////////
150 // key dest constants
154 float KEY_UNKNOWN = 3;
156 ///////////////////////////
160 float FILE_APPEND = 1;
161 float FILE_WRITE = 2;
163 ///////////////////////////
164 // logical constants (just for completeness)
169 ///////////////////////////
175 ///////////////////////////
178 float MSG_BROADCAST = 0; // unreliable to all
179 float MSG_ONE = 1; // reliable to one (msg_entity)
180 float MSG_ALL = 2; // reliable to all
181 float MSG_INIT = 3; // write to the init string
183 /////////////////////////////
184 // mouse target constants
189 /////////////////////////
190 // client state constants
192 float CS_DEDICATED = 0;
193 float CS_DISCONNECTED = 1;
194 float CS_CONNECTED = 2;
196 ///////////////////////////
199 float DRAWFLAG_NORMAL = 0;
200 float DRAWFLAG_ADDITIVE = 1;
201 float DRAWFLAG_MODULATE = 2;
202 float DRAWFLAG_2XMODULATE = 3;
205 ///////////////////////////
209 float CVAR_NOTIFY = 2;
210 float CVAR_READONLY = 4;
212 ///////////////////////////
213 // server list constants
215 float SLIST_HOSTCACHEVIEWCOUNT = 0;
216 float SLIST_HOSTCACHETOTALCOUNT = 1;
217 float SLIST_MASTERQUERYCOUNT = 2;
218 float SLIST_MASTERREPLYCOUNT = 3;
219 float SLIST_SERVERQUERYCOUNT = 4;
220 float SLIST_SERVERREPLYCOUNT = 5;
221 float SLIST_SORTFIELD = 6;
222 float SLIST_SORTDESCENDING = 7;
224 float SLIST_LEGACY_LINE1 = 1024;
225 float SLIST_LEGACY_LINE2 = 1025;
227 float SLIST_TEST_CONTAINS = 0;
228 float SLIST_TEST_NOTCONTAIN = 1;
229 float SLIST_TEST_LESSEQUAL = 2;
230 float SLIST_TEST_LESS = 3;
231 float SLIST_TEST_EQUAL = 4;
232 float SLIST_TEST_GREATER = 5;
233 float SLIST_TEST_GREATEREQUAL = 6;
234 float SLIST_TEST_NOTEQUAL = 7;
236 float SLIST_MASK_AND = 0;
237 float SLIST_MASK_OR = 512;
239 float NET_CURRENTPROTOCOL = 3;
241 ////////////////////////////////
242 // cinematic action constants
246 float CINE_PAUSE = 3;
247 float CINE_FIRSTFRAME = 4;
248 float CINE_RESETONWAKEUP= 5;
250 ///////////////////////////
251 // null entity (actually it is the same like the world entity)
255 ///////////////////////////
259 float ERR_CANNOTOPEN = -1; // fopen
260 float ERR_NOTENOUGHFILEHANDLES = -2; // fopen
261 float ERR_INVALIDMODE = -3; // fopen
262 float ERR_BADFILENAME = -4; // fopen
266 float ERR_NULLSTRING = -1;
267 float ERR_BADDRAWFLAG = -2;
268 float ERR_BADSCALE = -3;
269 float ERR_BADSIZE = ERR_BADSCALE;
270 float ERR_NOTCACHED = -4;
272 /* not supported at the moment
273 ///////////////////////////
276 float OS_WINDOWS = 0;