Built In Functions
number | name | return | brief |
---|---|---|---|
1 | makevectors | void | // sets v_forward, etc globals |
2 | setorigin | void | set movetype and solid first |
3 | setmodel | void | |
4 | setsize | void | |
6 | break | void | |
7 | random | float | returns 0 - 1 |
8 | sound | void | |
9 | normalize | vector | |
10 | error | void | |
11 | objerror | void | |
12 | vlen | float | |
13 | vectoyaw | float | |
14 | [spawn] | entity | |
15 | remove | void | |
16 | traceline | void | |
17 | checkclient | entity | // returns a client to look for |
18 | find | entity | |
19 | precache_sound | string | |
20 | precache_model | string | |
21 | stuffcmd | void | |
22 | findradius | entity | |
23 | bprint | void | |
24 | sprint | void | |
25 | dprint | void | |
26 | ftos | string | |
27 | vtos | string | returns a string representation of a vector |
28 | coredump | void | // prints all edicts |
29 | traceon | void | // turns statment trace on |
30 | traceoff | void | |
31 | eprint | void | // prints an entire edict |
32 | walkmove | float | // returns TRUE or FALSE |
33 | // #33 was removed | ||
34 | droptofloor | float | // TRUE if landed on floor |
35 | lightstyle | void | |
36 | rint | float | // round to nearest int |
37 | floor | float | // largest integer <= v |
38 | ceil | float | // smallest integer >= v |
39 | // #was removed | ||
40 | checkbottom | float | // true if self is on ground |
41 | pointcontents | float | // returns a CONTENT_* |
42 | // #42 was removed | ||
43 | fabs | float | |
44 | aim | vector | // returns the shooting vector |
45 | cvar | float | // return cvar.value |
46 | localcmd | void | // put string into local que |
47 | nextent | entity | // for looping through all ents |
48 | particle | void | // start a particle effect |
49 | ChangeYaw | void | // turn towards self.ideal_yaw |
50 | // #50 was removed | ||
51 | vectoangles | vector | |
52 | WriteByte | void | |
53 | WriteChar | void | |
54 | WriteShort | void | |
55 | WriteLong | void | |
56 | WriteCoord | void | |
57 | WriteAngle | void | |
58 | WriteString | void | |
59 | WriteEntity | void | |
60 | bWriteChar | void | |
61 | bWriteShort | void | |
62 | bWriteLong | void | |
63 | bWriteCoord | void | |
64 | bWriteAngle | void | |
65 | bWriteString | void | |
66 | bWriteEntity | void | |
67 | movetogoal | void | |
68 | precache_file | string | |
69 | makestatic | void | |
70 | changelevel | void | |
71 | //#71 was removed | ||
72 | cvar_set | void | // sets cvar.value |
73 | centerprint | void | |
74 | ambientsound | void | |
75 | |||
76 | |||
77 | |||
78 | |||
79 | |||
80 |
string(string s) precache_model2 = #75; // registered version only
string(string s) precache_sound2 = #76; // registered version only
string(string s) precache_file2 = #77; // registered version only
void(entity e) setspawnparms = #78; // set parm1... to the
void(entity killer, entity killee) finaleFinished = #79;
string(entity e, string key) localsound = #80;
void draw_point( vector point, float colormap, float lifetime, float depthtest ) = #81;
void draw_line( vector start, vector end, float colormap, float lifetime, float depthtest ) = #82;
void draw_arrow( vector start, vector end, float colormap, float size, float lifetime, float depthtest ) = #83;
void draw_ray( vector start, vector direction, float length, float colormap, float size, float lifetime, float depthtest ) = #84;
void draw_circle( vector origin, float radius, float colormap, float lifetime, float depthtest ) = #85;
void draw_bounds( vector min, vector max, float colormap, float lifetime, float depthtest ) = #86;
void draw_worldtext( string s, vector origin, float size, float lifetime, float depthtest ) = #87;
void draw_sphere( vector origin, float radius, float colormap, float lifetime, float depthtest ) = #88;
void draw_cylinder( vector origin, float halfHeight, float radius, float colormap, float lifetime, float depthtest ) = #89;
void (entity client, string s, ...) centerprint2 = #90;
void (string s,...) bprint2 = #91;
void (entity client, string s, ...) sprint2 = #92;
float(string extname) checkextension = #99;