List of builtin functions

From Quake Wiki

(Redirected from Builtin Functions)

QuakeC uses builtin functions to call bits of C code that can do 'jobs' for the QC that otherwise can't be done. Some functions affect the game world, some modify variables, and some maintain file lists for the engine. Each of the original functions are detailed below. Please note that builtin parameters/types/etc might differ between Quake and Hexen II.

See Also[edit]

# Function Supported by     QSG Key
1 makevectors NQ QW H2MP N/A
2 setorigin NQ QW H2MP N/A
3 setmodel NQ QW H2MP N/A
4 setsize NQ QW H2MP N/A
5 lightstylestatic H2MP N/A
6 break NQ QW H2MP N/A
7 random NQ QW H2MP N/A
8 sound NQ QW H2MP N/A
9 normalize NQ QW H2MP N/A
10 error NQ QW H2MP N/A
11 objerror NQ QW H2MP N/A
12 vlen NQ QW H2MP N/A
13 vectoyaw NQ QW H2MP N/A
14 spawn NQ QW H2MP N/A
15 remove NQ QW H2MP N/A
16 traceline NQ QW H2MP N/A
17 checkclient NQ QW H2MP N/A
18 find NQ QW H2MP N/A
19 precache_sound NQ QW H2MP N/A
20 precache_model NQ QW H2MP N/A
21 stuffcmd NQ QW H2MP N/A
22 findradius NQ QW H2MP N/A
23 bprint NQ QW H2MP N/A
24 sprint NQ QW H2MP N/A
25 dprint NQ QW H2MP N/A
26 ftos NQ QW H2MP N/A
27 vtos NQ QW H2MP N/A
28 coredump NQ QW H2MP N/A
29 traceon NQ QW H2MP N/A
30 traceoff NQ QW H2MP N/A
31 eprint NQ QW H2MP N/A
32 walkmove NQ QW H2MP N/A
33 tracearea H2MP N/A
34 droptofloor NQ QW H2MP N/A
35 lightstyle NQ QW H2MP N/A
36 rint NQ QW H2MP N/A
37 floor NQ QW H2MP N/A
38 ceil NQ QW H2MP N/A
39 AwardExperience H2MP N/A
40 checkbottom NQ QW H2MP N/A
41 pointcontents NQ QW H2MP N/A
42 particle2 H2MP N/A
43 fabs NQ QW H2MP N/A
44 aim NQ QW H2MP N/A
45 cvar NQ QW H2MP N/A
46 localcmd NQ QW H2MP N/A
47 nextent NQ QW H2MP N/A
48 particle NQ H2MP ZQ_QC_PARTICLE
49 ChangeYaw NQ QW H2MP N/A
50 vhlen H2MP N/A
51 vectoangles NQ QW H2MP N/A
52 WriteByte NQ QW H2MP N/A
53 WriteChar NQ QW H2MP N/A
54 WriteShort NQ QW H2MP N/A
55 WriteLong NQ QW H2MP N/A
56 WriteCoord NQ QW H2MP N/A
57 WriteAngle NQ QW H2MP N/A
58 WriteString NQ QW H2MP N/A
59 WriteEntity NQ QW H2MP N/A
60 sin DP_QC_SINCOSSQRTPOW
60 dprintf H2MP N/A
61 cos DP_QC_SINCOSSQRTPOW
61 cos H2MP N/A
62 sqrt DP_QC_SINCOSSQRTPOW
62 sin H2MP N/A
63 changepitch DP_QC_CHANGEPITCH
63 AdvanceFrame H2MP N/A
64 tracetoss DP_QC_TRACETOSS
64 dprintv H2MP N/A
65 etos DP_QC_ETOS
65 RewindFrame H2MP N/A
66 setclass H2MP N/A
67 movetogoal NQ QW H2MP N/A
68 precache_file NQ QW H2MP N/A
69 makestatic NQ QW H2MP N/A
70 changelevel NQ QW H2MP N/A
71 lightstylevalue H2MP N/A
72 cvar_set NQ QW H2MP N/A
73 centerprint NQ QW H2MP N/A
74 ambientsound NQ QW H2MP N/A
75 precache_model2 NQ QW H2MP N/A
76 precache_sound2 NQ QW H2MP N/A
77 precache_file2 NQ QW H2MP N/A
78 setspawnparms NQ QW H2MP N/A
79 logfrag QW N/A
79 zone QSG_FILE
79 plaque_draw H2MP N/A
80 infokey QW N/A
80 unzone QSG_FILE
80 rain_go H2MP N/A
81 stof QW FRIK_FILE
81 strlen QSG_FILE
81 particleexplosion H2MP N/A
82 multicast QW N/A
82 strcat QSG_FILE
82 movestep H2MP N/A
83 substring QSG_FILE
83 advanceweaponframe H2MP N/A
84 stof QSG_FILE
84 sqrt H2MP N/A
84 tokenize ZQ_QC_TOKENIZE
85 stov QSG_FILE
85 particle3 H2MP N/A
85 argc ZQ_QC_TOKENIZE
86 open QSG_FILE
86 particle4 H2MP N/A
86 argv ZQ_QC_TOKENIZE
87 close QSG_FILE
87 setpuzzlemodel H2MP N/A
88 read QSG_FILE
88 starteffect H2MP N/A
89 write QSG_FILE
89 endeffect H2MP N/A
90 tracebox DP_QC_TRACEBOX
90 precache_puzzle_model H2MP N/A
91 randomvec DP_QC_RANDOMVEC
91 concatv H2MP N/A
92 getlight DP_QC_GETLIGHT
92 getstring H2MP N/A
93 registercvar DP_REGISTERCVAR
93 spawn_temp H2MP N/A
94 min DP_QC_MINMAXBOUND
94 v_factor H2MP N/A
95 max DP_QC_MINMAXBOUND
95 v_factorrange H2MP N/A
96 bound DP_QC_MINMAXBOUND
96 precache_sound3 H2MP N/A
97 pow DP_QC_SINCOSSQRTPOW
97 precache_model3 H2MP N/A
98 findentity DP_QC_FINDFLOAT
98 findfloat DP_QC_FINDFLOAT
98 precache_file3 H2MP N/A
99 checkextension __QSG Extensions System__
99 matchAngleToSlope H2MP N/A
100 updateInfoPlaque H2MP N/A
101 precache_sound4 H2MP N/A
102 precache_model4 H2MP N/A
103 precache_file4 H2MP N/A
104 showpic TEI_SHOWLMP2
104 doWhiteFlash H2MP N/A
105 hidepic TEI_SHOWLMP2
105 updateSoundPos H2MP N/A
106 movepic TEI_SHOWLMP2
106 stopSound H2MP N/A
107 changepic TEI_SHOWLMP2
108 showpicent TEI_SHOWLMP2
109 hidepicent TEI_SHOWLMP2
110 fopen FRIK_FILE
111 fclose FRIK_FILE
112 fgets FRIK_FILE
113 fputs FRIK_FILE
114 strlen FRIK_FILE ZQ_QC_STRINGS
115 strcat FRIK_FILE ZQ_QC_STRINGS
116 substring FRIK_FILE ZQ_QC_STRINGS
117 stov FRIK_FILE
118 strzone FRIK_FILE ZQ_QC_STRINGS
119 strunzone FRIK_FILE ZQ_QC_STRINGS
176 cvar_setf N/A
177 localsound N/A
200 getmodelindex EXT_CSQC
201 externcall FTE_MULTIPROGS
202 addprogs FTE_MULTIPROGS
203 externvalue FTE_MULTIPROGS
204 externset FTE_MULTIPROGS
205 externrefcall FTE_MULTIPROGS
206 instr FTE_MULTIPROGS
209 RegisterTempEnt FTE_PEXT_CUSTOMTENTS
209 CustomTempEnt FTE_PEXT_CUSTOMTENTS
210 fork FTE_MULTITHREADED
211 abort FTE_MULTITHREADED
212 sleep FTE_MULTITHREADED
213 forceinfokey FTE_FORCEINFOKEY
214 npcchat FTE_NPCCHAT
218 bitshift EXT_BITSHIFT
221 strstrofs FTE_STRINGS
222 str2chr FTE_STRINGS
223 chr2str FTE_STRINGS
224 strconv FTE_STRINGS
225 strpad FTE_STRINGS
226 infoadd FTE_STRINGS
227 infoget FTE_STRINGS
228 strncmp FTE_STRINGS
229 strcasecmp FTE_STRINGS
230 strncasecmp FTE_STRINGS
231 calltimeofday FTE_CALLTIMEOFDAY
232 clientstat EXT_CSQC
400 copyentity DP_QC_COPYENTITY
401 setcolor DP_SV_SETCOLOR
402 findchain DP_QC_FINDCHAIN
403 findchainentity DP_QC_FINDCHAINFLOAT
403 findchainfloat DP_QC_FINDCHAINFLOAT
404 effect DP_SV_EFFECT
405 te_blood DP_TE_BLOOD
406 te_bloodshower DP_TE_BLOODSHOWER
407 te_explosionrgb DP_TE_EXPLOSIONRGB
408 te_particlecube DP_TE_PARTICLECUBE
409 te_particlerain DP_TE_PARTICLERAIN
410 te_particlesnow DP_TE_PARTICLESNOW
411 te_spark DP_TE_SPARK
412 te_gunshotquad DP_TE_QUADEFFECTS1
413 te_spikequad DP_TE_QUADEFFECTS1
414 te_superspikequad DP_TE_QUADEFFECTS1
415 te_explosionquad DP_TE_QUADEFFECTS1
416 te_smallflash DP_TE_SMALLFLASH
417 te_customflash DP_TE_CUSTOMFLASH
418 te_gunshot DP_TE_STANDARDEFFECTBUILTINS
419 te_spike DP_TE_STANDARDEFFECTBUILTINS
420 te_superspike DP_TE_STANDARDEFFECTBUILTINS
421 te_explosion DP_TE_STANDARDEFFECTBUILTINS
422 te_tarexplosion DP_TE_STANDARDEFFECTBUILTINS
423 te_wizspike DP_TE_STANDARDEFFECTBUILTINS
424 te_knightspike DP_TE_STANDARDEFFECTBUILTINS
425 te_lavasplash DP_TE_STANDARDEFFECTBUILTINS
426 te_teleport DP_TE_STANDARDEFFECTBUILTINS
427 te_explosion2 DP_TE_STANDARDEFFECTBUILTINS
428 te_lightning1 DP_TE_STANDARDEFFECTBUILTINS
429 te_lightning2 DP_TE_STANDARDEFFECTBUILTINS
430 te_lightning3 DP_TE_STANDARDEFFECTBUILTINS
431 te_beam DP_TE_STANDARDEFFECTBUILTINS
432 vectorvectors DP_QC_VECTORVECTORS
433 te_plasmaburn DP_TE_PLASMABURN
434 getsurfacenumpoints DP_QC_GETSURFACE
435 getsurfacepoint DP_QC_GETSURFACE
436 getsurfacenormal DP_QC_GETSURFACE
437 getsurfacetexture DP_QC_GETSURFACE
438 getsurfacenearpoint DP_QC_GETSURFACE
439 getsurfaceclippedpoint DP_QC_GETSURFACE
440 clientcommand KRIMZON_SV_PARSECLIENTCOMMAND
441 tokenize KRIMZON_SV_PARSECLIENTCOMMAND
442 argv KRIMZON_SV_PARSECLIENTCOMMAND
443 setattachment DP_GFX_QUAKE3MODELTAGS
444 search_begin DP_QC_FS_SEARCH
445 search_end DP_QC_FS_SEARCH
446 search_getsize DP_QC_FS_SEARCH
447 search_getfilename DP_QC_FS_SEARCH
448 cvar_string DP_QC_CVAR_STRING
449 findflags DP_QC_FINDFLAGS
450 findchainflags DP_QC_FINDCHAINFLAGS
451 gettagindex DP_QC_GETTAGINFO
452 gettaginfo DP_QC_GETTAGINFO
453 dropclient DP_SV_DROPCLIENT
454 spawnclient DP_SV_BOTCLIENT
455 clienttype DP_SV_BOTCLIENT
456 WriteUnterminatedString DP_SV_WRITEUNTERMINATEDSTRING
457 te_flamejet DP_TE_FLAMEJET
530 soundtoclient ZQ_SOUNDTOCLIENT
531 setpause ZQ_PAUSE
532 precache_vwep_model ZQ_VWEP
533 setinfo ZQ_SETINFO
534 spawnbot ZQ_BOT

Telejano (NQ)[edit]