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