568float DEG2RAD = 0.0174532925199432957692369076848861271344287188854172545609719144;
569float RAD2DEG = 57.2957795130823208767981548141051703324054724665643215491602438612;
570float PI = 3.1415926535897932384626433832795028841971693993751058209749445923;
573float(
float c) acos = #472;
574float(
float t) atan = #473;
575float(
float c,
float s) atan2 = #474;
636float(
float caseinsensitive,
string s, ...) crc16 =
#494;
706float() numentityfields =
#496;
707string(
float fieldnum) entityfieldname = #497;
708float(
float fieldnum) entityfieldtype = #498;
710float(
float fieldnum,
entity ent,
string s) putentityfieldstring = #500;
758entity(.
string fld,
string match) findchain = #402;
767entity(.
string fld,
string match, .
entity tofield) findchain_tofield = #402;
768entity(.
float fld,
float match, .
entity tofield) findchainflags_tofield = #450;
769entity(.
float fld,
float match, .
entity tofield) findchainfloat_tofield = #403;
864float(
entity e,
float s) getsurfacenumtriangles = #628;
955float(
float a,
float b,
float c,
float d) min4 = #94;
956float(
float a,
float b,
float c,
float d,
float e) min5 = #94;
957float(
float a,
float b,
float c,
float d,
float e,
float f) min6 = #94;
958float(
float a,
float b,
float c,
float d,
float e,
float f,
float g) min7 = #94;
959float(
float a,
float b,
float c,
float d,
float e,
float f,
float g,
float h) min8 = #94;
961float(
float a,
float b,
float c) max3 = #95;
962float(
float a,
float b,
float c,
float d) max4 = #95;
963float(
float a,
float b,
float c,
float d,
float e) max5 = #95;
964float(
float a,
float b,
float c,
float d,
float e,
float f) max6 = #95;
965float(
float a,
float b,
float c,
float d,
float e,
float f,
float g) max7 = #95;
966float(
float a,
float b,
float c,
float d,
float e,
float f,
float g,
float h) max8 = #95;
967float(
float minimum,
float val,
float maximum)
bound = #96;
1066float(
string s) strlennocol = #476;
1067string(
string s) strdecolorize = #477;
1075string(
string s) strtolower = #480;
1076string(
string s) strtoupper = #481;
1084float(
string s,
string separator1, ...) tokenizebyseparator =
#479;
1095float(
string s) tokenize_console = #514;
1096float(
float i) argv_start_index = #515;
1097float(
float i) argv_end_index = #516;
1181string(
string filename) whichpack = #503;
1191string(
string in) uri_escape = #510;
1192string(
string in) uri_unescape = #511;
1207float(
string url,
float id) uri_get = #513;
1215float(
string url,
float id,
string content_type,
string data) uri_post = #513;
1216float(
string url,
float id,
string content_type,
string delim,
float buf) uri_postbuf = #513;
1284void(
entity e,
float chan,
string samp,
float vol,
float atten,
float speed,
float flags) sound7 = #8;
1324float(
entity e,
float channel) getsoundtime = #533;
1325float(
string sample) soundlength = #534;
1471.float() customizeentityforclient;
1546void(
vector org,
string modelname,
float startframe,
float endframe,
float framerate) effect = #404;
1557.void(
float nOriginalContents,
float nNewContents) contentstransition;
1567.void(
vector vImpactVelocity) movetypesteplandevent;
1670float(
string effectname) particleeffectnum = #335;
1817void(
entity ent,
float colors) setcolor = #401;
1838void(
float to,
string s,
float sz) WritePicture = #501;
1853void(
float to,
string s) WriteUnterminatedString = #456;
1878void(
vector mincorner,
vector maxcorner,
float explosionspeed,
float howmany) te_bloodshower = #406;
2128float(
float number,
float quantity) bitshift = #218;
2167float(
float modlindex) skel_create = #263;
2168float(
float skel,
entity ent,
float modlindex,
float retainfrac,
float firstbone,
float lastbone) skel_build = #264;
2169float(
float skel) skel_get_numbones = #265;
2170string(
float skel,
float bonenum) skel_get_bonename = #266;
2171float(
float skel,
float bonenum) skel_get_boneparent = #267;
2172float(
float skel,
string tagname) skel_find_bone = #268;
2173vector(
float skel,
float bonenum) skel_get_bonerel = #269;
2174vector(
float skel,
float bonenum) skel_get_boneabs = #270;
2176void(
float skel,
float bonenum,
vector org) skel_mul_bone = #272;
2177void(
float skel,
float startbone,
float endbone,
vector org) skel_mul_bones = #273;
2178void(
float skeldst,
float skelsrc,
float startbone,
float endbone) skel_copybones = #274;
2179void(
float skel) skel_delete = #275;
2180float(
float modlindex,
string framename) frameforname = #276;
2181float(
float modlindex,
float framenum) frameduration = #277;
2220float(
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;
2232 bonenum = skel_get_boneparent(skel, bonenum);
2239 self.skeletonindex = skel_create(
self.modelindex);
2243void(
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);
2260void(
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;
2276 numbones = skel_get_numbones(
self.skeletonindex);
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;
2285void(
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;
2295 bonenum = skel_find_bone(
self.skeletonindex, bonename) - 1;
2301 v = eyetarget -
self.origin;
2304 modeleyetarget_z =
v *
v_up;
2307 relorg = skel_get_bonerel(
self.skeletonindex, bonenum);
2311 boneorg = skel_get_boneabs(
self.skeletonindex, bonenum);
2315 parentorg = skel_get_boneabs(
self.skeletonindex, skel_get_boneparent(
self.skeletonindex, bonenum));
2320 u = modeleyetarget - boneorg;
2322 v_x = u * parentforward;
2323 v_y = u * parentright;
2325 ang = vectoangles2(
v, relup);
2329 skel_set_bone(
self.skeletonindex, bonenum, relorg);
2337void() example_skel_player_delete =
2339 skel_delete(
self.skeletonindex);
2340 self.skeletonindex = 0;
2452float(
string str,
string sub,
float startpos) strstrofs = #221;
2453float(
string str,
float ofs) str2chr = #222;
2455string(
float ccase,
float calpha,
float cnum,
string s, ...) strconv =
#224;
2456string(
float chars,
string s, ...) strpad =
#225;
2458string(
string info,
string key) infoget = #227;
2459float(
string s1,
string s2) strcmp = #228;
2460float(
string s1,
string s2,
float len) strncmp = #228;
2461float(
string s1,
string s2) strcasecmp = #229;
2462float(
string s1,
string s2,
float len) strncasecmp = #230;
2503float() buf_create =
#460;
2504void(
float bufhandle) buf_del = #461;
2505float(
float bufhandle) buf_getsize = #462;
2506void(
float bufhandle_from,
float bufhandle_to) buf_copy = #463;
2507void(
float bufhandle,
float sortpower,
float backward) buf_sort = #464;
2508string(
float bufhandle,
string glue) buf_implode = #465;
2509string(
float bufhandle,
float string_index) bufstr_get = #466;
2510void(
float bufhandle,
float string_index,
string str) bufstr_set = #467;
2511float(
float bufhandle,
string str,
float order) bufstr_add = #468;
2512void(
float bufhandle,
float string_index) bufstr_free = #469;
2519void(
float bufhandle,
string pattern,
string antipattern) buf_cvarlist = #517;
2532float(
string filename,
float bufhandle) buf_loadfile = #535;
2533float(
float filehandle,
float bufhandle,
float startpos,
float numstrings) buf_writefile = #536;
2534float(
float bufhandle,
string match,
float matchrule,
float startpos,
float step) bufstr_find = #537;
2536float(
string s,
string pattern,
float matchrule,
float pos) matchpatternofs = #538;
2547string(
string search,
string replace,
string subject) strreplace = #484;
2548string(
string search,
string replace,
string subject) strireplace = #485;
2568void(
float pause) setpause = #531;
2599float(
string url,
float id,
string content_type,
string delim,
float buf,
float keyid) crypto_uri_postbuf = #513;
2631float(
string pattern,
float caseinsensitive,
float quiet,
string packfile) search_packfile_begin = #444;
2640void(
string cmdname) registercommand = #352;
2670float(
float dividend,
float divisor)
mod = #245;
float mod(float dividend, float divisor)
const float GEOMTYPE_TRIMESH
float disableclientprediction
float trace_dphitcontents
const float JOINTTYPE_SLIDER
const float JOINTTYPE_NONE
float Q3SURFACEFLAG_NONSOLID
float Q3SURFACEFLAG_LADDER
float MOVETYPE_FLY_WORLDONLY
const float JOINTTYPE_FIXED
const float GEOMTYPE_CYLINDER_Y
float DPCONTENTS_DONOTENTER
float MOVETYPE_USER_FIRST
entity viewmodelforclient
const float GEOMTYPE_CAPSULE_Y
float CVAR_TYPEFLAG_HASDESCRIPTION
float SPA_LIGHTMAP0_TEXCOORDS
const float MATCH_PATTERN
float Q3SURFACEFLAG_NODRAW
void() example_skel_player_setup
const float FORCETYPE_FORCE
const float GEOMTYPE_CYLINDER_Z
float Q3SURFACEFLAG_SLICK
const float FORCETYPE_NONE
float CVAR_TYPEFLAG_ENGINE
const float JOINTTYPE_UNIVERSAL
const float SOLID_PHYSICS_CYLINDER
string crypto_encryptmethod
float DPCONTENTS_LIQUIDSMASK
const float SOLID_PHYSICS_TRIMESH
const float FORCETYPE_TORQUE
const float MOVETYPE_PHYSICS
float trace_dpstartcontents
const float SOLID_PHYSICS_BOX
float Q3SURFACEFLAG_FLESH
const float JOINTTYPE_POINT
float SPA_LIGHTMAP0_COLOR
float CVAR_TYPEFLAG_EXISTS
const float SOLID_PHYSICS_SPHERE
const float GEOMTYPE_CAPSULE_X
vector gettaginfo_forward
const float GEOMTYPE_SPHERE
float CLIENTTYPE_NOTACLIENT
string trace_dphittexturename
const float JOINTTYPE_HINGE
float DPCONTENTS_PLAYERCLIP
float Q3SURFACEFLAG_METALSTEPS
float CVAR_TYPEFLAG_READONLY
float DPCONTENTS_MONSTERCLIP
const float SOLID_PHYSICS_CAPSULE
float trace_dphitq3surfaceflags
string(void) getextresponse
const float FORCETYPE_FORCEATPOS
const float GEOMTYPE_NONE
const float GEOMTYPE_SOLID
const float GEOMTYPE_CYLINDER_X
entity exteriormodeltoclient
float CVAR_TYPEFLAG_SAVED
float EF_DYNAMICMODELLIGHT
const float JOINTTYPE_HINGE2
float Q3SURFACEFLAG_NOIMPACT
float Q3SURFACEFLAG_NOMARKS
float CVAR_TYPEFLAG_PRIVATE
const float GEOMTYPE_CAPSULE_Z
const float GEOMTYPE_CAPSULE
float Q3SURFACEFLAG_NODAMAGE
vector cursor_trace_start
float Q3SURFACEFLAG_NOSTEPS
float CLIENTTYPE_DISCONNECTED
const float GEOMTYPE_CYLINDER
vector cursor_trace_endpos
int matchpattern(const char *in, const char *pattern, int caseinsensitive)
GLfloat GLfloat GLfloat v2
GLsizei const GLfloat * value
GLenum GLuint GLenum GLsizei length
GLint GLint GLint GLsizei GLsizei GLenum format
GLsizeiptr const GLvoid * data
GLenum GLuint GLenum GLsizei const GLchar * buf
#define bound(min, num, max)
static unsigned char * checkpvs