568 float DEG2RAD = 0.0174532925199432957692369076848861271344287188854172545609719144;
569 float RAD2DEG = 57.2957795130823208767981548141051703324054724665643215491602438612;
570 float PI = 3.1415926535897932384626433832795028841971693993751058209749445923;
572 float(
float s) asin = #471;
573 float(
float c) acos = #472;
574 float(
float t) atan = #473;
575 float(
float c,
float s) atan2 = #474;
576 float(
float a) tan = #475;
636 float(
float caseinsensitive,
string s, ...) crc16 =
#494; 678 string(
string digest,
string data, ...) digest_hex =
#639; 706 float() numentityfields =
#496; 707 string(
float fieldnum) entityfieldname = #497;
708 float(
float fieldnum) entityfieldtype = #498;
709 string(
float fieldnum,
entity ent) getentityfieldstring = #499;
710 float(
float fieldnum,
entity ent,
string s) putentityfieldstring = #500;
758 entity(.
string fld,
string match) findchain = #402;
766 entity(.
string fld,
float match, .
entity tofield) findradius_tofield = #22;
767 entity(.
string fld,
string match, .
entity tofield) findchain_tofield = #402;
768 entity(.
string fld,
float match, .
entity tofield) findchainflags_tofield = #450;
769 entity(.
string fld,
float match, .
entity tofield) findchainfloat_tofield = #403;
834 float(
entity e,
float s) getsurfacenumpoints = #434;
835 vector(
entity e,
float s,
float n) getsurfacepoint = #435;
855 vector(
entity e,
float s,
float n,
float a) getsurfacepointattribute = #486;
864 float(
entity e,
float s) getsurfacenumtriangles = #628;
865 vector(
entity e,
float s,
float n) getsurfacetriangle = #629;
945 float log(
float f) = #532;
953 float(
float a,
float b, ...)
min =
#94; 954 float(
float a,
float b,
float c) min3 = #94;
955 float(
float a,
float b,
float c,
float d) min4 = #94;
956 float(
float a,
float b,
float c,
float d,
float e) min5 = #94;
957 float(
float a,
float b,
float c,
float d,
float e,
float f) min6 = #94;
958 float(
float a,
float b,
float c,
float d,
float e,
float f,
float g) min7 = #94;
959 float(
float a,
float b,
float c,
float d,
float e,
float f,
float g,
float h) min8 = #94;
960 float(
float a,
float b, ...)
max =
#95; 961 float(
float a,
float b,
float c) max3 = #95;
962 float(
float a,
float b,
float c,
float d) max4 = #95;
963 float(
float a,
float b,
float c,
float d,
float e) max5 = #95;
964 float(
float a,
float b,
float c,
float d,
float e,
float f) max6 = #95;
965 float(
float a,
float b,
float c,
float d,
float e,
float f,
float g) max7 = #95;
966 float(
float a,
float b,
float c,
float d,
float e,
float f,
float g,
float h) max8 = #95;
967 float(
float minimum,
float val,
float maximum)
bound = #96;
1017 string(
string format, ...) sprintf =
#627; 1045 string(
float uselocaltime,
string format, ...) strftime =
#478; 1066 float(
string s) strlennocol = #476;
1067 string(
string s) strdecolorize = #477;
1075 string(
string s) strtolower = #480;
1076 string(
string s) strtoupper = #481;
1181 string(
string filename) whichpack = #503;
1191 string(
string in) uri_escape = #510;
1192 string(
string in) uri_unescape = #511;
1207 float(
string url,
float id) uri_get = #513;
1215 float(
string url,
float id,
string content_type,
string data) uri_post = #513;
1216 float(
string url,
float id,
string content_type,
string delim,
float buf) uri_postbuf = #513;
1324 float(
entity e,
float channel) getsoundtime = #533;
1325 float(
string sample) soundlength = #534;
1393 entity() spawnclient =
#454; // like spawn but for client slots (also calls relevant connect/spawn functions), returns world if no clients available 1471 .float() customizeentityforclient;
1546 void(
vector org,
string modelname,
float startframe,
float endframe,
float framerate) effect = #404;
1557 .void(
float nOriginalContents,
float nNewContents) contentstransition;
1567 .void(
vector vImpactVelocity) movetypesteplandevent;
1773 void(
entity e,
float physics_enabled) physics_enable = #540;
1783 void(
string s, ...)
print =
#339; // same number as in EXT_CSQC 1838 void(
float to,
string s,
float sz) WritePicture = #501;
1853 void(
float to,
string s) WriteUnterminatedString = #456;
1878 void(
vector mincorner,
vector maxcorner,
float explosionspeed,
float howmany) te_bloodshower = #406;
1939 void(
vector mincorner,
vector maxcorner,
vector vel,
float howmany,
float color,
float gravityflag,
float randomveljitter) te_particlecube = #408;
2056 void(
vector org,
float color,
float colorlength) te_explosion2 = #427;
2128 float(
float number,
float quantity) bitshift = #218;
2138 float(
string filename,
float mode)
fopen = #110;
2141 void(
float fhandle,
string s, ...)
fputs =
#113; // writes a line of text to the end of the file 2143 string(
string s1,
string s2, ...)
strcat =
#115; // concatenates two or more strings (for example "abc", "def" would return "abcdef") and returns as a tempstring 2146 string(
string s, ...)
strzone =
#118; // makes a copy of a string into the string zone and returns it, this is often used to keep around a tempstring for longer periods of time (tempstrings are replaced often) 2167 float(
float modlindex) skel_create = #263;
2168 float(
float skel,
entity ent,
float modlindex,
float retainfrac,
float firstbone,
float lastbone) skel_build = #264;
2169 float(
float skel) skel_get_numbones = #265;
2170 string(
float skel,
float bonenum) skel_get_bonename = #266;
2178 void(
float skeldst,
float skelsrc,
float startbone,
float endbone) skel_copybones = #274;
2179 void(
float skel) skel_delete = #275;
2180 float(
float modlindex,
string framename) frameforname = #276;
2181 float(
float modlindex,
float framenum) frameduration = #277;
2220 float(
float skel,
float bonenum,
string g1,
string g2,
string g3,
string g4,
string g5,
string g6) example_skel_findbonegroup =
2222 local
string bonename;
2223 while (bonenum >= 0)
2225 bonename = skel_get_bonename(skel, bonenum);
2226 if (bonename == g1)
return 1;
2227 if (bonename == g2)
return 2;
2228 if (bonename == g3)
return 3;
2229 if (bonename == g4)
return 4;
2230 if (bonename == g5)
return 5;
2231 if (bonename == g6)
return 6;
2237 void() example_skel_player_setup =
2239 self.skeletonindex = skel_create(
self.
modelindex);
2243 void(
float animmodelindex,
float framegroup,
float framegroupstarttime) example_skel_player_update_begin =
2246 self.frame = framegroup;
2250 self.frame1time = framegroupstarttime;
2251 self.frame2time = 0;
2252 self.frame3time = 0;
2253 self.frame4time = 0;
2257 skel_build(
self.
skeletonindex,
self, animmodelindex, 0, 0, 100000);
2260 void(
float animmodelindex,
float framegroup,
float framegroupstarttime,
float blendalpha,
string groupbonename,
string excludegroupname1,
string excludegroupname2) example_skel_player_update_applyoverride =
2262 local
float bonenum;
2263 local
float numbones;
2264 self.frame = framegroup;
2268 self.frame1time = framegroupstarttime;
2269 self.frame2time = 0;
2270 self.frame3time = 0;
2271 self.frame4time = 0;
2277 while (bonenum < numbones)
2279 if (example_skel_findbonegroup(
self.
skeletonindex, bonenum, groupbonename, excludegroupname1, excludegroupname2,
"",
"",
"") == 1)
2280 skel_build(
self.
skeletonindex,
self, animmodelindex, 1 - blendalpha, bonenum, bonenum + 1);
2281 bonenum = bonenum + 1;
2285 void(
vector eyetarget,
string bonename) example_skel_player_update_eyetarget =
2287 local
float bonenum;
2289 local
vector oldforward, oldright, oldup;
2290 local
vector relforward, relright, relup, relorg;
2291 local
vector boneforward, boneright, boneup, boneorg;
2292 local
vector parentforward, parentright, parentup, parentorg;
2294 local
vector modeleyetarget;
2301 v = eyetarget -
self.origin;
2303 modeleyetarget_y = 0-v *
v_right;
2304 modeleyetarget_z = v *
v_up;
2320 u = modeleyetarget - boneorg;
2322 v_x = u * parentforward;
2323 v_y = u * parentright;
2325 ang = vectoangles2(v, relup);
2331 v_forward = oldforward;
2337 void() example_skel_player_delete =
2340 self.skeletonindex = 0;
2454 string(
float c, ...)
chr2str =
#223; // returns a string representing the character given, if the engine supports UTF8 this may be a multi-byte sequence (length may be more than 1) for characters over 127. 2455 string(
float ccase,
float calpha,
float cnum,
string s, ...) strconv =
#224; // reformat a string with special color characters in the font, DO NOT USE THIS ON UTF8 ENGINES (if you are lucky they will emit ^4 and such color codes instead), the parameter values are 0=same/1=lower/2=upper for ccase, 0=same/1=white/2=red/5=alternate/6=alternate-alternate for redalpha, 0=same/1=white/2=red/3=redspecial/4=whitespecial/5=alternate/6=alternate-alternate for rednum. 2456 string(
float chars,
string s, ...) strpad =
#225; // pad string with spaces to a specified length, < 0 = left padding, > 0 = right padding 2457 string(
string info,
string key,
string value, ...) infoadd =
#226; // sets or adds a key/value pair to an infostring - note: forbidden characters are \ and " 2458 string(
string info,
string key) infoget = #227;
2504 void(
float bufhandle) buf_del = #461;
2505 float(
float bufhandle) buf_getsize = #462;
2506 void(
float bufhandle_from,
float bufhandle_to) buf_copy = #463;
2507 void(
float bufhandle,
float sortpower,
float backward) buf_sort = #464;
2508 string(
float bufhandle,
string glue) buf_implode = #465;
2509 string(
float bufhandle,
float string_index) bufstr_get = #466;
2510 void(
float bufhandle,
float string_index,
string str) bufstr_set = #467;
2511 float(
float bufhandle,
string str,
float order) bufstr_add = #468;
2512 void(
float bufhandle,
float string_index) bufstr_free = #469;
2519 void(
float bufhandle,
string pattern,
string antipattern) buf_cvarlist = #517;
2532 float(
string filename,
float bufhandle) buf_loadfile = #535;
2533 float(
float filehandle,
float bufhandle,
float startpos,
float numstrings) buf_writefile = #536;
2534 float(
float bufhandle,
string match,
float matchrule,
float startpos,
float step) bufstr_find = #537;
2535 float(
string s,
string pattern,
float matchrule) matchpattern = #538;
2536 float(
string s,
string pattern,
float matchrule,
float pos) matchpatternofs = #538;
2547 string(
string search,
string replace,
string subject) strreplace = #484;
2548 string(
string search,
string replace,
string subject) strireplace = #485;
2562 void(
float index,
float type, ...) addstat =
#232; 2568 void(
float pause) setpause = #531;
2599 float(
string url,
float id,
string content_type,
string delim,
float buf,
float keyid) crypto_uri_postbuf = #513;
2631 float(
string pattern,
float caseinsensitive,
float quiet,
string packfile) search_packfile_begin = #444;
float checkpvs(vector viewpos, entity viewee)
const float JOINTTYPE_HINGE2
float(string s) checkextension
spree_inf s1 s2 s3loc s2 s1
spree_inf s1 s2 s3loc s2 spree_inf s1 s2 s3loc s2 spree_inf s1 s2 s3loc s2 s1 s2loc s1 s2loc s1 s2loc s1 s2loc s1 s2loc s1 s2loc s1 s2loc s1 s2 f1 f1points s1 s2
float Q3SURFACEFLAG_NOIMPACT
const float GEOMTYPE_CAPSULE_X
float CVAR_TYPEFLAG_READONLY
const float GEOMTYPE_CYLINDER_Y
const float MOVETYPE_PHYSICS
const float JOINTTYPE_SLIDER
const float SOLID_PHYSICS_SPHERE
const float JOINTTYPE_FIXED
const float FORCETYPE_FORCEATPOS
vector gettaginfo_forward
const float GEOMTYPE_CAPSULE_Y
const float GEOMTYPE_SOLID
void(entity e, entity tagentity, string tagname) setattachment
const float GEOMTYPE_CYLINDER
#define skel_get_boneparent
const float SOLID_PHYSICS_BOX
float EF_DYNAMICMODELLIGHT
float CVAR_TYPEFLAG_HASDESCRIPTION
vector(vector org) getlight
vector cursor_trace_start
const float SOLID_PHYSICS_CAPSULE
vector cursor_trace_endpos
const float JOINTTYPE_HINGE
string trace_dphittexturename
float Q3SURFACEFLAG_SLICK
const float GEOMTYPE_CAPSULE_Z
float Q3SURFACEFLAG_FLESH
const float GEOMTYPE_CYLINDER_Z
const float JOINTTYPE_NONE
float CVAR_TYPEFLAG_ENGINE
float Q3SURFACEFLAG_LADDER
float CVAR_TYPEFLAG_SAVED
entity exteriormodeltoclient
float DPCONTENTS_LIQUIDSMASK
const float JOINTTYPE_UNIVERSAL
float SPA_LIGHTMAP0_COLOR
float Q3SURFACEFLAG_NOMARKS
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
const float GEOMTYPE_NONE
float SPA_LIGHTMAP0_TEXCOORDS
entity viewmodelforclient
const float FORCETYPE_FORCE
float MOVETYPE_FLY_WORLDONLY
const float FORCETYPE_NONE
const float GEOMTYPE_CAPSULE
string(string s) cvar_defstring
float DPCONTENTS_MONSTERCLIP
float disableclientprediction
float Q3SURFACEFLAG_NODRAW
float CLIENTTYPE_DISCONNECTED
const float FORCETYPE_TORQUE
float Q3SURFACEFLAG_NODAMAGE
float trace_dphitcontents
float Q3SURFACEFLAG_METALSTEPS
const float SOLID_PHYSICS_CYLINDER
const float SOLID_PHYSICS_TRIMESH
const float GEOMTYPE_CYLINDER_X
entity(float entnum) edict_num
#define tokenizebyseparator
float DPCONTENTS_PLAYERCLIP
float trace_dphitq3surfaceflags
float Q3SURFACEFLAG_NOSTEPS
float DPCONTENTS_DONOTENTER
float CLIENTTYPE_NOTACLIENT
float Q3SURFACEFLAG_NONSOLID
float trace_dpstartcontents
const float MATCH_PATTERN
float MOVETYPE_USER_FIRST
string crypto_encryptmethod
const float GEOMTYPE_TRIMESH
const float GEOMTYPE_SPHERE
float CVAR_TYPEFLAG_PRIVATE
float CVAR_TYPEFLAG_EXISTS
const float JOINTTYPE_POINT
#define particleeffectnum(e)