269 const
float M_PI = 3.14159265358979323846;
338 void() break_to_debugger =
#6; 352 void(
string s) precache_model = #20;
367 void(
float style,
string value) lightstyle = #35;
398 void(
vector pos,
string samp,
float vol,
float atten) ambientsound = #74;
399 string(
string s) precache_model2 = #75;
400 string(
string s) precache_sound2 = #76;
401 string(
string s) precache_file2 = #77;
421 float(
float minimum,
float val,
float maximum)
bound = #96;
428 float(
string filename,
float mode)
fopen = #110;
431 void(
float fhandle,
string s)
fputs = #113;
441 float(
float number,
float quantity) bitshift = #218;
447 string(
float ccase,
float calpha,
float cnum,
string s, ...) strconv =
#224; 448 string(
float chars,
string s, ...) strpad =
#225; 449 string(
string info,
string key,
string value, ...) infoadd =
#226; 450 string(
string info,
string key) infoget = #227;
457 void() clearscene =
#300; 458 void(
float mask) addentities = #301;
460 float(
float property, ...) setproperty =
#303; 461 float(
float property) getproperty = #309;
462 vector(
float property) getpropertyvec = #309;
463 void() renderscene =
#304; 467 void(
string texturename,
float flag, ...) R_BeginPolygon =
#306; 469 void() R_EndPolygon =
#308; 476 string(
string name) precache_cubemap = #317;
477 vector(
string picname) draw_getimagesize = #318;
488 float(
float stnum) getstatf = #330;
489 float(
float stnum, ...) getstati =
#331; // can optionally take first bit and count 490 string(
float firststnum) getstats = #332;
491 void(
entity e,
float mdlindex) setmodelindex = #333;
492 string(
float mdlindex) modelnameforindex = #334;
500 float(
string keyname) stringtokeynum = #341;
501 string(
float keynum) getkeybind = #342;
502 void(
float usecursor) setcursormode = #343;
504 float(
float framenum) getinputstate = #345;
505 void(
float sens) setsensitivityscale = #346;
506 void(...) runstandardplayerphysics =
#347; // this may or may not take a player ent 507 string(
float playernum,
string keyname) getplayerkeyvalue = #348;
511 void(
string cmdname) registercommand = #352;
513 string(
string key) serverkey = #354;
516 float() ReadByte =
#360; 517 float() ReadChar =
#361; 518 float() ReadShort =
#362; 519 float() ReadLong =
#363; 520 float() ReadCoord =
#364; 521 float() ReadAngle =
#365; 523 float() ReadFloat =
#367; 528 entity(.
string fld,
string match) findchain = #402;
530 void(
vector org,
string modelname,
float startframe,
float endframe,
float framerate) effect = #404;
532 void(
vector mincorner,
vector maxcorner,
float explosionspeed,
float howmany) te_bloodshower = #406;
534 void(
vector mincorner,
vector maxcorner,
vector vel,
float howmany,
float color,
float gravityflag,
float randomveljitter) te_particlecube = #408;
553 void(
vector org,
float colorstart,
float colorlength) te_explosion2 = #427;
560 float(
entity e,
float s) getsurfacenumpoints = #434;
561 vector(
entity e,
float s,
float n) getsurfacepoint = #435;
582 entity(
float num) entitybyindex = #459;
584 void(
float bufhandle) buf_del = #461;
585 float(
float bufhandle) buf_getsize = #462;
586 void(
float bufhandle_from,
float bufhandle_to) buf_copy = #463;
587 void(
float bufhandle,
float sortpower,
float backward) buf_sort = #464;
588 string(
float bufhandle,
string glue) buf_implode = #465;
589 string(
float bufhandle,
float string_index) bufstr_get = #466;
590 void(
float bufhandle,
float string_index,
string str) bufstr_set = #467;
591 float(
float bufhandle,
string str,
float order) bufstr_add = #468;
592 void(
float bufhandle,
float string_index) bufstr_free = #469;
594 float(
float s) asin = #471;
595 float(
float c) acos = #472;
596 float(
float t) atan = #473;
597 float(
float c,
float s) atan2 = #474;
598 float(
float a) tan = #475;
599 float(
string s) strippedstringlen = #476;
600 float(
string s) strlennocol = #476;
601 string(
string s) decolorizedstring = #477;
602 string(
string s) strdecolorize = #477;
603 string(
float uselocaltime,
string format, ...) strftime =
#478; 604 string(
string s) strtolower = #480;
605 string(
string s) strtoupper = #481;
607 void(
vector origin,
string sample,
float volume,
float attenuation) pointsound = #483;
608 string(
string search,
string replace,
string subject) strreplace = #484;
609 string(
string search,
string replace,
string subject) strireplace = #485;
610 vector(
entity e,
float s,
float n,
float a) getsurfacepointattribute = #486;
615 float gecko_keyevent(
string name,
float key,
float eventtype ) = #490;
617 void gecko_resize(
string name,
float w,
float h ) = #492;
687 float(
float max_themes) initparticlespawner = #522;
688 void() resetparticle =
#523; // reset p_ globals to default theme #0 689 void(
float theme) particletheme = #524;
690 float() particlethemesave =
#525; // save p_ globals to new particletheme and return it's index 691 void(
float theme) particlethemeupdate = #525;
692 void(
float theme) particlethemefree = #526;
696 float(
vector org,
vector vel,
float delay,
float collisiondelay,
float theme) quickdelayedparticle = #528;
707 void() printparticle =
710 print(
"PARTICLE:\n");
725 print(
strcat(
" liquidfriction: ",
ftos(particle_liquidfriction),
"\n"));
727 print(
strcat(
" velocityjitter: ",
ftos(particle_velocityjitter),
"\n"));
728 print(
strcat(
" qualityreduction: ",
ftos(particle_qualityreduction),
"\n"));
736 print(
strcat(
" delaycollision: ",
ftos(particle_delaycollision),
"\n"));
744 float RF_USETRANSPARENTOFFSET = 64;
771 void(
float ispaused) setpause = #531;
839 float loadfont(
string fontname,
string fontmaps,
string sizes,
float slot,
float fix_scale,
float fix_voffset) = #357;
877 string(
float key,
float bindmap) getkeybind_bindmap = #342;
878 float(
float key,
string bind,
float bindmap) setkeybind_bindmap = #630;
879 vector(
void) getbindmaps = #631;
881 string(
string command,
float bindmap) findkeysforcommand = #610;
891 float(
string url,
float id,
string content_type,
string delim,
float buf,
float keyid) crypto_uri_postbuf = #513;
919 void(
entity e,
float refdefflags) V_CalcRefdef = #640;
940 #define SPA_POSITION 0 944 #define SPA_TEXCOORDS0 4 945 #define SPA_LIGHTMAP0_TEXCOORDS 5 946 #define SPA_LIGHTMAP_COLOR 6 954 float(
entity e,
float s) getsurfacenumtriangles = #628;
955 vector(
entity e,
float s,
float n) getsurfacetriangle = #629;
961 float DEG2RAD = 0.0174532925199432957692369076848861271344287188854172545609719144;
962 float RAD2DEG = 57.2957795130823208767981548141051703324054724665643215491602438612;
963 float PI = 3.1415926535897932384626433832795028841971693993751058209749445923;
980 string(
string format, ...) sprintf =
#627; 1052 void(
entity e,
float chan,
string samp,
float vol,
float atten,
float speed,
float flags) sound7 = #8;
1097 float(
entity e,
float channel) getsoundtime = #533;
1098 float(
string sample) soundlength = #534;
1170 float(
string name) cvar_type = #495;
1183 float(
float caseinsensitive,
string s, ...) crc16 =
#494; 1189 string(
string in) uri_escape = #510;
1190 string(
string in) uri_unescape = #511;
1196 string(
string digest,
string data, ...) digest_hex =
#639; 1213 float log(
float f) = #532;
1223 float(
float modlindex) skel_create = #263;
1224 float(
float skel,
entity ent,
float modlindex,
float retainfrac,
float firstbone,
float lastbone) skel_build = #264;
1225 float(
float skel) skel_get_numbones = #265;
1226 string(
float skel,
float bonenum) skel_get_bonename = #266;
1234 void(
float skeldst,
float skelsrc,
float startbone,
float endbone) skel_copybones = #274;
1235 void(
float skel) skel_delete = #275;
1236 float(
float modlindex,
string framename) frameforname = #276;
1237 float(
float modlindex,
float framenum) frameduration = #277;
1276 float(
float skel,
float bonenum,
string g1,
string g2,
string g3,
string g4,
string g5,
string g6) example_skel_findbonegroup =
1278 local
string bonename;
1279 while (bonenum >= 0)
1281 bonename = skel_get_bonename(skel, bonenum);
1282 if (bonename == g1)
return 1;
1283 if (bonename == g2)
return 2;
1284 if (bonename == g3)
return 3;
1285 if (bonename == g4)
return 4;
1286 if (bonename == g5)
return 5;
1287 if (bonename == g6)
return 6;
1293 void() example_skel_player_setup =
1295 self.skeletonindex = skel_create(
self.modelindex);
1299 void(
float animmodelindex,
float framegroup,
float framegroupstarttime) example_skel_player_update_begin =
1302 self.frame = framegroup;
1306 self.frame1time = framegroupstarttime;
1307 self.frame2time = 0;
1308 self.frame3time = 0;
1309 self.frame4time = 0;
1313 skel_build(
self.
skeletonindex,
self, animmodelindex, 0, 0, 100000);
1316 void(
float animmodelindex,
float framegroup,
float framegroupstarttime,
float blendalpha,
string groupbonename,
string excludegroupname1,
string excludegroupname2) example_skel_player_update_applyoverride =
1318 local
float bonenum;
1319 local
float numbones;
1320 self.frame = framegroup;
1324 self.frame1time = framegroupstarttime;
1325 self.frame2time = 0;
1326 self.frame3time = 0;
1327 self.frame4time = 0;
1333 while (bonenum < numbones)
1335 if (example_skel_findbonegroup(
self.
skeletonindex, bonenum, groupbonename, excludegroupname1, excludegroupname2,
"",
"",
"") == 1)
1336 skel_build(
self.
skeletonindex,
self, animmodelindex, 1 - blendalpha, bonenum, bonenum + 1);
1337 bonenum = bonenum + 1;
1341 void(
vector eyetarget,
string bonename) example_skel_player_update_eyetarget =
1343 local
float bonenum;
1345 local
vector oldforward, oldright, oldup;
1346 local
vector relforward, relright, relup, relorg;
1347 local
vector boneforward, boneright, boneup, boneorg;
1348 local
vector parentforward, parentright, parentup, parentorg;
1350 local
vector modeleyetarget;
1357 v = eyetarget -
self.origin;
1359 modeleyetarget_y = 0-v *
v_right;
1360 modeleyetarget_z = v *
v_up;
1376 u = modeleyetarget - boneorg;
1378 v_x = u * parentforward;
1379 v_y = u * parentright;
1381 ang = vectoangles2(v, relup);
1387 v_forward = oldforward;
1393 void() example_skel_player_delete =
1396 self.skeletonindex = 0;
1406 float() numentityfields = #496;
1407 string(
float fieldnum) entityfieldname = #497;
1408 float(
float fieldnum) entityfieldtype = #498;
1409 string(
float fieldnum,
entity ent) getentityfieldstring = #499;
1410 float(
float fieldnum,
entity ent,
string s) putentityfieldstring = #500;
1445 float(
string pattern,
float caseinsensitive,
float quiet,
string packfile) search_packfile_begin = #444;
1456 string(
void) ReadPicture = #501;
const float STAT_MOVEVARS_TIMESCALE
const float STAT_TOTALSECRETS
float particle_delayspawn
const float SOLID_SLIDEBOX
const float STAT_TOTALMONSTERS
vector modellight_diffuse
const float DRAWFLAG_2XMODULATE
spree_inf s1 s2 s3loc s2 s1
float particle_originjitter
const float PFLAGS_CORONA
const float STAT_MOVEVARS_GRAVITY
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 movevar_wateraccelerate
vector particle_staincolor1
float trace_dphitq3surfaceflags
const float STAT_WEAPONFRAME
const float VF_CL_VIEWANGLES
const float RF_FULLBRIGHT
const float TE_SUPERSPIKEQUAD
const float STAT_MONSTERS
float DPCONTENTS_MONSTERCLIP
float particle_stainalpha
float trace_networkentity
float trace_dphitcontents
float CVAR_TYPEFLAG_EXISTS
float Q3SURFACEFLAG_NONSOLID
const float TE_TAREXPLOSION
float Q3SURFACEFLAG_LADDER
float particle_liquidfriction
const float DRAWFLAG_SCREEN
const float CONTENT_SOLID
const float DRAWFLAG_MIPMAP
vector particle_staincolor2
#define skel_get_boneparent
const float TE_EXPLOSIONQUAD
float checkpvs(vector viewpos, entity viewee)
const float VF_CL_VIEWANGLES_X
float DPCONTENTS_PLAYERCLIP
float Q3SURFACEFLAG_SLICK
const float TE_KNIGHTSPIKE
const float VF_MINFPS_QUALITY
float Q3SURFACEFLAG_METALSTEPS
float particle_sizeincrease
float movevar_waterfriction
const float EF_NODEPTHTEST
const float RF_MODELLIGHT
const float VF_CL_VIEWANGLES_Y
vector drawgetimagesize(string pic)
vector modellight_ambient
float PRECACHE_PIC_MIPMAP
#define setmodel(this, m)
const float STAT_FRAGLIMIT
string trace_dphittexturename
float Q3SURFACEFLAG_NOSTEPS
float stringwidth(string text, float allowColorCodes, vector size)
const float STAT_VIEWHEIGHT
const float CONTENT_EMPTY
const float DRAWFLAG_ADDITIVE
const float EF_FULLBRIGHT
vector(vector v) normalize
float Q3SURFACEFLAG_NOMARKS
const float VF_CL_VIEWANGLES_Z
const float MOVE_NOMONSTERS
float particle_orientation
float REFDEFFLAG_TELEPORTED
const float RF_WORLDOBJECT
vector particles_colormax
const float CONTENT_SLIME
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"))
float Q3SURFACEFLAG_FLESH
const float CONTENT_WATER
float movevar_spectatormaxspeed
float CVAR_TYPEFLAG_READONLY
const float TE_SUPERSPIKE
float Q3SURFACEFLAG_NODAMAGE
float trace_dpstartcontents
const float DRAWFLAG_NORMAL
const float TE_LAVASPLASH
void CSQC_UpdateView(entity this, float w, float h)
float CVAR_TYPEFLAG_PRIVATE
vector particles_colormin
float particle_airfriction
const float VF_PERSPECTIVE
float loadfont(string fontname, string fontmaps, string sizes, float slot, float fix_scale, float fix_voffset)
const float TE_LIGHTNING2
float Q3SURFACEFLAG_NOIMPACT
const float TE_LIGHTNING3
const float STAT_TIMELIMIT
const float DRAWFLAG_MODULATE
float CVAR_TYPEFLAG_ENGINE
const float PFLAGS_FULLDYNAMIC
bool CSQC_ConsoleCommand(string command)
const float MASK_ENGINEVIEWMODELS
float CSQC_InputEvent(int bInputType, float nPrimary, float nSecondary)
float PARTICLE_ORIENTED_DOUBLESIDED
float Q3SURFACEFLAG_NODRAW
float PARTICLES_DRAWASTRAIL
float PRECACHE_PIC_NOTPERSISTENT
const float PFLAGS_NOSHADOW
float CVAR_TYPEFLAG_HASDESCRIPTION
const float SOLID_TRIGGER
const float VF_DRAWENGINESBAR
const float STAT_WEAPONMODEL
float(float f, float t, float n) CSQC_InputEvent
#define tokenizebyseparator
const float TE_GUNSHOTQUAD
float drawsubpic(vector position, vector size, string pic, vector srcPosition, vector srcSize, vector rgb, float alpha, float flag)
float particle_velocityjitter
const float TE_EXPLOSION2
const float TE_EXPLOSIONRGB
float REFDEFFLAG_INTERMISSION
const float VF_DRAWCROSSHAIR
vector trace_plane_normal
const float RF_EXTERNALMODEL
float stringwidth_menu(string text, float allowColorCodes, vector size)
float DPCONTENTS_LIQUIDSMASK
float PRECACHE_PIC_FROMWAD
#define sound(e, c, s, v, a)
float CVAR_TYPEFLAG_SAVED
const float STAT_MOVEVARS_TICRATE
float DPCONTENTS_DONOTENTER
const float TE_LIGHTNING1
float movevar_airaccelerate
float particle_delaycollision
const float EF_SELECTABLE
const float STAT_ACTIVEWEAPON
float particle_qualityreduction
float RF_DYNAMICMODELLIGHT
vector gettaginfo_forward
#define particleeffectnum(e)