QuakeC Functions Reference

Click the link to download the current page: Download

Function Name Description Where Example Type Engine
spawnCreates a new entity.Serverentity e = spawn();entityWinQuake, DarkPlaces, FTE
removeRemoves (deletes) an entity from the world.Serverremove(self);entityWinQuake, DarkPlaces, FTE
copyentityCopies all data in the entity to another entity..Servercopyentity(from, to);entityDarkPlaces, FTE
setoriginSets an entity's position.Serversetorigin(self, '0 0 0');entityWinQuake, DarkPlaces, FTE
setmodelAssigns a model to an entity.Serversetmodel(self, "progs/player.mdl");fileWinQuake, DarkPlaces, FTE
setsizeSets the bounding box size of an entity.Serversetsize(self, mins, maxs);entityWinQuake, DarkPlaces, FTE
setcolorSets the color on a client and updates internal color information accordingly (equivalent to stuffing a "color" command but immediate).Serverselfcolor('1 0 0');visualWinQuake, DarkPlaces, FTE
setattachmentAttachs e to a tag on tagentity (note: use "" to attach to entity origin/angles instead of a tag).Serversetattachment(child, parent);entityDarkPlaces, FTE
movetogoalMoves entity toward goal entity.Servermovetogoal(self, dist);aiWinQuake, DarkPlaces, FTE
changepitchChanges entity's pitch toward goal.Serverchangepitch();aiDarkPlaces, FTE
ChangeYawChange the horizontal orientation of self. Turns towards self.ideal_yaw at self.yaw_speed, and sets the global variable current_yaw. ServerChangeYaw();aiWinQuake, DarkPlaces, FTE
walkmoveMoves self in the given direction. Returns FALSE if could not move (used to detect blocked monsters).Serverwalkmove(self.angles_y, speed);aiWinQuake, DarkPlaces, FTE
droptofloorDrops self to the floor, if the floor is less than -256 coordinates below. Returns TRUE if landed on floor.Serverdroptofloor();physicsWinQuake, DarkPlaces, FTE
checkbottomRturns TRUE if on the ground. Used only for jumping monsters that need to jump randomly not to get hung up.Servercheckbottom(self);physicsDarkPlaces, FTE
clienttypeReturns type of connected client.Serverclienttype(self);networkWinQuake, DarkPlaces, FTE
dropclientDisconnects client from server.Serverdropclient(self);networkWinQuake, DarkPlaces, FTE
spawnclientLike spawn, but for client slots (also calls relevant connect/spawn functions), returns world if no clients available.Serverspawnclient();networkWinQuake, DarkPlaces, FTE
checkclientReturns client (or object that has a client enemy) that would be a valid target. If there are more than one valid options, they are cycled each frame. If (self.origin + self.viewofs) is not in the PVS of the target, 0 (FALSE) is returned.Servercheckclient();aiWinQuake, DarkPlaces, FTE
aimReturns a vector along which the entity e can shoot. Usually, e is a player, and the vector returned is calculated by auto aiming to the closest enemy entity.Serveraim(e, missilespeed);aiWinQuake, DarkPlaces, FTE
entityfieldnameReturns the name as a string, eg. "origin" or "classname" or whatever.Serverentityfieldname(ent, fieldIndex);entityDarkPlaces, FTE
entityfieldtypeReturns a value that the constants represent, but the field may be of another type in more exotic progs.dat formats or compilers..Serverentityfieldtype(ent, fieldIndex);entityDarkPlaces, FTE
putentityfieldstringPuts the data returned by getentityfieldstring back into the entity.Serverputentityfieldstring(ent, fieldName, "value");entityDarkPlaces, FTE
getentityfieldstringReturns 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.Servergetentityfieldstring(ent, fieldName);entityDarkPlaces, FTE
wasfreedReturns whether an entity slot is currently free (removed).Serverwasfreed(ent);debugDarkPlaces, FTE
edict_numReturns the entity corresponding to a given number, this works even for freed entities, but you should call wasfreed(ent) to see if is currently active.Serveredict_num(entnum);entityDarkPlaces, FTE
num_for_edictReturns the number of an entity.Servernum_for_edict(num);entityDarkPlaces, FTE
getextresponseGets a response from engine extension.Servergetextresponse("key");engineDarkPlaces, FTE
makestaticMake an entity static to the world, by sending a broadcast message to the network. The entity is then removed from the list of dynamic entities in the world, and it cannot be deleted (until the level ends).Servermakestatic(ent);entityWinQuake, DarkPlaces, FTE
nextentReturns entity that is just after e in the entity list. Useful to browse the list of entities, because it skips the undefined ones.Servernextent(e);entityDarkPlaces, FTE
crashIntentionally crashes (debug).Menucrash();debugDarkPlaces, FTE
stackdumpPrints current stack trace.Menustackdump();debugDarkPlaces, FTE
clientstateReturns the state of a client.Menuclientstate(self);networkDarkPlaces, FTE
clientcountReturns number of connected clients.Menuclientcount();networkDarkPlaces, FTE
tracelinePerforms a line trace (raycast).Servertraceline(start, end, FALSE, self);physicsWinQuake, DarkPlaces, FTE
traceboxSimilar to traceline but much more useful, traces a box of the size specified (technical note: in quake1 and halflife bsp maps the mins and maxs will be rounded up to one of the hull sizes, quake3 bsp does not have this problem, this is the case with normal moving entities as well).Servertracebox(start, end, mins, maxs, self);physicsDarkPlaces, FTE
tracetossSimulates movement of the entity as if it is MOVETYPE_TOSS and starting with it's current state (location, velocity, etc).Server, ClientTraceToss(self, goal);physicsDarkPlaces, FTE
pointcontentsReturns the contents of the area situated at position pos. Used to know if an area is in water, in slime or in lava. Makes use of the BSP tree, and is supposed to be very fast.Serverpointcontents(self.origin);physicsWinQuake, DarkPlaces, FTE
checkpvsReturns true if viewee can be seen from viewpos according to PVS data.Servercheckpvs(vec_viewpos, viewe_ent);physicsDarkPlaces, FTE
movetypesteplandeventThis field function, when provided, is triggered on a MOVETYPE_STEP entity when it experiences "land event".Servermovetypesteplandevent(self);physicsDarkPlaces, FTE
contentstransitionHandles transition between content types.Servercontentstransition(ent);physicsDarkPlaces, FTE
sinSine of angle in degrees.Serversin(90);mathDarkPlaces, FTE
cosCosine of angle in degrees.Servercos(0);mathDarkPlaces, FTE
sqrtSquare root of a number.Serversqrt(4);mathDarkPlaces, FTE
fabsReturns absolute value of val (like the equivalent function in C).Serverfabs(-1.5);mathDarkPlaces, FTE
floorReturns val, rounded up to the integer below (like the equivalent function in C).Serverfloor(1.8);mathDarkPlaces, FTE
ceilReturns val, rounded up to the integer above (like the equivalent function in C).Serverceil(1.2);mathDarkPlaces, FTE
rintRounds to nearest int.Serverrint(1.6);mathDarkPlaces, FTE
powRaises to power.Serverpow(2, 3);mathDarkPlaces, FTE
minReturns the lowest of all the supplied numbers.Servermin(1, 2, ...);mathDarkPlaces, FTE
maxReturns the highest of all the supplied numbers.Servermax(1, 2, ...);mathDarkPlaces, FTE
logNatural logarithm.Serverlog(10);mathDarkPlaces, FTE
modModulus operation.Servermod(10, 3);mathDarkPlaces, FTE
boundClamps the value to the range and returns it.Serverbound(min, val, max);mathDarkPlaces, FTE
randomReturns random float (0-1).Serverrandom();mathWinQuake, DarkPlaces, FTE
randomvecReturns a vector of length < 1, much quicker version of this QC.Serverrandomvec();mathDarkPlaces, FTE
bitshiftMultiplies number by a power of 2 corresponding to quantity (0 = *1, 1 = *2, 2 = *4, 3 = *8, -1 = /2, -2 = /4x, etc), and rounds down (due to integer math) like other bit operations do (& and | and the like).Serverbitshift(1, 2);mathDarkPlaces, FTE
normalizeReturns a vector of length 1.Servernormalize(v);mathDarkPlaces, FTE
vlenReturns vector length.Servervlen(v);mathDarkPlaces, FTE
vectoyawReturns an angle in degrees. Vector to yaw: calculates the yaw angle (bearing) corresponding to a given 3D direction.Servervectoyaw(v);mathDarkPlaces, FTE
vectoanglesVector to angles: calculates the pitch angle (aiming) and yaw angle (bearing) corresponding to a given 3D direction.Servervectoangles(v);mathDarkPlaces, FTE
vectoangles2Variant of vectoangles that takes an up vector to calculate roll angle (also uses this to calculate yaw correctly if the forward is straight up or straight down).Servervectoangles2(forward, up);mathDarkPlaces, FTE
vectorvectorsCreates v_forward, v_right, and v_up vectors given a forward vector, similar to makevectors except it takes a forward direction vector instead of angles.Servervectorvectors(dir);mathDarkPlaces, FTE
makevectorsCalculates v_forward/v_right/v_up from angles.Servermakevectors(self.angles);mathDarkPlaces, FTE
setoriginSets an entity's position.Serversetorigin(self, pos);mathDarkPlaces, FTE
crc16Some 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.Servercrc16(caseinsensitive, str, ...);hashDarkPlaces, FTE
asinReturns angle in radians for a given sin() value, the result is in the range -PI*0.5 to PI*0.5Serverasin(0.5);mathDarkPlaces, FTE
acosReturns angle in radians for a given cos() value, the result is in the range 0 to PI.Serveracos(0.5);mathDarkPlaces, FTE
atanReturns angle in radians for a given tan() value, the result is in the range -PI*0.5 to PI*0.5.Serveratan(1);mathDarkPlaces, FTE
atan2Returns angle in radians for a given cos() and sin() value pair, the result is in the range -PI to PI (this is identical to vectoyaw except it returns radians rather than degrees).Serveratan2(y, x);mathDarkPlaces, FTE
tanReturns tangent value (which is simply sin(a)/cos(a)) for the given angle in radians, the result is in the range -infinity to +infinityServertan(45);mathDarkPlaces, FTE
digest_hexReturns a given hex digest of given data.Serverdigest_hex("MD4", "data", ...);hashDarkPlaces, FTE
strlenReturns length of string.Serverstrlen("text");stringDarkPlaces, FTE
strcatConcatenates strings.Serverstrcat("a", "b");stringDarkPlaces, FTE
substringReturns a section of a string as a tempstring - see FTE_STRINGS for enhanced version.Serversubstring("abc", 1, 1);stringDarkPlaces, FTE
sprintfFormats string with values.Serversprintf("x = %d", 5);stringDarkPlaces, FTE
strlennocolString length without color codes.Serverstrlennocol("^1Red");stringDarkPlaces, FTE
strdecolorizeRemoves color codes from string.Serverstrdecolorize("^1Red");stringDarkPlaces, FTE
strtolowerConverts string to lowercase.Serverstrtolower("ABC");stringDarkPlaces, FTE
strtoupperConverts string to uppercase.Serverstrtoupper("abc");stringDarkPlaces, FTE
strstrofsFinds offset of substring.Serverstrstrofs("abc", "b", 0);stringDarkPlaces, FTE
str2chrGets character from string.Serverstr2chr("abc", 0);stringDarkPlaces, FTE
chr2strConverts character code to string.Serverchr2str(65);stringDarkPlaces, FTE
strconvConverts value to string.Serverstrconv(123);stringDarkPlaces, FTE
strpadPads a string to desired length.Serverstrpad("x", 4, "0", 0);stringDarkPlaces, FTE
strreplaceReplaces substrings.Serverstrreplace("abc", "b", "x");stringDarkPlaces, FTE
strireplaceCase-insensitive replace.Serverstrireplace("abc", "B", "x");stringDarkPlaces, FTE
strcmpCompares two strings.Serverstrcmp("a", "b");stringDarkPlaces, FTE
strncmpCompares up to N characters.Serverstrncmp("abc", "abd", 2);stringDarkPlaces, FTE
strcasecmpCase-insensitive string compare.Serverstrcasecmp("abc", "ABC");stringDarkPlaces, FTE
strncasecmpCase-insensitive compare up to N characters.Serverstrncasecmp("abc", "ABC", 3);stringDarkPlaces, FTE
strftimeFormats timestamp.Serverstrftime(time, "%Y-%m-%d");stringDarkPlaces, FTE
strzoneDuplicates string to memory zone.Serverstrzone("text");stringDarkPlaces, FTE
strunzoneFrees zoned string.Serverstrunzone(str);stringDarkPlaces, FTE
chrReturns ASCII code of character.Serverchr("A");stringDarkPlaces, FTE
buf_createCreates a new buffer.Serverbuf_create();stringDarkPlaces, FTE
buf_delDeletes a buffer.Serverbuf_del(buf);stringDarkPlaces, FTE
buf_getsizeReturns buffer size.Serverbuf_getsize(buf);stringDarkPlaces, FTE
buf_copyCopies one buffer to another.Serverbuf_copy(src, dest);stringDarkPlaces, FTE
buf_sortSorts buffer content.Serverbuf_sort(buf, sortpower, backward);stringDarkPlaces, FTE
buf_implodeJoins buffer elements into string.Serverbuf_implode(buf, ",");stringDarkPlaces, FTE
bufstr_getGets string from buffer.Serverbufstr_get(buf, index);stringDarkPlaces, FTE
bufstr_setSets buffer string at index.Serverbufstr_set(buf, index, "val");stringDarkPlaces, FTE
bufstr_addAdds string to buffer.Serverbufstr_add(buf, "val", order);stringDarkPlaces, FTE
bufstr_freeFrees buffer string memory.Serverbufstr_free(buf, string_index);stringDarkPlaces, FTE
buf_cvarlistFunctions to list cvars and store their names into a stringbuffer cvars that start with pattern but not with antipattern will be stored into the buffer.Serverbuf_cvarlist(buf, pattern, antipattern);stringDarkPlaces, FTE
buf_loadfileAppend each line of file as new buffer string, return 1 if succesful.Serverbuf_loadfile("file.txt", buf);fileDarkPlaces, FTE
buf_writefileWrites buffer strings as lines, returns 1 if succesfulServerbuf_writefile(file_handle, buf_handle, startpos, numstrings);fileDarkPlaces, FTE
bufstr_findReturns string index.Serverbufstr_find(buf, "needle", matchrule, startpos, step);stringDarkPlaces, FTE
matchpatternPattern match test.Servermatchpattern("text", "t*", matchrule);stringDarkPlaces, FTE
matchpatternofsPattern match at offset.Servermatchpatternofs("text", "t*", matchrule, 1);stringDarkPlaces, FTE
stuffcmdSend a command to a given player, as if it had been typed on the player's console.Serverstuffcmd(self, "cmd");cvarDarkPlaces, FTE
localcmdExecute a command on the server, as if it had been typed on the server's console.Serverlocalcmd("sv_gravity 800\n");cvarDarkPlaces, FTE
centerprintSends center print to client.Servercenterprint(self, "Hello");printDarkPlaces, FTE
bprintBroadcast a message to all players on the current server.Serverbprint("Hello all");printDarkPlaces, FTE
sprintSingle client print.Serversprint(self, "Hi");printDarkPlaces, FTE
dprintDebug print.Serverdprint("Debug info");debugDarkPlaces, FTE
eprintPrint details about a given entity (for debug purposes).Servereprint(self);debugDarkPlaces, FTE
printGeneric print.Serverprint("message");printDarkPlaces, FTE
registercommandRegisters new command.Serverregistercommand("mycmd");cvarDarkPlaces, FTE
registercvarAdds a new console cvar to the server console (in singleplayer this is the player's console), the cvar exists until the mod is unloaded or the game quits.Serverregistercvar("sv_test", "1");cvarDarkPlaces, FTE
cvarGets cvar value.Servercvar("sv_gravity");cvarDarkPlaces, FTE
cvar_setSets cvar value.Servercvar_set("sv_gravity", "800");cvarDarkPlaces, FTE
cvar_defstringReturns the default value of a cvar, as a tempstring.Servercvar_defstring("name");cvarDarkPlaces, FTE
cvar_descriptionReturns the description of a cvar.Servercvar_description("name");cvarDarkPlaces, FTE
cvar_stringReturns the value of a cvar, as a tempstring.Servercvar_string("name");cvarDarkPlaces, FTE
cvar_typeGets cvar type (exists, saved, private, engine, hasdescription, readonly).Servercvar_type("name");cvarDarkPlaces, FTE
str_cvarGets string value of a cvar.Serverstr_cvar("sv_gravity");cvarDarkPlaces, FTE
tokenizebyseparatorThis function returns tokens separated by any of the supplied separator strings.Servertokenizebyseparator("a,b", ",");stringDarkPlaces, FTE
tokenize_consoleThis function returns tokens separated just like the console does.Servertokenize_console(str);cvarDarkPlaces, FTE
argv_start_indexReturns the index of the first character of each token in the original string.Serverargv_start_index(i);cvarDarkPlaces, FTE
argv_end_indexReturns the index of the last character of each token in the original string.Serverargv_end_index(i);cvarDarkPlaces, FTE
addstatSets stat index for client.Serveraddstat(1, value);engineDarkPlaces, FTE
setpausePauses the game.Serversetpause(TRUE);cvarDarkPlaces, FTE
coverageReturns code coverage percent.Servercoverage();debugDarkPlaces, FTE
clientcommandSends command to client.Serverclientcommand(self, "say hi");cvarDarkPlaces, FTE
tokenizeSplits string into tokens.Servertokenize("one two");stringDarkPlaces, FTE
argvGets argument from tokenized input.Serverargv(0);cvarDarkPlaces, FTE
cmdGets the input command name.Servercmd();cvarDarkPlaces, FTE
fopenOpens a file inside quake/gamedir/data/ (mode is FILE_READ, FILE_APPEND, or FILE_WRITE), returns fhandle >= 0 if successful, or fhandle < 0 if unable to open file for any reason.Serverfopen("data.txt", "r");fileDarkPlaces, FTE
fcloseCloses an open file handle.Serverfclose(f);fileDarkPlaces, FTE
fgetsReads a line of text from the file and returns as a tempstring.Serverfgets(f);fileDarkPlaces, FTE
fputsWrites a string to file.Serverfputs(f, "text");fileDarkPlaces, FTE
fcopyCopies one file to another.Serverfcopy("a.txt", "b.txt");fileWrath DarkPlaces, FTE
frenameRenames a file.Serverfrename("old.txt", "new.txt");fileWrath DarkPlaces, FTE
fremoveDeletes a file.Serverfremove("file.txt");fileWrath DarkPlaces, FTE
fexistsChecks if a file exists.Serverfexists("data.txt");fileWrath DarkPlaces, FTE
rmtreeDeletes directory and contents.Serverrmtree("folder");fileWrath DarkPlaces, FTE
loadfromdataLoads entity from string.Serverloadfromdata(ent, data);entityDarkPlaces, FTE
loadfromfileLoads entity from file.Serverloadfromfile(ent, "state.dat");entityDarkPlaces, FTE
writetofileWrites entity to file.Serverwritetofile(ent, "state.dat");entityDarkPlaces, FTE
soundPlays sound on an entity.Serversound(self, CHAN_BODY, "weapons/shot.wav", 1, ATTN_NORM);soundDarkPlaces, FTE
precache_soundPreloads a sound file.Serverprecache_sound("misc/hit.wav");soundDarkPlaces, FTE
precache_sound2Same as precache_sound, but only for registered Quake.Serverprecache_sound2("sound.wav", 1);soundDarkPlaces, FTE
ambientsoundAn ambient sound is emitted, from the given position.Serverambientsound(self.origin, "ambience/drip1.wav", 0.5, ATTN_STATIC);soundDarkPlaces, FTE
sound7Advanced sound function.Serversound7(self, CHAN_AUTO, "sound.wav", 1, ATTN_NORM, 0, 0);soundDarkPlaces, FTE
getsoundtimeGet currently sound playing position on entity channel, -1 if not playing or error.Servergetsoundtime("sound.wav");soundDarkPlaces, FTE
soundlengthReturns length of sound sample in seconds, -1 on error (sound not precached, sound system not initialized, etc).Serversoundlength("sound.wav");soundDarkPlaces, FTE
pointsoundPlays sound at position.Server, Clientpointsound("sound.wav", '0 0 0');soundDarkPlaces, FTE
localsoundPlays sound locally.Menulocalsound("misc/menu.wav");soundDarkPlaces, FTE
pointparticlesSpawns particles at point.Serverpointparticles(effectnum, origin);particleDarkPlaces, FTE
trailparticlesSpawns trail particles.Server, Clienttrailparticles(entity, effectnum, start, end);particleDarkPlaces, FTE
particleCreates basic particle effect.Serverparticle(origin, velocity, color, alpha, scale);particleDarkPlaces, FTE
particleeffectnumGets numeric ID of particle effect.Serverparticleeffectnum("effectname");particleDarkPlaces, FTE
effectTriggers particle effect.Servereffect(num, origin);effectDarkPlaces, FTE
te_bloodBlood spray effect.Serverte_blood(origin, velocity, howmany);effectDarkPlaces, FTE
te_bloodshowerCreates an exploding shower of blood, for making gibbings more convincing.Serverte_bloodshower(vec_min, vec_max, speed, howmany);effectDarkPlaces, FTE
te_customflashCreates a customized light flash.Serverte_customflash(origin, radius, lifetime, color);effectDarkPlaces, FTE
te_explosionrgbColored explosion effect.Serverte_explosionrgb(origin, rgb);effectDarkPlaces, FTE
te_flamejetCreates a single puff of flame particles.Serverte_flamejet(origin, velocity, howmany);effectDarkPlaces, FTE
te_particlecubeCreates a cloud of particles, useful for forcefields but quite customizable.Serverte_particlecube(v_min, v_max, vel, howmany, color, gravityflag, randomveljitter);effectDarkPlaces, FTE
te_particlerainRain particle effect.Serverte_particlerain(mins, maxs, vel, howmany, color);effectDarkPlaces, FTE
te_particlesnowSnow particle effect.Serverte_particlesnow(mins, maxs, vel, howmany, color);effectDarkPlaces, FTE
te_plasmaburnPlasma burn effect.Serverte_plasmaburn(origin);effectDarkPlaces, FTE
te_gunshotquadQuad gunshot effect.Serverte_gunshotquad(origin);effectDarkPlaces, FTE
te_spikequadQuad spike impact effect.Serverte_spikequad(origin);effectDarkPlaces, FTE
te_superspikequadQuad superspike effect.Serverte_superspikequad(origin);effectDarkPlaces, FTE
te_explosionquadQuad explosion effect.Serverte_explosionquad(origin);effectDarkPlaces, FTE
te_smallflashSmall flash effect.Serverte_smallflash(origin);effectDarkPlaces, FTE
te_sparkSpark effect.Serverte_spark(origin, velocity, howmany);effectDarkPlaces, FTE
te_gunshotGunshot effect.Serverte_gunshot(origin);effectDarkPlaces, FTE
te_spikeSpike impact effect.Serverte_spike(origin);effectDarkPlaces, FTE
te_superspikeSuperspike impact effect.Serverte_superspike(origin);effectDarkPlaces, FTE
te_explosionStandard explosion effect.Serverte_explosion(origin);effectDarkPlaces, FTE
te_tarexplosionTAR explosion effect.Serverte_tarexplosion(origin);effectDarkPlaces, FTE
te_wizspikeWizard spike effect.Serverte_wizspike(origin);effectDarkPlaces, FTE
te_knightspikeKnight spike effect.Serverte_knightspike(origin);effectDarkPlaces, FTE
te_lavasplashLava splash effect.Serverte_lavasplash(origin);effectDarkPlaces, FTE
te_teleportTeleport flash effect.Serverte_teleport(origin);effectDarkPlaces, FTE
te_explosion2Alternate explosion effect.Serverte_explosion2(origin, color, colorlength);effectDarkPlaces, FTE
te_lightning1Lightning bolt type 1.Serverte_lightning1(owner_ent, start, end);effectDarkPlaces, FTE
te_lightning2Lightning bolt type 2.Serverte_lightning2(owner_ent, start, end);effectDarkPlaces, FTE
te_lightning3Lightning bolt type 3.Serverte_lightning3(owner_ent, start, end);effectDarkPlaces, FTE
te_beamDraws a beam effect.Serverte_beam(owner_ent, start, end);effectDarkPlaces, FTE
skel_createCreate a skeleton (be sure to assign this value into .skeletonindex for use), returns skeleton index (1 or higher) on success, returns 0 on failure (for example if the modelindex is not skeletal), it is recommended that you create a new skeleton if you change modelindex, as the skeleton uses the hierarchy from the model.Serverskel_create(modlindex);skeletonDarkPlaces, FTE
skel_buildBlend in a percentage of standard animation, 0 replaces entirely, 1 does nothing, 0.5 blends half, etc, and this only alters the bones in the specified range for which out of bounds values like 0,100000 are safe (uses .frame, .frame2, .frame3, .frame4, .lerpfrac, .lerpfrac3, .lerpfrac4, .frame1time, .frame2time, .frame3time, .frame4time), returns skel on success, 0 on failure.Serverskel_build(skel, ent, modlindex, retainfrac, firstbone, lastbone);skeletonDarkPlaces, FTE
skel_get_numbonesReturns how many bones exist in the created skeleton, 0 if skeleton does not exist.Serverskel_get_numbones(skel);skeletonDarkPlaces, FTE
skel_get_bonenameReturns name of bone (as a tempstring), "" if invalid bonenum (< 1 for example) or skeleton does not exist.Serverskel_get_bonename(skel, index);skeletonDarkPlaces, FTE
skel_get_boneparentReturns parent num for supplied bonenum, 0 if bonenum has no parent or bone does not exist (returned value is always less than bonenum, you can loop on this).Serverskel_get_boneparent(skel, bonenum);skeletonDarkPlaces, FTE
skel_find_boneGet number of bone with specified name, 0 on failure, bonenum (1-based) on success, same as using gettagindex but takes modelindex instead of entity.Serverskel_find_bone(skel, "Bone");skeletonDarkPlaces, FTE
skel_get_bonerelGet matrix of bone in skeleton relative to its parent - sets v_forward, v_right, v_up, returns origin (relative to parent bone).Serverskel_get_bonerel(skel, bonenum);skeletonDarkPlaces, FTE
skel_get_boneabsGet matrix of bone in skeleton in model space - sets v_forward, v_right, v_up, returns origin (relative to entity).Serverskel_get_boneabs(skel, bonenum);skeletonDarkPlaces, FTE
skel_set_boneSet matrix of bone relative to its parent, reads v_forward, v_right, v_up, takes origin as parameter (relative to parent bone).Serverskel_set_bone(skel, bonenum, org);skeletonDarkPlaces, FTE
skel_mul_boneTransform bone matrix (relative to its parent) by the supplied matrix in v_forward, v_right, v_up, takes origin as parameter (relative to parent bone).Serverskel_mul_bone(skel, bonenum, org);skeletonDarkPlaces, FTE
skel_mul_bonesTransform bone matrices (relative to their parents) by the supplied matrix in v_forward, v_right, v_up, takes origin as parameter (relative to parent bones).Serverskel_mul_bones(skel, startbone, endbone, org);skeletonDarkPlaces, FTE
skel_copybonesCopy bone matrices (relative to their parents) from one skeleton to another, useful for copying a skeleton to a corpseServerskel_copybones(skeldst, skelsrc, startbone, endbone);skeletonDarkPlaces, FTE
skel_deleteDeletes skeleton at the beginning of the next frame (you can add the entity, delete the skeleton, renderscene, and it will still work).Serverskel_delete(skel);skeletonDarkPlaces, FTE
framefornameFinds number of a specified frame in the animation, returns -1 if no match found.Serverframeforname(modlindex, "idle");skeletonDarkPlaces, FTE
framedurationReturns the intended play time (in seconds) of the specified framegroup, if it does not exist the result is 0, if it is a single frame it may be a small value around 0.1 or 0.Serverframeduration(modlindex, framenum);skeletonDarkPlaces, FTE
WriteByteWrites a byte to the message buffer.ServerWriteByte(client, 255);networkDarkPlaces, FTE
WriteCharWrites a character to the message buffer.ServerWriteChar(client, 'A');networkDarkPlaces, FTE
WriteShortWrites a short integer to the buffer.ServerWriteShort(client, 300);networkDarkPlaces, FTE
WriteLongWrites a long integer to the buffer.ServerWriteLong(client, 65536);networkDarkPlaces, FTE
WriteCoordWrites a coordinate (float) to the buffer.ServerWriteCoord(client, self.origin_x);networkDarkPlaces, FTE
WriteAngleThis function writes a single byte, that represents 256 * (angle / 380).ServerWriteAngle(client, self.angles_y);networkDarkPlaces, FTE
WriteStringWrites a null-terminated string.ServerWriteString(client, "hello\n");networkDarkPlaces, FTE
WriteUnterminatedStringWrites a string without null-termination.ServerWriteUnterminatedString(client, "hi");networkDarkPlaces, FTE
WriteEntityThis function writes an entity reference, taking two bytes.ServerWriteEntity(client, self);networkDarkPlaces, FTE
WriteFloatWrites a float value.ServerWriteFloat(client, 1.23);networkDarkPlaces, FTE
WritePictureWrites an image to a client.ServerWritePicture(client, "img.tga", size);fileDarkPlaces, FTE
SendEntitySends entity state over network.ServerSendEntity(self);networkDarkPlaces, FTE
etosPrints "entity 1" or similar into a string. (this was a Q2 builtin).Serveretos(self);conversionDarkPlaces, FTE
stofGet numerical value from a string.Serverstof("1.5");conversionDarkPlaces, FTE
etofEntity to float (edict index).Menuetof(self);conversionDarkPlaces, FTE
ftoeFloat to entity (edict).Menuftoe(1);conversionDarkPlaces, FTE
stovString to vector.Serverstov("1 2 3");conversionDarkPlaces, FTE
ftosFloat to string.Serverftos(3.14);conversionDarkPlaces, FTE
vtosVector to string.Servervtos('1 2 3');conversionDarkPlaces, FTE
sprintfFormats string.Serversprintf("x = %d", 5);stringDarkPlaces, FTE
errorTriggers a fatal error.Servererror("Something went wrong");debugDarkPlaces, FTE
objerrorAborts current object with error.Serverobjerror("Invalid use");debugDarkPlaces, FTE
coredumpTriggers a coredump for debugging.Servercoredump();debugDarkPlaces, FTE
traceonEnables function tracing.Servertraceon();debugDarkPlaces, FTE
traceoffDisables function tracing.Servertraceoff();debugDarkPlaces, FTE
changelevelChanges to another level.Serverchangelevel("start");engineDarkPlaces, FTE
precache_modelPreloads a model.Serverprecache_model("progs/weapon.mdl");fileDarkPlaces, FTE
precache_model2Preloads model only for purchased Quake.Serverprecache_model2("model.mdl", 1);fileDarkPlaces, FTE
precache_filePreloads a file.Serverprecache_file("maps/test.bsp");fileDarkPlaces, FTE
precache_file2Preloads file for purchased Quake.Serverprecache_file2("file.txt", 1);fileDarkPlaces, FTE
infoaddSets or adds a key/value pair to an infostring - note: forbidden characters are \ and "Serverinfoadd("key1\nval1\n", "key2", "val2");stringDarkPlaces, FTE
infogetGets a key/value pair in an infostring, returns value or null if not found.Serverinfoget("key\nvalue", "key");stringDarkPlaces, FTE
callfunctionCalls a function by pointer.Server, Client, Menucallfunction(func);engineDarkPlaces, FTE
isfunctionChecks if value is a function pointer.Serverisfunction(function_name);engineDarkPlaces, FTE
parseentitydataParses entity data.Serverparseentitydata(entity, "worldspawn { }");entityDarkPlaces, FTE
gettimeGets the current time.Server, Client, Menugettime();engineDarkPlaces, FTE
gettagindexGets model tag index.Servergettagindex(model, "tag");modelDarkPlaces, FTE
gettaginfoGets model tag transform.Servergettaginfo(entity, tag);modelDarkPlaces, FTE
whichpackFor files in a pak/pk3, returns the pack's file name in FRIK_FILE name space.Serverwhichpack("maps/start.bsp");fileDarkPlaces, FTE
checkextensionChecks for engine extension.Server, Client, Menucheckextension("DP_SV_SETCOLOR");engineDarkPlaces, FTE
setspawnparmsset parm1... to the values at level start for coop respawn. Restore the original spawn parameters of a client entity. Doesn't work if client is not a player.Serversetspawnparms(client);entityWinQuake, DarkPlaces, FTE
search_packfile_beginExtension 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).Serversearch_packfile_begin("id1/pak0.pak", "*.mdl");fileDarkPlaces, FTE
search_beginPerforms 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).Serversearch_begin("maps/*.bsp");fileDarkPlaces, FTE
search_endFrees a search slot (also done at progs reload).Serversearch_end();fileDarkPlaces, FTE
search_getsizeReturns how many filenames were found.Serversearch_getsize();fileDarkPlaces, FTE
search_getfilenameReturns a filename from the search.Serversearch_getfilename();fileDarkPlaces, FTE
findWhere: start = beginning of list to search (world, for the beginning of list); field = entity field that must be examined (ex: targetname); match = value that must be matched (ex: other.target). Returns the entity found, or world if no entity was found. Searches the server entity list beginning at start, looking for an entity that has entity.field = matchServerfind(start, field, value);entityDarkPlaces, FTE
findradiusWhere: origin = origin of sphere; radius = radius of sphere. Returns a chain of entities that have their origins within a spherical area. The entity returned is e, and the next in the chain is e.chain, until e == FALSE. Typical usage: find and harm the victims of an explosion.Serverfindradius(origin, radius);entityDarkPlaces, FTE
findchainSimilar to find() but returns a chain of entities like findradius.Serverfindchain(field, match);entityDarkPlaces, FTE
findradius_tofieldSimilar to findchain() etc, but stores the chain into .tofield instead of .chain.Serverfindradius_tofield(origin, radius, field);entityDarkPlaces, FTE
findchain_tofieldSimilar to findchain() etc, but stores the chain into .tofield instead of .chain.Serverfindchain_tofield(field, value);entityDarkPlaces, FTE
findchainflags_tofieldSimilar to findchain() etc, but stores the chain into .tofield instead of .chain.Serverfindchainflags_tofield(field, flags);entityDarkPlaces, FTE
findchainfloat_tofieldSimilar to findchain() etc, but stores the chain into .tofield instead of .chain.Serverfindchainfloat_tofield(field, value);entityDarkPlaces, FTE
findchainflagsSimilar to findflags() but returns a chain of entities like findradius.Serverfindchainflags(flags);entityDarkPlaces, FTE
findchainentitySimilar to findentity()/findfloat() but returns a chain of entities like findradius.Serverfindchainentity(type);entityDarkPlaces, FTE
findchainfloatSimilar to findentity()/findfloat() but returns a chain of entities like findradius.Serverfindchainfloat(field, value);entityDarkPlaces, FTE
findflagsFinds an entity with the specified flag set in the field, similar to find().Serverfindflags(flags);entityDarkPlaces, FTE
findentityFinds an entity, similar to find(), but for entity and float fields.Serverfindentity(index);entityDarkPlaces, FTE
findfloatFinds an float field value, similar to find(), but for entity and float fields.Serverfindfloat(field, value);entityDarkPlaces, FTE
findchainstringFinds entities by string field match.Menufindchainstring(field, "value");entityDarkPlaces, FTE
uri_escapeEscapes URI components.Serveruri_escape("hello world");stringDarkPlaces, FTE
uri_unescapeUnescapes URI components.Serveruri_unescape("hello%20world");stringDarkPlaces, FTE
uri_getPerforms HTTP GET request.Serveruri_get("http://example.com", id);networkDarkPlaces, FTE
uri_postPerforms HTTP POST request.Serveruri_post("http://example.com", id, "application/json", "data=1");networkDarkPlaces, FTE
uri_postbufPOST request with buffer.Serveruri_postbuf("http://example.com", id, "application/json", delim, buf);networkDarkPlaces, FTE
URI_Get_CallbackMandatory callback for all http requestsServervoid(float id, float status, string data) URI_Get_Callback;networkDarkPlaces, FTE
getsurfacepointGets a point on a surface by index.Servergetsurfacepoint(entity, surfIndex, pointIndex);surfaceDarkPlaces, FTE
getsurfacenumpointsReturns number of points on a surface.Servergetsurfacenumpoints(entity, surfIndex);surfaceDarkPlaces, FTE
getsurfacetextureGets texture name of a surface.Servergetsurfacetexture(entity, surfIndex);surfaceDarkPlaces, FTE
getsurfacenormalGets normal vector of a surface.Servergetsurfacenormal(entity, surfIndex);surfaceDarkPlaces, FTE
getsurfaceclippedpointGets clipped point on surface.Servergetsurfaceclippedpoint(entity, surfIndex, point);surfaceDarkPlaces, FTE
getsurfacetriangleGets triangle data from a surface.Servergetsurfacetriangle(entity, surfIndex, triIndex);surfaceDarkPlaces, FTE
getsurfacenumtrianglesReturns number of triangles on surface.Servergetsurfacenumtriangles(entity, surfIndex);surfaceDarkPlaces, FTE
getsurfacepointattributeGets attribute (e.g. texcoord) of a surface point.Servergetsurfacepointattribute(entity, surfIndex, pointIndex, "texcoord");surfaceDarkPlaces, FTE
getsurfacenearpointFinds nearest point on surface to given position.Servergetsurfacenearpoint(entity, position);surfaceDarkPlaces, FTE
getlightReturns the color of lighting at the requested location.Servergetlight(position);engineDarkPlaces, FTE
getlight2Same as getlight, but you may specify what type of lights you want.Servergetlight2(position, LP_RTWORLD);engineDarkPlaces, FTE
getentityAllows to query parms from render entities, especially useful with attaching CSQC ents to server entities networked and interpolated by engine (monsters, players), number of entity is it's SVQC number you can send it via tempentity/CSQC entity message.Servergetentity(index);entityDarkPlaces, FTE
getentityvecGets vector field of entity by index.Servergetentityvec(index, "origin");entityDarkPlaces, FTE
clearsceneCSQC builtin to clear the scene of all entities / reset our view properties.Clientclearscene();renderDarkPlaces, FTE
addentitiesAdds entities with these rendermask field var's to our view.Clientaddentities(MASK_NORMAL | MASK_ENGINE | MASK_ENGINEVIEWMODELS);renderDarkPlaces, FTE
addentityAdds a single entity to the scene.Clientaddentity(entity);renderDarkPlaces, FTE
setpropertySets a render property on entity.Clientsetproperty(VF_DRAWWORLD, 1);renderDarkPlaces, FTE
getpropertyGets a scalar render property.Clientgetproperty(VF_DRAWWORLD);renderDarkPlaces, FTE
getpropertyvecGets a vector render property.Clientgetpropertyvec(MASK_ENGINEVIEWMODELS);renderDarkPlaces, FTE
rendersceneRenders the composed client scene.Clientrenderscene();renderDarkPlaces, FTE
adddynamiclightAdds a dynamic light.Clientadddynamiclight(pos, radius, color);renderDarkPlaces, FTE
adddynamiclight2Adds a dynamic light with more parameters.Clientadddynamiclight2(pos, radius, color, style, cubemap, pflags);renderDarkPlaces, FTE
R_BeginPolygonStarts a polygon definition.ClientR_BeginPolygon("texture.tga", DRAWFLAG_NORMAL);renderDarkPlaces, FTE
R_PolygonVertexAdds a vertex to the polygon.ClientR_PolygonVertex(pos, texcoord, color, alpha);renderDarkPlaces, FTE
R_EndPolygonFinishes polygon definition.ClientR_EndPolygon();renderDarkPlaces, FTE
cs_unprojectConverts screen to world coordinates (S2W).Clientcs_unproject(x, y);renderDarkPlaces, FTE
cs_projectConverts world to screen coordinates (W2S).Clientcs_project(pos);renderDarkPlaces, FTE
drawlineDraws a 2D line on screen.Clientdrawline(width, pos1, pos2, color, alpha, flag);drawDarkPlaces, FTE
iscachedpicChecks if image is loaded in memory.Clientiscachedpic("pic.tga");drawDarkPlaces, FTE
precache_picPreloads an image for drawing.Clientprecache_pic("image.tga");drawDarkPlaces, FTE
precache_cubemapPreloads a cubemap texture.Clientprecache_cubemap("cubemaps/237nx.tga");drawDarkPlaces, FTE
draw_getimagesizeGets dimensions of an image.Clientdraw_getimagesize("pic.tga");drawDarkPlaces, FTE
freepicFrees cached image.Clientfreepic("pic.tga");drawDarkPlaces, FTE
drawcharacterDraws a single character.Clientdrawcharacter(pos, char, scale, color, alpha, flag);drawDarkPlaces, FTE
drawstringDraws a string on screen.Clientdrawstring(pos, "text", scale, color, alpha, flag);drawDarkPlaces, FTE
drawpicDraws an image.Clientdrawpic(pos, "image.tga", size, color, alpha, flag);drawDarkPlaces, FTE
drawfillDraws a filled box.Clientdrawfill(pos1, size, color, alpha, flag);drawDarkPlaces, FTE
drawsetclipareaSets a screen clip area.Clientdrawsetcliparea(x, y, w, h);drawDarkPlaces, FTE
drawresetclipareaClears clip area restriction.Clientdrawresetcliparea();drawDarkPlaces, FTE
drawcolorcodedstringDraws colored string with ^ codes.Clientdrawcolorcodedstring(pos, "^1Red", scale, alpha, flag);drawDarkPlaces, FTE
drawcolorcodedstring2Draws colored string with clipping.Clientdrawcolorcodedstring2(pos, "^2Green", scale, color, alpha, flag);drawDarkPlaces, FTE
drawsubpicDraws a portion of an image.Clientdrawsubpic(pos, size, "pic.tga", srcPos, srcSize, color, alpha, flag);drawDarkPlaces, FTE
getstatfGets float from a stat.Clientgetstatf(stat_number);statsDarkPlaces, FTE
getstatiGets integer from a stat.Clientgetstati(stat_number);statsDarkPlaces, FTE
getstatsGets string from a stat.Clientgetstats(stat_number);statsDarkPlaces, FTE
setmodelindexSets model index.Clientsetmodelindex(entity, index);modelDarkPlaces, FTE
modelnameforindexGets model name by index.Clientmodelnameforindex(1);modelDarkPlaces, FTE
numentityfieldsGets number of fields on entity.Clientnumentityfields(entity);entityDarkPlaces, FTE
keynumtostringGets key name from key code.Clientkeynumtostring(13);inputDarkPlaces, FTE
stringtokeynumGets key code from key name.Clientstringtokeynum("ENTER");inputDarkPlaces, FTE
getkeybindGets binding for key.Clientgetkeybind("F1");inputDarkPlaces, FTE
setcursormodeSets mouse cursor mode.Clientsetcursormode(1);inputDarkPlaces, FTE
getmouseposGets mouse position.Clientgetmousepos();inputDarkPlaces, FTE
getinputstateGets key/button input state.Clientgetinputstate("MOUSE1");inputDarkPlaces, FTE
setsensitivityscaleScales mouse sensitivity.Clientsetsensitivityscale(0.5);inputDarkPlaces, FTE
runstandardplayerphysicsExecutes standard movement logic.Clientrunstandardplayerphysics();physicsDarkPlaces, FTE
getplayerkeyvalueGets a player config key.Clientgetplayerkeyvalue(self, "name");networkDarkPlaces, FTE
isdemoReturns true if demo is playing.Clientisdemo();engineDarkPlaces, FTE
isserverReturns true if client is also server.Clientisserver();engineDarkPlaces, FTE
SetListenerSets the audio listener entity.ClientSetListener(self);soundDarkPlaces, FTE
serverkeyGets server-specific info string.Clientserverkey("version");networkDarkPlaces, FTE
entitybyindexReturns entity by index.Cliententitybyindex(0);entityDarkPlaces, FTE
getkeybind_bindmapGets bind from specific bindmap.Clientgetkeybind_bindmap("F1", 0);inputDarkPlaces, FTE
setkeybind_bindmapBinds key in specific bindmap.Clientsetkeybind_bindmap("F1", "+show", 0);inputDarkPlaces, FTE
getbindmapsGets active bindmaps.Clientgetbindmaps();inputDarkPlaces, FTE
setbindmapsSets active bindmaps.Clientsetbindmaps(bm);inputDarkPlaces, FTE
findkeysforcommandFinds keys bound to a command.Clientfindkeysforcommand("toggleconsole", 0);inputDarkPlaces, FTE
V_CalcRefdefUse this on the player entity after performing prediction.ClientV_CalcRefdef();renderDarkPlaces, FTE
setkeydestSets input destination.Clientsetkeydest("menu");inputDarkPlaces, FTE
getkeydestGets current key destination.Clientgetkeydest();inputDarkPlaces, FTE
setmousetargetSets mouse target entity.Clientsetmousetarget(self);inputDarkPlaces, FTE
getmousetargetGets current mouse target.Clientgetmousetarget();inputDarkPlaces, FTE
getresolutionGets screen resolution.Clientgetresolution();engineDarkPlaces, FTE
gethostcachevalueGets host list value.Clientgethostcachevalue(0, "name");networkDarkPlaces, FTE
gethostcachestringGets full host cache as string.Clientgethostcachestring();networkDarkPlaces, FTE
netaddress_resolveResolves hostname to IP.Clientnetaddress_resolve("example.com");networkDarkPlaces, FTE
ReadByteReads byte from network message.ClientReadByte();networkDarkPlaces, FTE
ReadCharReads char from network message.ClientReadChar();networkDarkPlaces, FTE
ReadShortReads short from network message.ClientReadShort();networkDarkPlaces, FTE
ReadLongReads long from network message.ClientReadLong();networkDarkPlaces, FTE
ReadCoordReads float coordinate.ClientReadCoord();networkDarkPlaces, FTE
ReadAngleReads float angle.ClientReadAngle();networkDarkPlaces, FTE
ReadStringReads null-terminated string.ClientReadString();networkDarkPlaces, FTE
ReadFloatReads float value.ClientReadFloat();networkDarkPlaces, FTE
ReadPictureReads image data from message.ClientReadPicture();networkDarkPlaces, FTE
findfontFinds font by fontname and return it's index.Menufindfont("conchars");uiDarkPlaces, FTE
loadfontLoads a font into memory.Menuloadfont("fontname", fontmaps, sizes, sltot, fix_scale, fix_voffset);uiDarkPlaces, FTE
stringwidthGet a width of string with given font and char size.Menustringwidth("text");uiDarkPlaces, FTE
stringwidth_menuSame as stringwidth, but in menu.dat it has different builtin #.Menustringwidth_menu("text", fonthandle);uiDarkPlaces, FTE
crypto_getkeyfpRetrieves the cached host key's CA fingerprint of a server given by IP address.Menucrypto_getkeyfp("key");cryptoDarkPlaces, FTE
crypto_getidfpRetrieves the cached host key fingerprint of a server given by IP address.Menucrypto_getidfp("id");cryptoDarkPlaces, FTE
crypto_getidstatusRetrieves the cached host key's key status. See below for CRYPTO_IDSTATUS_ defines.Menucrypto_getidstatus("id");cryptoDarkPlaces, FTE
crypto_getencryptlevel0 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.Menucrypto_getencryptlevel();cryptoDarkPlaces, FTE
crypto_getmykeyfpRetrieves 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.Menucrypto_getmykeyfp();cryptoDarkPlaces, FTE
crypto_getmyidfpRetrieves the ID fingerprint of a given CA slot, or "" if slot is unused but more to come, or string_null if end of list.Menucrypto_getmyidfp();cryptoDarkPlaces, FTE
crypto_getmyidstatusRetrieves 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.Menucrypto_getmyidstatus();cryptoDarkPlaces, FTE
crypto_uri_postbufEncrypts and posts a URI buffer using crypto. Use -1 as buffer handle to justs end delim as postdataMenucrypto_uri_postbuf(uri, data);cryptoDarkPlaces, FTE
gecko_createCreates a Gecko web control.Menugecko_create("id", "about:blank");uiDarkPlaces, FTE
gecko_destroyDestroys a Gecko control.Menugecko_destroy("id");uiDarkPlaces, FTE
gecko_navigateNavigates to a URL.Menugecko_navigate("id", "http://example.com");uiDarkPlaces, FTE
gecko_keyeventSends key input to Gecko.Menugecko_keyevent("id", keynum, isdown);uiDarkPlaces, FTE
gecko_mousemoveMoves cursor within Gecko.Menugecko_mousemove("id", x, y);uiDarkPlaces, FTE
gecko_resizeResizes a Gecko window.Menugecko_resize("id", width, height);uiDarkPlaces, FTE
gecko_get_texture_extentGets dimensions of Gecko texture.Menugecko_get_texture_extent("id");uiDarkPlaces, FTE
validstringChecks if string is valid.Menuvalidstring("hello");stringDarkPlaces, FTE
altstr_countReturns count of entries in altstr.Menualtstr_count("listname");stringDarkPlaces, FTE
altstr_prepareInitializes altstr table.Menualtstr_prepare("listname", size);stringDarkPlaces, FTE
altstr_getGets string from altstr index.Menualtstr_get("listname", index);stringDarkPlaces, FTE
altstr_setSets string in altstr index.Menualtstr_set("listname", index, "value");stringDarkPlaces, FTE
altstr_insInserts string into altstr at index.Menualtstr_ins("listname", index, "value");stringDarkPlaces, FTE
resethostcachemasksClears all filters/masks on the server browser host cache.Menuresethostcachemasks();serverbrowserDarkPlaces, FTE
sethostcachemaskstringSets a string-based filter on the host cache.Menusethostcachemaskstring("map", "dm6");serverbrowserDarkPlaces, FTE
sethostcachemasknumberSets a numeric filter on the host cache.Menusethostcachemasknumber("ping", 100);serverbrowserDarkPlaces, FTE
resorthostcacheResorts the host cache list using active filters and sorting mode.Menuresorthostcache();serverbrowserDarkPlaces, FTE
sethostcachesortSets the sort key for the host cache list.Menusethostcachesort("ping");serverbrowserDarkPlaces, FTE
refreshhostcacheRequests a refresh of the server browser host list.Menurefreshhostcache();serverbrowserDarkPlaces, FTE
gethostcachenumberReturns the number of servers in the cache.Menugethostcachenumber();serverbrowserDarkPlaces, FTE
gethostcacheindexforkeyGets the index of the server that has a given key/value.Menugethostcacheindexforkey("name", "My Server");serverbrowserDarkPlaces, FTE
addwantedhostcachekeyAdds a custom key to track in the server list.Menuaddwantedhostcachekey("mod");serverbrowserDarkPlaces, FTE
netaddress_resolveResolves a hostname to an IP address.Menunetaddress_resolve("example.com");networkDarkPlaces, FTE
getgamedirinfoRetrieves metadata about the current game/mod directory.Menugetgamedirinfo();engineDarkPlaces, FTE