53 void CSQC_DrawHud(
vector virtsize,
float showscores);
54 void CSQC_DrawScores(
vector virtsize,
float showscores);
262const float false = 0;
273const float M_PI = 3.14159265358979323846;
342void() break_to_debugger =
#6;
356void(
string s) precache_model = #20;
368float(
float yaw,
float dist,
float settrace) walkmove = #32;
370float() droptofloor =
#34;
385void() ChangeYaw =
#49;
402void(
vector pos,
string samp,
float vol,
float atten) ambientsound = #74;
403string(
string s) precache_model2 = #75;
404string(
string s) precache_sound2 = #76;
405string(
string s) precache_file2 = #77;
425float(
float minimum,
float val,
float maximum)
bound = #96;
435void(
float fhandle,
string s)
fputs = #113;
446float(
float number,
float quantity) bitshift = #218;
449float(
string str,
string sub,
float startpos) strstrofs = #221;
450float(
string str,
float ofs) str2chr = #222;
452string(
float ccase,
float calpha,
float cnum,
string s, ...) strconv =
#224;
453string(
float chars,
string s, ...) strpad =
#225;
455string(
string info,
string key) infoget = #227;
456float(
string s1,
string s2) strcmp = #228;
457float(
string s1,
string s2,
float len) strncmp = #228;
458float(
string s1,
string s2) strcasecmp = #229;
459float(
string s1,
string s2,
float len) strncasecmp = #230;
462void() clearscene =
#300;
465float(
float property, ...) setproperty =
#303;
466float(
float property) getproperty = #309;
467vector(
float property) getpropertyvec = #309;
468void() renderscene =
#304;
472void(
string texturename,
float flag, ...) R_BeginPolygon =
#306;
474void() R_EndPolygon =
#308;
482vector(
string picname) draw_getimagesize = #318;
493float(
float stnum) getstatf = #330;
494float(
float stnum, ...) getstati =
#331;
495string(
float firststnum) getstats = #332;
497string(
float mdlindex) modelnameforindex = #334;
498float(
string effectname) particleeffectnum = #335;
505float(
string keyname) stringtokeynum = #341;
506string(
float keynum) getkeybind = #342;
507void(
float usecursor) setcursormode = #343;
509float(
float framenum) getinputstate = #345;
510void(
float sens) setsensitivityscale = #346;
511void(...) runstandardplayerphysics =
#347;
512string(
float playernum,
string keyname) getplayerkeyvalue = #348;
516void(
string cmdname) registercommand = #352;
518string(
string key) serverkey = #354;
521float() ReadByte =
#360;
522float() ReadChar =
#361;
523float() ReadShort =
#362;
524float() ReadLong =
#363;
525float() ReadCoord =
#364;
526float() ReadAngle =
#365;
527string() ReadString =
#366;
528float() ReadFloat =
#367;
533entity(.
string fld,
string match) findchain = #402;
535void(
vector org,
string modelname,
float startframe,
float endframe,
float framerate) effect = #404;
537void(
vector mincorner,
vector maxcorner,
float explosionspeed,
float howmany) te_bloodshower = #406;
558void(
vector org,
float colorstart,
float colorlength) te_explosion2 = #427;
588float() buf_create =
#460;
589void(
float bufhandle) buf_del = #461;
590float(
float bufhandle) buf_getsize = #462;
591void(
float bufhandle_from,
float bufhandle_to) buf_copy = #463;
592void(
float bufhandle,
float sortpower,
float backward) buf_sort = #464;
593string(
float bufhandle,
string glue) buf_implode = #465;
594string(
float bufhandle,
float string_index) bufstr_get = #466;
595void(
float bufhandle,
float string_index,
string str) bufstr_set = #467;
596float(
float bufhandle,
string str,
float order) bufstr_add = #468;
597void(
float bufhandle,
float string_index) bufstr_free = #469;
599float(
float s) asin = #471;
600float(
float c) acos = #472;
601float(
float t) atan = #473;
602float(
float c,
float s) atan2 = #474;
604float(
string s) strippedstringlen = #476;
605float(
string s) strlennocol = #476;
606string(
string s) decolorizedstring = #477;
607string(
string s) strdecolorize = #477;
608string(
float uselocaltime,
string format, ...) strftime =
#478;
609string(
string s) strtolower = #480;
610string(
string s) strtoupper = #481;
613string(
string search,
string replace,
string subject) strreplace = #484;
614string(
string search,
string replace,
string subject) strireplace = #485;
692float(
float max_themes) initparticlespawner = #522;
693void() resetparticle =
#523;
694void(
float theme) particletheme = #524;
695float() particlethemesave =
#525;
696void(
float theme) particlethemeupdate = #525;
697void(
float theme) particlethemefree = #526;
701float(
vector org,
vector vel,
float delay,
float collisiondelay,
float theme) quickdelayedparticle = #528;
712void() printparticle =
715 print(
"PARTICLE:\n");
776void(
float ispaused) setpause = #531;
803float(
float entitynum,
float fldnum) getentity = #504;
804vector(
float entitynum,
float fldnum) getentityvec = #504;
844float loadfont(
string fontname,
string fontmaps,
string sizes,
float slot,
float fix_scale,
float fix_voffset) = #357;
882string(
float key,
float bindmap) getkeybind_bindmap = #342;
883float(
float key,
string bind,
float bindmap) setkeybind_bindmap = #630;
884vector(
void) getbindmaps = #631;
886string(
string command,
float bindmap) findkeysforcommand = #610;
896float(
string url,
float id,
string content_type,
string delim,
float buf,
float keyid) crypto_uri_postbuf = #513;
945#define SPA_POSITION 0
949#define SPA_TEXCOORDS0 4
950#define SPA_LIGHTMAP0_TEXCOORDS 5
951#define SPA_LIGHTMAP_COLOR 6
959float(
entity e,
float s) getsurfacenumtriangles = #628;
966float DEG2RAD = 0.0174532925199432957692369076848861271344287188854172545609719144;
967float RAD2DEG = 57.2957795130823208767981548141051703324054724665643215491602438612;
968float PI = 3.1415926535897932384626433832795028841971693993751058209749445923;
1033float(
string s,
string separator1, ...) tokenizebyseparator =
#479;
1044float(
string s) tokenize_console = #514;
1045float(
float i) argv_start_index = #515;
1046float(
float i) argv_end_index = #516;
1057void(
entity e,
float chan,
string samp,
float vol,
float atten,
float speed,
float flags) sound7 = #8;
1102float(
entity e,
float channel) getsoundtime = #533;
1103float(
string sample) soundlength = #534;
1188float(
float caseinsensitive,
string s, ...) crc16 =
#494;
1194string(
string filename) whichpack = #503;
1204string(
string in) uri_escape = #510;
1205string(
string in) uri_unescape = #511;
1238float(
float modlindex) skel_create = #263;
1239float(
float skel,
entity ent,
float modlindex,
float retainfrac,
float firstbone,
float lastbone) skel_build = #264;
1240float(
float skel) skel_get_numbones = #265;
1241string(
float skel,
float bonenum) skel_get_bonename = #266;
1242float(
float skel,
float bonenum) skel_get_boneparent = #267;
1243float(
float skel,
string tagname) skel_find_bone = #268;
1244vector(
float skel,
float bonenum) skel_get_bonerel = #269;
1245vector(
float skel,
float bonenum) skel_get_boneabs = #270;
1247void(
float skel,
float bonenum,
vector org) skel_mul_bone = #272;
1248void(
float skel,
float startbone,
float endbone,
vector org) skel_mul_bones = #273;
1249void(
float skeldst,
float skelsrc,
float startbone,
float endbone) skel_copybones = #274;
1250void(
float skel) skel_delete = #275;
1251float(
float modlindex,
string framename) frameforname = #276;
1252float(
float modlindex,
float framenum) frameduration = #277;
1291float(
float skel,
float bonenum,
string g1,
string g2,
string g3,
string g4,
string g5,
string g6) example_skel_findbonegroup =
1293 local
string bonename;
1294 while (bonenum >= 0)
1296 bonename = skel_get_bonename(skel, bonenum);
1297 if (bonename == g1)
return 1;
1298 if (bonename == g2)
return 2;
1299 if (bonename == g3)
return 3;
1300 if (bonename == g4)
return 4;
1301 if (bonename == g5)
return 5;
1302 if (bonename == g6)
return 6;
1303 bonenum = skel_get_boneparent(skel, bonenum);
1308void() example_skel_player_setup =
1310 self.skeletonindex = skel_create(
self.modelindex);
1314void(
float animmodelindex,
float framegroup,
float framegroupstarttime) example_skel_player_update_begin =
1317 self.frame = framegroup;
1321 self.frame1time = framegroupstarttime;
1322 self.frame2time = 0;
1323 self.frame3time = 0;
1324 self.frame4time = 0;
1328 skel_build(
self.skeletonindex,
self, animmodelindex, 0, 0, 100000);
1331void(
float animmodelindex,
float framegroup,
float framegroupstarttime,
float blendalpha,
string groupbonename,
string excludegroupname1,
string excludegroupname2) example_skel_player_update_applyoverride =
1333 local
float bonenum;
1334 local
float numbones;
1335 self.frame = framegroup;
1339 self.frame1time = framegroupstarttime;
1340 self.frame2time = 0;
1341 self.frame3time = 0;
1342 self.frame4time = 0;
1347 numbones = skel_get_numbones(
self.skeletonindex);
1348 while (bonenum < numbones)
1350 if (example_skel_findbonegroup(
self.skeletonindex, bonenum, groupbonename, excludegroupname1, excludegroupname2,
"",
"",
"") == 1)
1351 skel_build(
self.skeletonindex,
self, animmodelindex, 1 - blendalpha, bonenum, bonenum + 1);
1352 bonenum = bonenum + 1;
1356void(
vector eyetarget,
string bonename) example_skel_player_update_eyetarget =
1358 local
float bonenum;
1360 local
vector oldforward, oldright, oldup;
1361 local
vector relforward, relright, relup, relorg;
1362 local
vector boneforward, boneright, boneup, boneorg;
1363 local
vector parentforward, parentright, parentup, parentorg;
1365 local
vector modeleyetarget;
1366 bonenum = skel_find_bone(
self.skeletonindex, bonename) - 1;
1372 v = eyetarget -
self.origin;
1375 modeleyetarget_z =
v *
v_up;
1378 relorg = skel_get_bonerel(
self.skeletonindex, bonenum);
1382 boneorg = skel_get_boneabs(
self.skeletonindex, bonenum);
1386 parentorg = skel_get_boneabs(
self.skeletonindex, skel_get_boneparent(
self.skeletonindex, bonenum));
1391 u = modeleyetarget - boneorg;
1393 v_x = u * parentforward;
1394 v_y = u * parentright;
1396 ang = vectoangles2(
v, relup);
1400 skel_set_bone(
self.skeletonindex, bonenum, relorg);
1408void() example_skel_player_delete =
1410 skel_delete(
self.skeletonindex);
1411 self.skeletonindex = 0;
1421float() numentityfields =
#496;
1422string(
float fieldnum) entityfieldname = #497;
1423float(
float fieldnum) entityfieldtype = #498;
1425float(
float fieldnum,
entity ent,
string s) putentityfieldstring = #500;
1453entity(.
string fld,
string match, .
entity tofield) findchain_tofield = #402;
1454entity(.
float fld,
float match, .
entity tofield) findchainflags_tofield = #450;
1455entity(.
float fld,
float match, .
entity tofield) findchainfloat_tofield = #403;
1471float(
string pattern,
float caseinsensitive,
float quiet,
string packfile) search_packfile_begin = #444;
1491string(
void) ReadPicture = #501;
1512float mod(
float dividend,
float divisor) = #245;
#define RF_USETRANSPARENTOFFSET
float particle_delaycollision
const float RF_WORLDOBJECT
const float TE_EXPLOSIONRGB
const float STAT_TIMELIMIT
float drawsubpic(vector position, vector size, string pic, vector srcPosition, vector srcSize, vector rgb, float alpha, float flag)
const float VF_DRAWENGINESBAR
const float TE_TAREXPLOSION
const float DRAWFLAG_NORMAL
const float MOVE_NOMONSTERS
const float SOLID_SLIDEBOX
const float TE_EXPLOSION2
float trace_dphitcontents
vector particle_staincolor2
const float TE_KNIGHTSPIKE
float Q3SURFACEFLAG_NONSOLID
float Q3SURFACEFLAG_LADDER
const float STAT_MOVEVARS_TICRATE
float particle_qualityreduction
const float STAT_VIEWHEIGHT
const float VF_CL_VIEWANGLES
const float VF_PERSPECTIVE
const float RF_MODELLIGHT
const float SOLID_TRIGGER
float DPCONTENTS_DONOTENTER
void CSQC_UpdateView(float vid_width, float vid_height, float notmenu)
vector particle_staincolor1
const float STAT_TOTALSECRETS
const float TE_LIGHTNING3
float particle_delayspawn
float CVAR_TYPEFLAG_HASDESCRIPTION
vector particles_colormin
const float PFLAGS_NOSHADOW
const float CONTENT_SOLID
const float DRAWFLAG_ADDITIVE
float Q3SURFACEFLAG_NODRAW
const float TE_SUPERSPIKEQUAD
float stringwidth_menu(string text, float allowColorCodes, vector size)
float Q3SURFACEFLAG_SLICK
float CVAR_TYPEFLAG_ENGINE
const float DRAWFLAG_2XMODULATE
float mod(float dividend, float divisor)
const float STAT_ACTIVEWEAPON
const float STAT_MOVEVARS_GRAVITY
float DPCONTENTS_LIQUIDSMASK
float particle_originjitter
const float TE_LIGHTNING2
float PRECACHE_PIC_FROMWAD
float CSQC_InputEvent(float evtype, float scanx, float chary)
const float STAT_MONSTERS
float trace_dpstartcontents
float Q3SURFACEFLAG_FLESH
const float TE_SUPERSPIKE
float PARTICLE_ORIENTED_DOUBLESIDED
float CVAR_TYPEFLAG_EXISTS
vector drawgetimagesize(string pic)
const float CONTENT_WATER
const float DRAWFLAG_SCREEN
vector gettaginfo_forward
const float EF_FULLBRIGHT
float CSQC_ConsoleCommand(string cmdstr)
const float VF_CL_VIEWANGLES_Y
string trace_dphittexturename
float particle_sizeincrease
float particle_airfriction
float movevar_spectatormaxspeed
vector modellight_ambient
const float VF_CL_VIEWANGLES_X
const float VF_MINFPS_QUALITY
vector modellight_diffuse
float DPCONTENTS_PLAYERCLIP
const float STAT_WEAPONMODEL
const float STAT_MOVEVARS_TIMESCALE
float loadfont(string fontname, string fontmaps, string sizes, float slot, float fix_scale, float fix_voffset)
float Q3SURFACEFLAG_METALSTEPS
const float STAT_FRAGLIMIT
const float TE_GUNSHOTQUAD
float trace_networkentity
float CVAR_TYPEFLAG_READONLY
float stringwidth(string text, float allowColorCodes, vector size)
float DPCONTENTS_MONSTERCLIP
float particle_liquidfriction
float REFDEFFLAG_INTERMISSION
float trace_dphitq3surfaceflags
float REFDEFFLAG_TELEPORTED
float particle_velocityjitter
float movevar_airaccelerate
vector particles_colormax
const float STAT_WEAPONFRAME
const float DRAWFLAG_MODULATE
float movevar_wateraccelerate
const float TE_EXPLOSIONQUAD
void CSQC_Init(float apilevel, string enginename, float engineversion)
const float EF_NODEPTHTEST
const float EF_SELECTABLE
float particle_stainalpha
float CVAR_TYPEFLAG_SAVED
const float VF_DRAWCROSSHAIR
float PRECACHE_PIC_NOTPERSISTENT
const float VF_CL_VIEWANGLES_Z
const float TE_LAVASPLASH
const float RF_EXTERNALMODEL
const float RF_FULLBRIGHT
const float CONTENT_EMPTY
float Q3SURFACEFLAG_NOIMPACT
float PRECACHE_PIC_MIPMAP
float Q3SURFACEFLAG_NOMARKS
const float PFLAGS_CORONA
float CVAR_TYPEFLAG_PRIVATE
float RF_DYNAMICMODELLIGHT
const float TE_LIGHTNING1
float Q3SURFACEFLAG_NODAMAGE
const float DRAWFLAG_MIPMAP
float Q3SURFACEFLAG_NOSTEPS
float particle_orientation
float movevar_waterfriction
vector trace_plane_normal
const float MASK_ENGINEVIEWMODELS
const float STAT_TOTALMONSTERS
float PARTICLES_DRAWASTRAIL
const float CONTENT_SLIME
const float PFLAGS_FULLDYNAMIC
char engineversion[128]
version string for the corner of the console, crash messages, status command, etc
GLenum GLsizei GLsizei height
GLfloat GLfloat GLfloat v2
GLubyte GLubyte GLubyte GLubyte w
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
GLsizei const GLfloat * value
GLenum GLuint GLenum GLsizei length
GLenum GLenum GLsizei count
GLint GLint GLint GLsizei GLsizei GLenum format
GLint GLenum GLint GLint y
GLsizeiptr const GLvoid * data
GLenum GLuint GLenum GLsizei const GLchar * buf
#define bound(min, num, max)
static unsigned char * checkpvs