]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/client/csqc_builtins.h
add "lsmaps" alias
[divverent/nexuiz.git] / data / qcsrc / client / csqc_builtins.h
1 void (vector ang)                                                       makevectors = #1;
2 void(entity e, vector o) setorigin      = #2;
3 void (entity e, string m)                                               setmodel = #3;
4
5 void ()                                                                 break = #6;
6 float ()                                                                random = #7;
7 void (entity e, float chan, string samp, float vol, float atten)        sound = #8;
8 vector (vector v)                                                       normalize = #9;
9 void (string e)                                                         error = #10;
10 void (string e)                                                         objerror = #11;
11 float (vector v)                                                        vlen = #12;
12 float (vector v)                                                        vectoyaw = #13;
13 entity ()                                                               spawn = #14;
14 void (entity e)                                                         remove = #15;
15
16 void (vector v1, vector v2, float nomonsters, entity forent)            traceline = #16;
17
18 entity (entity start, .string fld, string match)                        find = #18;
19 string (string s)                                                       precache_sound = #19;
20 string (string s)                                                       precache_model = #20;
21
22 void (string s)                                                         dprint = #25;
23 string (float f)                                                        ftos = #26;
24 string (vector v)                                                       vtos = #27;
25 void ()                                                                 coredump = #28;
26 void ()                                                                 traceon = #29;
27 void ()                                                                 traceoff = #30;
28 void (entity e)                                                         eprint = #31;
29
30 float (float v)                                                         rint = #36;
31 float (float v)                                                         floor = #37;
32 float (float v)                                                         ceil = #38;
33
34 float (vector v)                                                        pointcontents = #41;
35 float (float f)                                                         fabs = #43;
36
37 float (string s)                                                        cvar = #45;
38 void (string s, ...)                                                    localcmd = #46;
39 entity (entity e)                                                       nextent = #47;
40
41 vector (vector v)                                                       vectoangles = #51;
42
43 void (string var, string val)                                           cvar_set = #72;
44
45
46 float()                                                                 ReadByte = #360;
47 float()                                                                 ReadChar = #361;
48 float()                                                                 ReadShort = #362;
49 float()                                                                 ReadLong = #363;
50 float()                                                                 ReadCoord = #364;
51 float()                                                                 ReadAngle = #365;
52 string()                                                                ReadString = #366;      //warning: this returns a temporary!
53
54 float(string s)                                                         stof = #81;
55
56
57 void (vector v1, vector min, vector max, vector v2, float nomonsters, entity forent)    tracebox = #90;
58 float (string name, string value)                                       registercvar = #93;
59
60 entity (entity start, .entity fld, entity match)                        findentity = #98;
61 entity (entity start, .float fld, float match)                          findfloat = #98;
62
63 float (string s)                                                        checkextension = #99;
64
65 float (string filename, float mode)                                     fopen = #110;
66 void (float fhandle)                                                    fclose = #111;
67 string (float fhandle)                                                  fgets = #112;
68 void (float fhandle, string s)                                          fputs = #113;
69 float (string s)                                                        strlen = #114;
70 string (...)                                                            strcat = #115;
71 string (string s, float start, float length)                            substring = #116;
72 vector (string s)                                                       stov = #117;
73 string (string s)                                                       strzone = #118;
74 void (string s)                                                         strunzone = #119;
75
76 void ()                                                                 R_ClearScene = #300;
77 void (float mask)                                                       R_AddEntities = #301;
78 void (entity e)                                                         R_AddEntity = #302;
79 float (float property, ...)                                             R_SetView = #303;
80 void ()                                                                 R_RenderScene = #304;
81 void (vector org, float radius, vector rgb)                             R_AddDynamicLight = #305;
82 void ()                                                                 R_CalcRefDef = #306;
83
84 vector (vector v)                                                       cs_unproject = #310;
85 vector (vector v)                                                       cs_project = #311;
86
87 void    drawline(float width, vector pos1, vector pos2, vector rgb, float alpha, float flags) = #315;
88 float   iscachedpic(string name)        = #316;
89 string  precache_pic(string name, ...)  = #317;
90 vector  drawgetimagesize(string pic) = #318;
91 void    freepic(string name)            = #319;
92 float   drawcharacter(vector position, float character, vector scale, vector rgb, float alpha, float flag) = #320;
93 float   drawstring(vector position, string text, vector scale, vector rgb, float alpha, float flag) = #321;
94 float   drawpic(vector position, string pic, vector size, vector rgb, float alpha, float flag) = #322;
95 float   drawfill(vector position, vector size, vector rgb, float alpha, float flag) = #323;
96 void    drawsetcliparea(float x, float y, float width, float height) = #324;
97 void    drawresetcliparea(void) = #325;
98
99
100 float (float statnum)                                                   getstatf = #330;
101 float (float statnum)                                                   getstati = #331;
102 string (float statnum)                                                  getstats = #332;
103
104 void (entity e, float i)                                                setmodelindex = #333;
105 string (float i)                                                        modelnameforindex = #334;
106
107 float(string efname)                                                    particleseffectforname = #335;
108 void(entity ent, float effectnum, vector start, vector end, ...)        trailparticles = #336;
109 void (float efnum, vector org, vector vel, float countmultiplier)       pointparticles = #337;
110
111 void (string s, ...)                                                    cprint = #338;
112 void (string s, ...)                                                    print = #339;
113
114 void (float scale)                                                      setsensitivityscale = #347;
115
116
117 void (float framenum)                                                   RetrieveMovementFrame = #345;
118 void ()                                                                 DefaultPlayerPhysics = #347;
119
120 string (float playernum, string key)                                    getplayerkey = #348;
121 void (string cmdname)                                                   registercmd = #352;
122 vector ()                                                               getmousepos = #344;
123
124 string (string s)                                                       uncolorstring = #170;
125
126 float ()                                                                playernum = #354;
127
128 void (vector org, vector forward, vector right, vector up)              setlistener = #351;
129
130 float (vector start, vector end, float ignore, float csqcents)          selecttraceline = #355;
131 float ()                                                                isdemo = #349;
132 float ()                                                                isserver = #350;
133
134 void (float f)                                                          setwantsmousemove = #343;
135 string (float key)                                                      getkeybind = #342;
136 string (float f)                                                        chr = #78;
137
138 vector (vector org)                                                     getlight = #92;
139
140 entity (.string fld, string match)                                      findchain = #402;
141 entity (.float fld, float match)                                        findchainflags = #450;
142 entity (.entity fld, entity match)                                      findchainentity = #403;
143 entity (.float fld, float match)                                        findchainfloat = #403;
144 entity (entity start, .entity fld, float match)                         findflags = #449;
145
146 float (string pattern, float caseinsensitive, float quiet)              search_begin = #444;
147 void (float handle)                                                     search_end = #445;
148 float (float handle)                                                    search_getsize = #446;
149 string (float handle, float num)                                        search_getfilename = #447;
150
151
152 float (entity e, float s)                                               getsurfacenumpoints = #434;
153 vector (entity e, float s, float n)                                     getsurfacepoint = #435;
154 vector (entity e, float s)                                              getsurfacenormal = #436;
155 string (entity e, float s)                                              getsurfacetexture = #437;
156 float (entity e, vector p)                                              getsurfacenearpoint = #438;
157 vector (entity e, float s, vector p)                                    getsurfaceclippedpoint = #439;
158
159 float (float a, float b) min = #94;
160 float (float a, float b, float c) min3 = #94;
161 float (float a, float b, float c, float d) min4 = #94;
162 float (float a, float b, float c, float d, float e) min5 = #94;
163 float (float a, float b, float c, float d, float e, float f) min6 = #94;
164 float (float a, float b, float c, float d, float e, float f, float g) min7 = #94;
165 float (float a, float b, float c, float d, float e, float f, float g, float h) min8 = #94;
166 float (float a, float b) max = #95;
167 float (float a, float b, float c) max3 = #95;
168 float (float a, float b, float c, float d) max4 = #95;
169 float (float a, float b, float c, float d, float e) max5 = #95;
170 float (float a, float b, float c, float d, float e, float f) max6 = #95;
171 float (float a, float b, float c, float d, float e, float f, float g) max7 = #95;
172 float (float a, float b, float c, float d, float e, float f, float g, float h) max8 = #95;
173 float (float minimum, float val, float maximum) bound = #96;
174
175 vector () randomvec = #91;
176
177 float (float val)               sin = #60;
178 float (float val)               cos = #61;
179 float (float val)               sqrt = #62;
180 float (float a, float b)        pow = #97;
181
182 void (vector org, string modelname, float startframe, float endframe, float framerate) effect = #404;
183
184 void (vector org, vector velocity, float howmany) te_blood = #405;
185 void (vector mincorner, vector maxcorner, float explosionspeed, float howmany) te_bloodshower = #406;
186 void (vector org, float radius, float lifetime, vector color) te_customflash = #417;
187 void(vector org, vector color) te_explosionrgb = #407;
188 void(vector mincorner, vector maxcorner, vector vel, float howmany, float color, float gravityflag, float randomveljitter) te_particlecube = #408;
189 void(vector mincorner, vector maxcorner, vector vel, float howmany, float color) te_particlerain = #409;
190 void(vector mincorner, vector maxcorner, vector vel, float howmany, float color) te_particlesnow = #410;
191 void(vector org) te_plasmaburn = #433;
192 void(vector org) te_gunshotquad = #412;
193 void(vector org) te_spikequad = #413;
194 void(vector org) te_superspikequad = #414;
195 void(vector org) te_explosionquad = #415;
196 void(vector org) te_smallflash = #416;
197 void(vector org, vector vel, float howmany) te_spark = #411;
198
199 void(vector org) te_gunshot = #418;
200 void(vector org) te_spike = #419;
201 void(vector org) te_superspike = #420;
202 void(vector org) te_explosion = #421;
203 void(vector org) te_tarexplosion = #422;
204 void(vector org) te_wizspike = #423;
205 void(vector org) te_knightspike = #424;
206 void(vector org) te_lavasplash = #425;
207 void(vector org) te_teleport = #426;
208 void(vector org, float color, float colorlength) te_explosion2 = #427;
209 void(entity own, vector start, vector end) te_lightning1 = #428;
210 void(entity own, vector start, vector end) te_lightning2 = #429;
211 void(entity own, vector start, vector end) te_lightning3 = #430;
212 void(entity own, vector start, vector end) te_beam = #431;
213
214 float (entity ent, string tagname)      gettagindex = #451;
215 vector (entity ent, float tagindex)     gettaginfo = #452;
216
217 float (string s)        tokenize = #441;
218 string (float argnum)   argv = #442;
219
220 string (string s) cvar_string = #448;
221
222 float ()                                                buf_create = #460;
223 void (float bufhandle)                                  buf_del = #461;
224 float (float bufhandle)                                 buf_getsize = #462;
225 void (float bufhandle_from, float bufhandle_to)         buf_copy = #463;
226 void (float bufhandle, float sortpower, float backward) buf_sort = #464;
227 string (float bufhandle, string glue)                   buf_implode = #465;
228 string (float bufhandle, float string_index)            bufstr_get = #466;
229 void (float bufhandle, float string_index, string str)  bufstr_set = #467;
230 float (float bufhandle, string str, float order)        bufstr_add = #468;
231 void (float bufhandle, float string_index)              bufstr_free = #469;
232
233 float () onground = #355;
234
235 void(string texturename, ...) R_BeginPolygon = #306;
236 void(vector org, vector texcoords, vector rgb, float alpha) R_PolygonVertex = #307;
237 void() R_EndPolygon = #308;
238
239 float(string s, float num) charindex = #356;