DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
menudefs.qc
Go to the documentation of this file.
1
2// sys globals
3
5
9// sys fields
10
14// sys functions
15
16void() m_init;
17void(float keynr, float ascii) m_keydown;
18void(float width, float height) m_draw;
19void(float mode) m_toggle;
20void() m_shutdown;
21// optional: float(float) m_gethostcachecategory;
22
24// sys constants
26// key dest constants
27
28float KEY_UNKNOWN = -1;
29float KEY_GAME = 0;
30float KEY_MENU = 2;
32
34// file constants
35
36float FILE_READ = 0;
37float FILE_APPEND = 1;
38float FILE_WRITE = 2;
39
41// logical constants (just for completeness)
42
43float TRUE = 1;
44float FALSE = 0;
45
47// boolean constants
48
49float true = 1;
50float false = 0;
51
53// msg constants
54
55float MSG_BROADCAST = 0; // unreliable to all
56float MSG_ONE = 1; // reliable to one (msg_entity)
57float MSG_ALL = 2; // reliable to all
58float MSG_INIT = 3; // write to the init string
59
61// mouse target constants
62
63float MT_MENU = 1;
64float MT_CLIENT = 2;
65
67// client state constants
68
69float CS_DEDICATED = 0;
71float CS_CONNECTED = 2;
72
74// blend flags
75
80
82// null entity (actually it is the same like the world entity)
83
85
87// error constants
88
89// file handling
90float ERR_CANNOTOPEN = -1; // fopen
91float ERR_NOTENOUGHFILEHANDLES = -2; // fopen
92float ERR_INVALIDMODE = -3; // fopen
93float ERR_BADFILENAME = -4; // fopen
94
95// drawing functions
96
97float ERR_NULLSTRING = -1;
98float ERR_BADDRAWFLAG = -2;
99float ERR_BADSCALE = -3;
100float ERR_BADSIZE = -3; // same as ERR_BADSCALE
101float ERR_NOTCACHED = -4;
102
103// server list stuff
125float SLIST_MASK_OR = 512;
126
127// font stuff
128float FONT_DEFAULT = 0;
129float FONT_CONSOLE = 1;
130float FONT_SBAR = 2;
131float FONT_NOTIFY = 3;
132float FONT_CHAT = 4;
134float FONT_INFOBAR = 6;
135float FONT_MENU = 7;
136float FONT_USER = 8; // add to this the index, like FONT_USER+3 = user3. At least 8 of them are supported.
138
139/* not supported at the moment
141// os constants
142
143float OS_WINDOWS = 0;
144float OS_LINUX = 1;
145float OS_MAC = 2;
146*/
147
148
149
150
151
152
153
154
155
156
158// common cmd
160// AK FIXME: Create perhaps a special builtin file for the common cmds
161
162float checkextension(string ext) = #1;
163
164// error cmds
165void error(string err,...) = #2;
166void objerror(string err,...) = #3;
167
168// print
169
170void print(string text,...) = #4;
171void bprint(string text,...) = #5;
172void sprint(float clientnum, string text,...) = #6;
173void centerprint(string text,...) = #7;
174
175// vector stuff
176
178float vlen(vector v) = #9;
179float vectoyaw(vector v) = #10;
181
182float random(void) = #12; // Returns a random number > 0 and < 1
183
184void cmd(string command, ...) = #13;
185void localcmd(string command, ...) = #13;
186
187// cvar cmds
188
189float cvar(string name) = #14;
190const string str_cvar(string name) = #71;
191void cvar_set(string name, string value) = #15;
192
193void dprint(string text,...) = #16;
194
195// conversion functions
196
197string ftos(float f) = #17;
198float fabs(float f) = #18;
199string vtos(vector v) = #19;
200string etos(entity e) = #20;
201
202float stof(string val,...) = #21;
203
204entity spawn(void) = #22;
205void remove(entity e) = #23;
206
207entity find(entity start, .string field, string match) = #24;
208entity findfloat(entity start, .float field, float match) = #25;
209entity findentity(entity start, .entity field, entity match) = #25;
210
211entity findchainstring(.string field, string match) = #26;
212entity findchainfloat(.float field, float match) = #27;
213entity findchainentity(.entity field, entity match) = #27;
214
215string precache_file(string file) = #28;
216string precache_sound(string sample) = #29;
217
218void crash(void) = #72;
219void coredump(void) = #30;
220void stackdump(void) = #73;
221void traceon(void) = #31;
222void traceoff(void) = #32;
223
224void eprint(entity e) = #33;
225float rint(float f) = #34;
226float floor(float f) = #35;
227float ceil(float f) = #36;
229float sin(float f) = #38;
230float cos(float f) = #39;
231float sqrt(float f) = #40;
232vector randomvec(void) = #41;
233
234float registercvar(string name, string value, float flags) = #42; // returns 1 if success
235
236float min(float f,...) = #43;
237float max(float f,...) = #44;
238
239float bound(float min,float value, float max) = #45;
240float pow(float a, float b) = #46;
241
242void copyentity(entity src, entity dst) = #47;
243
244float fopen(string filename, float mode) = #48;
245void fclose(float fhandle) = #49;
246string fgets(float fhandle) = #50;
247void fputs(float fhandle, string s) = #51;
248
249float strlen(string s) = #52;
250string strcat(string s, string...) = #53;
251string substring(string s, float start, float length) = #54;
252
253vector stov(string s) = #55;
254
255string strzone(string s) = #56;
256void strunzone(string s) = #57;
257
258float tokenize(string s) = #58;
259string argv(float n) = #59;
260
261float isserver(void) = #60;
262float clientcount(void) = #61;
263float clientstate(void) = #62;
264void clientcommand(float client, string s) = #63;
265void changelevel(string map) = #64;
266void localsound(string sample) = #65;
267vector getmousepos(void) = #66;
268float gettime(void) = #67;
269void loadfromdata(string data) = #68;
270void loadfromfile(string file) = #69;
271
272float mod(float val, float m) = #70;
273
274float search_begin(string pattern, float caseinsensitive, float quiet) = #74;
275void search_end(float handle) = #75;
276float search_getsize(float handle) = #76;
277string search_getfilename(float handle, float num) = #77;
278
279string chr(float ascii) = #78;
280
282// Write* Functions
284void WriteByte(float data, float dest, float desto) = #401;
285void WriteChar(float data, float dest, float desto) = #402;
286void WriteShort(float data, float dest, float desto) = #403;
287void WriteLong(float data, float dest, float desto) = #404;
288void WriteAngle(float data, float dest, float desto) = #405;
289void WriteCoord(float data, float dest, float desto) = #406;
290void WriteString(string data, float dest, float desto)= #407;
291void WriteEntity(entity data, float dest, float desto) = #408;
292
294// Draw funtions
296
297float iscachedpic(string name) = #451;
298string precache_pic(string name, ...) = #452;
299void freepic(string name) = #453;
300
301float drawcharacter(vector position, float character, vector scale, vector rgb, float alpha, float flag) = #454;
302
303float drawstring(vector position, string text, vector scale, vector rgb, float alpha, float flag) = #455;
304
305float drawcolorcodedstring(vector position, string text, vector scale, float alpha, float flag) = #467;
306
307vector drawcolorcodedstring2(vector position, string text, vector scale, vector rgb, float alpha, float flag) = #467;
308
309float drawpic(vector position, string pic, vector size, vector rgb, float alpha, float flag) = #456;
310
311float drawfill(vector position, vector size, vector rgb, float alpha, float flag) = #457;
312
313void drawsetcliparea(float x, float y, float width, float height) = #458;
314
315void drawresetcliparea(void) = #459;
316
317vector drawgetimagesize(string pic) = #460;
318
320// Menu functions
322
323void setkeydest(float dest) = #601;
324float getkeydest(void) = #602;
325
326void setmousetarget(float trg) = #603;
327float getmousetarget(void) = #604;
328
329float isfunction(string function_name) = #607;
330void callfunction(...) = #605;
331void writetofile(float fhandle, entity ent) = #606;
332vector getresolution(float number) = #608;
333string keynumtostring(float keynum) = #609;
334
335float gethostcachevalue(float type) = #611;
336string gethostcachestring(float type, float hostnr) = #612;
337
338//DP_CSQC_BINDMAPS
339//idea: daemon, motorsep
340//darkplaces implementation: divVerent
341//builtin definitions:
342string(float key, float bindmap) getkeybind_bindmap = #342;
343float(float key, string bind, float bindmap) setkeybind_bindmap = #630;
344vector(void) getbindmaps = #631;
345float(vector bm) setbindmaps = #632;
346string(string command, float bindmap) findkeysforcommand = #610;
347float(string key) stringtokeynum = #341;
348//<also allowed builtin number to match EXT_CSQC> string(float keynum) keynumtostring = #340;
349//description: key bind setting/getting including support for switchable
350//bindmaps.
351
352//DP_CRYPTO
353//idea: divVerent
354//darkplaces implementation: divVerent
355//field definitions: (MENUQC)
356string(string serveraddress) crypto_getkeyfp = #633; // retrieves the cached host key's CA fingerprint of a server given by IP address
357string(string serveraddress) crypto_getidfp = #634; // retrieves the cached host key fingerprint of a server given by IP address
358float(string serveraddress) crypto_getidstatus = #643; // retrieves the cached host key's key status. See below for CRYPTO_IDSTATUS_ defines.
359string(string serveraddress) crypto_getencryptlevel = #635; // 0 if never encrypting, 1 supported, 2 requested, 3 required, appended by list of allowed methods in order of preference ("AES128"), preceded by a space each
360string(float i) crypto_getmykeyfp = #636; // retrieves the CA key fingerprint of a given CA slot, or "" if slot is unused but more to come, or string_null if end of list
361string(float i) crypto_getmyidfp = #637; // retrieves the ID fingerprint of a given CA slot, or "" if slot is unused but more to come, or string_null if end of list
366float(float i) crypto_getmyidstatus = #641; // retrieves the ID's status of a given CA slot, or 0 if slot is unused but more to come, or -1 if end of list
367float(string url, float id, string content_type, string delim, float buf, float keyid) crypto_uri_postbuf = #513;
368//description:
369//use -1 as buffer handle to justs end delim as postdata
370
371//DP_GECKO_SUPPORT
372//idea: Res2k, BlackHC
373//darkplaces implementation: Res2k, BlackHC
374//constant definitions:
377// either use down and up or just press but not all of them!
379// use this for mouse events if needed?
381//builtin definitions:
382float gecko_create( string name ) = #487;
383void gecko_destroy( string name ) = #488;
384void gecko_navigate( string name, string URI ) = #489;
385float gecko_keyevent( string name, float key, float eventtype ) = #490;
386void gecko_mousemove( string name, float x, float y ) = #491;
387void gecko_resize( string name, float w, float h ) = #492;
389//engine-called QC prototypes:
390//string(string name, string query) Qecko_Query;
391//description:
392//provides an interface to the offscreengecko library and allows for internet browsing in games
393
394//FTE_STRINGS
395//idea: many
396//darkplaces implementation: KrimZon
397//description:
398//various string manipulation functions
399float(string str, string sub, float startpos) strstrofs = #221;
400float(string str, float ofs) str2chr = #222;
401string(float c, ...) chr2str = #223;
402string(float ccase, float calpha, float cnum, string s, ...) strconv = #224;
403string(float chars, string s, ...) strpad = #225;
404string(string info, string key, string value, ...) infoadd = #226;
405string(string info, string key) infoget = #227;
406float(string s1, string s2) strcmp = #228;
407float(string s1, string s2, float len) strncmp = #228;
408float(string s1, string s2) strcasecmp = #229;
409float(string s1, string s2, float len) strncasecmp = #230;
410
411//DP_PRECACHE_PIC_FLAGS
412//idea: divVerent
413//darkplaces implementation: divVerent
414//constant definitions:
415float PRECACHE_PIC_FROMWAD = 1; // this one actually is part of EXT_CSQC
416float PRECACHE_PIC_NOTPERSISTENT = 2; // picture may get deallocated when unused
417float PRECACHE_PIC_MIPMAP = 8; // mipmap the texture for possibly better downscaling at memory expense
418//notes: these constants are given as optional second argument to precache_pic()
419
420//DP_QC_CRC16
421//idea: div0
422//darkplaces implementation: div0
423//Some hash function to build hash tables with. This has to be be the CRC-16-CCITT that is also required for the QuakeWorld download protocol.
424//When caseinsensitive is set, the CRC is calculated of the lower cased string.
425float(float caseinsensitive, string s, ...) crc16 = #494;
426
427//DP_QC_CVAR_TYPE
428float(string name) cvar_type = #495;
435
436//DP_QC_STRINGBUFFERS
437//idea: ??
438//darkplaces implementation: LadyHavoc
439//functions to manage string buffer objects - that is, arbitrary length string arrays that are handled by the engine
440float() buf_create = #440;
441void(float bufhandle) buf_del = #441;
442float(float bufhandle) buf_getsize = #442;
443void(float bufhandle_from, float bufhandle_to) buf_copy = #443;
444void(float bufhandle, float sortpower, float backward) buf_sort = #444;
445string(float bufhandle, string glue) buf_implode = #445;
446string(float bufhandle, float string_index) bufstr_get = #446;
447void(float bufhandle, float string_index, string str) bufstr_set = #447;
448float(float bufhandle, string str, float order) bufstr_add = #448;
449void(float bufhandle, float string_index) bufstr_free = #449;
450void(float bufhandle, string pattern, string antipattern) buf_cvarlist = #517;
451
452//DP_QC_STRING_CASE_FUNCTIONS
453//idea: Dresk
454//darkplaces implementation: LadyHavoc / Dresk
455//builtin definitions:
456string(string s) strtolower = #480; // returns the passed in string in pure lowercase form
457string(string s) strtoupper = #481; // returns the passed in string in pure uppercase form
458//description:
459//provides simple string uppercase and lowercase functions
460
461//DP_QC_CVAR_DESCRIPTION
462//idea: divVerent
463//DarkPlaces implementation: divVerent
464//builtin definitions:
465string(string name) cvar_description = #518;
466//description:
467//returns the description of a cvar
468
469//DP_QC_DIGEST
470//idea: motorsep, Spike
471//DarkPlaces implementation: divVerent
472//builtin definitions:
473string(string digest, string data, ...) digest_hex = #639;
474//description:
475//returns a given hex digest of given data
476//the returned digest is always encoded in hexadecimal
477//only the "MD4" digest is always supported!
478//if the given digest is not supported, string_null is returned
479//the digest string is matched case sensitively, use "MD4", not "md4"!
480
481//DP_QC_WHICHPACK
482//idea: divVerent
483//darkplaces implementation: divVerent
484//builtin definitions:
485string(string filename) whichpack = #503;
486//description:
487//for files in a pak/pk3/whatever, returns the pack's file name in FRIK_FILE name space.
488//for physical files, returns "".
489//in case of error, returns string_null.
490
491//DP_QC_URI_ESCAPE
492//idea: div0
493//darkplaces implementation: div0
494//URI::Escape's functionality
495string(string in) uri_escape = #510;
496string(string in) uri_unescape = #511;
497
498//DP_QC_URI_GET
499//idea: divVerent
500//darkplaces implementation: divVerent
501//loads text from an URL into a string
502//returns 1 on success of initiation, 0 if there are too many concurrent
503//connections already or if the URL is invalid
504//the following callback will receive the data and MUST exist!
505// void(float id, float status, string data) URI_Get_Callback;
506//status is either
507// negative for an internal error,
508// 0 for success, or
509// the HTTP response code on server error (e.g. 404)
510//if 1 is returned by uri_get, the callback will be called in the future
511float(string url, float id) uri_get = #513;
512//DP_QC_URI_POST
513//idea: divVerent
514//darkplaces implementation: divVerent
515//loads text from an URL into a string after POSTing via HTTP
516//works like uri_get, but uri_post sends data with Content-Type: content_type to the server
517//and uri_post sends the string buffer buf, joined using the delimiter delim
518float(string url, float id, string content_type, string data) uri_post = #513;
519float(string url, float id, string content_type, string delim, float buf) uri_postbuf = #513;
520
521//DP_QC_ENTITYDATA
522//idea: KrimZon
523//darkplaces implementation: KrimZon
524//builtin definitions:
525float() numentityfields = #496;
526string(float fieldnum) entityfieldname = #497;
527float(float fieldnum) entityfieldtype = #498;
528string(float fieldnum, entity ent) getentityfieldstring = #499;
529float(float fieldnum, entity ent, string s) putentityfieldstring = #500;
530//constants:
531//Returned by entityfieldtype
532float FIELD_STRING = 1;
533float FIELD_FLOAT = 2;
534float FIELD_VECTOR = 3;
535float FIELD_ENTITY = 4;
537//description:
538//Versatile functions intended for storing data from specific entities between level changes, but can be customized for some kind of partial savegame.
539//WARNING: .entity fields cannot be saved and restored between map loads as they will leave dangling pointers.
540//numentityfields returns the number of entity fields. NOT offsets. Vectors comprise 4 fields: v, v_x, v_y and v_z.
541//entityfieldname returns the name as a string, eg. "origin" or "classname" or whatever.
542//entityfieldtype returns a value that the constants represent, but the field may be of another type in more exotic progs.dat formats or compilers.
543//getentityfieldstring returns data as would be written to a savegame, eg... "0.05" (float), "0 0 1" (vector), or "Hello World!" (string). Function names can also be returned.
544//putentityfieldstring puts the data returned by getentityfieldstring back into the entity.
545
546//DP_COVERAGE
547//idea: divVerent
548//darkplaces implementation: divVerent
549//function definitions:
550void coverage() = #642; // Reports a coverage event. The engine counts for each of the calls to this builtin whether it has been called.
551
552//DP_QC_FS_SEARCH_PACKFILE
553//idea: Mario
554//darkplaces implementation: Mario
555//builtin definitions:
556float(string pattern, float caseinsensitive, float quiet, string packfile) search_packfile_begin = #74;
557//description:
558//extension to search_begin (DP_QC_FS_SEARCH), performs a filename search with the specified pattern (for example "maps/*.bsp") and stores the results in a search slot (minimum of 128 supported by any engine with this extension), the other functions take this returned search slot number, be sure to search_free when done (they are also freed on progs reload).
559//only searches for files within the specified packfile, which is expected to match the results of whichpack().
560
561// assorted undocumented extensions
562string(string, float) netaddress_resolve = #625;
563string(string search, string replace, string subject) strreplace = #484;
564string(string search, string replace, string subject) strireplace = #485;
565string(float uselocaltime, string format, ...) strftime = #478;
566float(string s) tokenize_console = #514;
567float(float i) argv_start_index = #515;
568float(float i) argv_end_index = #516;
569string(float, float) getgamedirinfo = #626;
570#define GETGAMEDIRINFO_NAME 0
571#define GETGAMEDIRINFO_DESCRIPTION 1
572float log(float f) = #532;
573string(string format, ...) sprintf = #627;
574string(string s) strdecolorize = #477;
575entity findflags(entity start, .float field, float match) = #87;
576entity findchainflags(.float field, float match) = #88;
577float(string s, string separator1, ...) tokenizebyseparator = #479;
578float etof(entity ent) = #79;
579entity ftoe(float num) = #80;
580float validstring(string str) = #81;
581float altstr_count(string str) = #82;
582string altstr_prepare(string str) = #83;
583string altstr_get(string str, float num) = #84;
584string altstr_set(string str, float num, string set) = #85;
585string altstr_ins(string str, float num, string set) = #86;
586float isdemo() = #349;
587float drawsubpic(vector position, vector size, string pic, vector srcPosition, vector srcSize, vector rgb, float alpha, float flag) = #469;
588//vector getresolution(float number, ...) = #608; // optional argument "isfullscreen"
589void parseentitydata(entity ent, string data) = #613;
590void resethostcachemasks(void) = #615;
591void sethostcachemaskstring(float mask, float fld, string str, float op) = #616;
592void sethostcachemasknumber(float mask, float fld, float num, float op) = #617;
593void resorthostcache(void) = #618;
597void sethostcachesort(float fld, float slsf) = #619;
598void refreshhostcache(...) = #620; // optional boolean argument "clear_list"
599float gethostcachenumber(float fld, float hostnr) = #621;
600float gethostcacheindexforkey(string key) = #622;
601void addwantedhostcachekey(string key) = #623;
602string getextresponse(void) = #624;
603const string cvar_string(string name) = #71;
604const string cvar_defstring(string name) = #89;
605float stringwidth(string text, float handleColors, vector size) = #468;
#define sprintf
Definition common.h:269
#define strcat
Definition common.h:255
vector size
float flags
entity() spawn
float scale
float alpha
#define n(x, y)
GLenum GLsizei width
Definition glquake.h:622
GLenum GLsizei GLsizei height
Definition glquake.h:622
GLubyte GLubyte GLubyte GLubyte w
Definition glquake.h:782
GLenum mode
Definition glquake.h:718
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
Definition glquake.h:609
GLsizei const GLfloat * value
Definition glquake.h:740
GLsizei const GLchar ** string
Definition glquake.h:728
GLenum GLuint GLenum GLsizei length
Definition glquake.h:657
const GLdouble * v
Definition glquake.h:762
GLint GLint GLint GLsizei GLsizei GLenum format
Definition glquake.h:649
GLint GLenum GLint GLint y
Definition glquake.h:651
GLint GLenum GLint x
Definition glquake.h:651
GLsizeiptr const GLvoid * data
Definition glquake.h:639
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition glquake.h:657
const GLchar * name
Definition glquake.h:601
GLenum type
Definition glquake.h:656
#define max(A, B)
Definition mathlib.h:38
#define min(A, B)
Definition mathlib.h:37
#define bound(min, num, max)
Definition mathlib.h:34
float SLIST_HOSTCACHETOTALCOUNT
Definition menudefs.qc:105
string precache_file(string file)
void loadfromdata(string data)
float pow(float a, float b)
float registercvar(string name, string value, float flags)
float mod(float val, float m)
float GECKO_BUTTON_PRESS
Definition menudefs.qc:378
float FIELD_FUNCTION
Definition menudefs.qc:536
float TRUE
Definition menudefs.qc:43
float drawsubpic(vector position, vector size, string pic, vector srcPosition, vector srcSize, vector rgb, float alpha, float flag)
void localcmd(string command,...)
void cvar_set(string name, string value)
float FONT_USER
Definition menudefs.qc:136
float gecko_create(string name)
entity findchainentity(.entity field, entity match)
float MT_CLIENT
Definition menudefs.qc:64
string fgets(float fhandle)
void copyentity(entity src, entity dst)
float isdemo()
float SLIST_TEST_LESSEQUAL
Definition menudefs.qc:116
float FONT_CONSOLE
Definition menudefs.qc:129
float drawfill(vector position, vector size, vector rgb, float alpha, float flag)
float ERR_NOTENOUGHFILEHANDLES
Definition menudefs.qc:91
float CS_DEDICATED
Definition menudefs.qc:69
float DRAWFLAG_2XMODULATE
Definition menudefs.qc:79
void fclose(float fhandle)
float CS_CONNECTED
Definition menudefs.qc:71
float GECKO_BUTTON_DOWN
Definition menudefs.qc:375
float FIELD_ENTITY
Definition menudefs.qc:535
float ceil(float f)
void stackdump(void)
entity null_entity
Definition menudefs.qc:84
float SLIST_TEST_GREATER
Definition menudefs.qc:119
float SLSF_FAVORITES
Definition menudefs.qc:595
float strlen(string s)
float true
Definition menudefs.qc:49
float MSG_ONE
Definition menudefs.qc:56
void writetofile(float fhandle, entity ent)
string getextresponse(void)
entity findentity(entity start,.entity field, entity match)
float SLSF_DESCENDING
Definition menudefs.qc:594
float FIELD_VECTOR
Definition menudefs.qc:534
string chr(float ascii)
float stof(string val,...)
entity self
Definition menudefs.qc:4
float FONT_NOTIFY
Definition menudefs.qc:131
void fputs(float fhandle, string s)
entity nextent(entity e)
float SLIST_TEST_NOTSTARTSWITH
Definition menudefs.qc:123
void drawresetcliparea(void)
float ERR_NULLSTRING
Definition menudefs.qc:97
entity findchainfloat(.float field, float match)
float FONT_CHAT
Definition menudefs.qc:132
float etof(entity ent)
float SLIST_SERVERREPLYCOUNT
Definition menudefs.qc:109
void traceon(void)
float KEY_MENU_GRABBED
Definition menudefs.qc:31
float CVAR_TYPEFLAG_HASDESCRIPTION
Definition menudefs.qc:433
string substring(string s, float start, float length)
void setmousetarget(float trg)
void WriteLong(float data, float dest, float desto)
void WriteString(string data, float dest, float desto)
void sethostcachesort(float fld, float slsf)
float cvar(string name)
float SLIST_TEST_CONTAINS
Definition menudefs.qc:114
void sprint(float clientnum, string text,...)
float stringwidth(string text, float handleColors, vector size)
float altstr_count(string str)
float FONT_SBAR
Definition menudefs.qc:130
float gethostcacheindexforkey(string key)
float fopen(string filename, float mode)
void WriteChar(float data, float dest, float desto)
entity find(entity start,.string field, string match)
entity findflags(entity start,.float field, float match)
string search_getfilename(float handle, float num)
float ERR_BADSIZE
Definition menudefs.qc:100
void error(string err,...)
float CVAR_TYPEFLAG_ENGINE
Definition menudefs.qc:432
float gettime(void)
void coverage()
float vectoyaw(vector v)
float cos(float f)
float clientstate(void)
entity findchainstring(.string field, string match)
float SLIST_TEST_GREATEREQUAL
Definition menudefs.qc:120
string gethostcachestring(float type, float hostnr)
float SLIST_LEGACY_LINE1
Definition menudefs.qc:112
entity spawn(void)
float ERR_BADSCALE
Definition menudefs.qc:99
float CRYPTO_IDSTATUS_OUTOFRANGE
Definition menudefs.qc:362
float FONT_MENU
Definition menudefs.qc:135
string keynumtostring(float keynum)
float FILE_APPEND
Definition menudefs.qc:37
vector stov(string s)
float random(void)
float drawcolorcodedstring(vector position, string text, vector scale, float alpha, float flag)
string precache_pic(string name,...)
float SLIST_TEST_NOTEQUAL
Definition menudefs.qc:121
float SLIST_MASTERQUERYCOUNT
Definition menudefs.qc:106
void gecko_resize(string name, float w, float h)
void bprint(string text,...)
float PRECACHE_PIC_FROMWAD
Definition menudefs.qc:415
float DRAWFLAG_NORMAL
Definition menudefs.qc:76
float SLIST_TEST_LESS
Definition menudefs.qc:117
float validstring(string str)
void clientcommand(float client, string s)
void addwantedhostcachekey(string key)
float SLIST_MASK_OR
Definition menudefs.qc:125
const string cvar_string(string name)
float search_getsize(float handle)
vector drawcolorcodedstring2(vector position, string text, vector scale, vector rgb, float alpha, float flag)
float gethostcachenumber(float fld, float hostnr)
float DRAWFLAG_ADDITIVE
Definition menudefs.qc:77
float CVAR_TYPEFLAG_EXISTS
Definition menudefs.qc:429
vector drawgetimagesize(string pic)
float KEY_GAME
Definition menudefs.qc:29
void gecko_navigate(string name, string URI)
float FIELD_STRING
Definition menudefs.qc:532
void gecko_mousemove(string name, float x, float y)
float vlen(vector v)
string altstr_set(string str, float num, string set)
float KEY_MENU
Definition menudefs.qc:30
void WriteShort(float data, float dest, float desto)
float CRYPTO_IDSTATUS_EMPTY
Definition menudefs.qc:363
vector vectoangles(vector v)
float sqrt(float f)
float ERR_INVALIDMODE
Definition menudefs.qc:92
float FIELD_FLOAT
Definition menudefs.qc:533
void dprint(string text,...)
float search_begin(string pattern, float caseinsensitive, float quiet)
vector getresolution(float number)
float MT_MENU
Definition menudefs.qc:63
float ERR_BADDRAWFLAG
Definition menudefs.qc:98
void end_sys_globals
Definition menudefs.qc:7
void objerror(string err,...)
void callfunction(...)
void sethostcachemaskstring(float mask, float fld, string str, float op)
float CVAR_TYPEFLAG_READONLY
Definition menudefs.qc:434
void parseentitydata(entity ent, string data)
void gecko_destroy(string name)
void coredump(void)
float SLIST_LEGACY_LINE2
Definition menudefs.qc:113
string altstr_prepare(string str)
float FONT_DEFAULT
Definition menudefs.qc:128
void cmd(string command,...)
float log(float f)
vector(void) getbindmaps
string precache_sound(string sample)
void WriteEntity(entity data, float dest, float desto)
entity ftoe(float num)
void localsound(string sample)
float clientcount(void)
vector randomvec(void)
void resethostcachemasks(void)
void drawsetcliparea(float x, float y, float width, float height)
void changelevel(string map)
float FONT_INFOBAR
Definition menudefs.qc:134
float drawpic(vector position, string pic, vector size, vector rgb, float alpha, float flag)
float isserver(void)
float getkeydest(void)
string altstr_ins(string str, float num, string set)
void WriteCoord(float data, float dest, float desto)
void centerprint(string text,...)
float gethostcachevalue(float type)
float sin(float f)
float isfunction(string function_name)
void crash(void)
float SLIST_TEST_NOTCONTAIN
Definition menudefs.qc:115
string vtos(vector v)
const string str_cvar(string name)
float SLIST_TEST_STARTSWITH
Definition menudefs.qc:122
float gecko_keyevent(string name, float key, float eventtype)
float checkextension(string ext)
void refreshhostcache(...)
void strunzone(string s)
void loadfromfile(string file)
void setkeydest(float dest)
float ERR_BADFILENAME
Definition menudefs.qc:93
float false
Definition menudefs.qc:50
float rint(float f)
vector normalize(vector v)
string ftos(float f)
void eprint(entity e)
void WriteByte(float data, float dest, float desto)
float GECKO_BUTTON_DOUBLECLICK
Definition menudefs.qc:380
entity findchainflags(.float field, float match)
void end_sys_fields
Definition menudefs.qc:12
float ERR_NOTCACHED
Definition menudefs.qc:101
float CVAR_TYPEFLAG_SAVED
Definition menudefs.qc:430
float SLIST_SORTFIELD
Definition menudefs.qc:110
void freepic(string name)
void resorthostcache(void)
float fabs(float f)
float PRECACHE_PIC_NOTPERSISTENT
Definition menudefs.qc:416
float MSG_INIT
Definition menudefs.qc:58
float() buf_create
Definition shader_glsl.h:53
void print(string text,...)
float SLIST_TEST_EQUAL
Definition menudefs.qc:118
float getmousetarget(void)
float FILE_READ
Definition menudefs.qc:36
float SLSF_CATEGORIES
Definition menudefs.qc:596
float floor(float f)
const string cvar_defstring(string name)
void traceoff(void)
void sethostcachemasknumber(float mask, float fld, float num, float op)
float tokenize(string s)
float PRECACHE_PIC_MIPMAP
Definition menudefs.qc:417
float SLIST_SERVERQUERYCOUNT
Definition menudefs.qc:108
void WriteAngle(float data, float dest, float desto)
vector getmousepos(void)
float CVAR_TYPEFLAG_PRIVATE
Definition menudefs.qc:431
string strzone(string s)
float GECKO_BUTTON_UP
Definition menudefs.qc:376
float MSG_BROADCAST
Definition menudefs.qc:55
float drawcharacter(vector position, float character, vector scale, vector rgb, float alpha, float flag)
float FALSE
Definition menudefs.qc:44
string argv(float n)
string altstr_get(string str, float num)
entity findfloat(entity start,.float field, float match)
void() m_init
float MSG_ALL
Definition menudefs.qc:57
float SLIST_SORTDESCENDING
Definition menudefs.qc:111
float ERR_CANNOTOPEN
Definition menudefs.qc:90
float SLIST_HOSTCACHEVIEWCOUNT
Definition menudefs.qc:104
void search_end(float handle)
float drawstring(vector position, string text, vector scale, vector rgb, float alpha, float flag)
float iscachedpic(string name)
float drawfont
Definition menudefs.qc:137
float CRYPTO_IDSTATUS_SIGNED
Definition menudefs.qc:365
float FILE_WRITE
Definition menudefs.qc:38
float SLIST_MASK_AND
Definition menudefs.qc:124
float KEY_UNKNOWN
Definition menudefs.qc:28
float CS_DISCONNECTED
Definition menudefs.qc:70
void remove(entity e)
float DRAWFLAG_MODULATE
Definition menudefs.qc:78
float CRYPTO_IDSTATUS_UNSIGNED
Definition menudefs.qc:364
string etos(entity e)
float SLIST_MASTERREPLYCOUNT
Definition menudefs.qc:107
float FONT_CENTERPRINT
Definition menudefs.qc:133
vector gecko_get_texture_extent(string name)
prvm_uint_t ofs
prvm_eval_t * src
int i
return position
float f
dp_FragColor b
dp_FragColor rgb
ret a