1 //////////////////////////////////////////////////////////
6 /////////////////////////////////////////////////////////
8 /////////////////////////////////////////////////////////
11 /////////////////////////////////////////////////////////
13 /////////////////////////////////////////////////////////
17 void(float keynr, float ascii) m_keydown;
19 void() m_display; // old NG Menu
21 void() m_hide; // old NG Menu
24 /////////////////////////////////////////////////////////
26 ///////////////////////////
30 // these are the key numbers that should be passed to Key_Event
37 // normal keys should be passed as lowercased ascii
39 float K_BACKSPACE = 127;
40 float K_UPARROW = 128;
41 float K_DOWNARROW = 129;
42 float K_LEFTARROW = 130;
43 float K_RIGHTARROW = 131;
67 float K_KP_HOME = 160;
68 float K_KP_UPARROW = 161;
69 float K_KP_PGUP = 162;
70 float K_KP_LEFTARROW = 163;
72 float K_KP_RIGHTARROW = 165;
74 float K_KP_DOWNARROW = 167;
75 float K_KP_PGDN = 168;
76 float K_KP_ENTER = 169;
79 float K_KP_SLASH = 172;
80 float K_KP_MINUS = 173;
81 float K_KP_PLUS = 174;
94 // aux keys are for multi-buttoned joysticks to generate so they can use
95 // the normal binding process
131 // mouse buttons generate virtual keys
133 float K_MOUSE1 = 512;
134 float K_MOUSE2 = 513;
135 float K_MOUSE3 = 514;
136 float K_MOUSE4 = 515;
137 float K_MOUSE5 = 516;
138 float K_MOUSE6 = 517;
139 float K_MOUSE7 = 518;
140 float K_MOUSE8 = 519;
141 float K_MOUSE9 = 520;
142 float K_MOUSE10 = 521;
144 float K_MWHEELDOWN = K_MOUSE4;
145 float K_MWHEELUP = K_MOUSE5;
147 ///////////////////////////
148 // key dest constants
152 float KEY_UNKNOWN = 3;
154 ///////////////////////////
158 float FILE_APPEND = 1;
159 float FILE_WRITE = 2;
161 ///////////////////////////
162 // logical constants (just for completeness)
167 ///////////////////////////
173 ///////////////////////////
176 float MSG_BROADCAST = 0; // unreliable to all
177 float MSG_ONE = 1; // reliable to one (msg_entity)
178 float MSG_ALL = 2; // reliable to all
179 float MSG_INIT = 3; // write to the init string
181 /////////////////////////////
182 // mouse target constants
187 /////////////////////////
188 // client state constants
190 float CS_DEDICATED = 0;
191 float CS_DISCONNECTED = 1;
192 float CS_CONNECTED = 2;
194 ///////////////////////////
197 float DRAWFLAG_NORMAL = 0;
198 float DRAWFLAG_ADDITIVE = 1;
199 float DRAWFLAG_MODULATE = 2;
200 float DRAWFLAG_2XMODULATE = 3;
203 ///////////////////////////
207 float CVAR_NOTIFY = 2;
208 float CVAR_READONLY = 4;
210 ///////////////////////////
211 // server list constants
213 float SLIST_HOSTCACHEVIEWCOUNT = 0;
214 float SLIST_HOSTCACHETOTALCOUNT = 1;
215 float SLIST_MASTERQUERYCOUNT = 2;
216 float SLIST_MASTERREPLYCOUNT = 3;
217 float SLIST_SERVERQUERYCOUNT = 4;
218 float SLIST_SERVERREPLYCOUNT = 5;
219 float SLIST_SORTFIELD = 6;
220 float SLIST_SORTDESCENDING = 7;
222 float SLIST_FIELD_CNAME = 0;
223 float SLIST_FIELD_PING = 1;
224 float SLIST_FIELD_GAME = 2;
225 float SLIST_FIELD_MOD = 3;
226 float SLIST_FIELD_MAP = 4;
227 float SLIST_FIELD_NAME = 5;
228 float SLIST_FIELD_MAXPLAYERS = 6;
229 float SLIST_FIELD_NUMPLAYERS = 7;
230 float SLIST_FIELD_PROTOCOL = 8;
231 float SLIST_FIELD_COUNT = 9; // not a real field (just so you can use it in a for loop
233 float SLIST_LEGACY_LINE1 = 1024;
234 float SLIST_LEGACY_LINE2 = 1025;
236 float SLIST_TEST_CONTAINS = 0;
237 float SLIST_TEST_NOTCONTAIN = 1;
238 float SLIST_TEST_LESSEQUAL = 2;
239 float SLIST_TEST_LESS = 3;
240 float SLIST_TEST_EQUAL = 4;
241 float SLIST_TEST_GREATER = 5;
242 float SLIST_TEST_GREATEREQUAL = 6;
243 float SLIST_TEST_NOTEQUAL = 7;
245 float SLIST_MASK_AND = 0;
246 float SLIST_MASK_OR = 512;
248 float NET_CURRENTPROTOCOL = 3;
250 ////////////////////////////////
251 // cinematic action constants
255 float CINE_PAUSE = 3;
256 float CINE_FIRSTFRAME = 4;
257 float CINE_RESETONWAKEUP= 5;
259 ///////////////////////////
260 // null entity (actually it is the same like the world entity)
264 ///////////////////////////
268 float ERR_CANNOTOPEN = -1; // fopen
269 float ERR_NOTENOUGHFILEHANDLES = -2; // fopen
270 float ERR_INVALIDMODE = -3; // fopen
271 float ERR_BADFILENAME = -4; // fopen
275 float ERR_NULLSTRING = -1;
276 float ERR_BADDRAWFLAG = -2;
277 float ERR_BADSCALE = -3;
278 float ERR_BADSIZE = ERR_BADSCALE;
279 float ERR_NOTCACHED = -4;
281 /* not supported at the moment
282 ///////////////////////////
285 float OS_WINDOWS = 0;