2012-04-28 06:34:39 +00:00
|
|
|
; these are builtin functions
|
2012-04-28 07:26:40 +00:00
|
|
|
FUNCTION: makevectors, $1
|
|
|
|
FUNCTION: setorigin, $2
|
|
|
|
FUNCTION: setmodel, $3
|
|
|
|
FUNCTION: setsize, $4
|
|
|
|
|
|
|
|
FUNCTION: break, $6
|
|
|
|
FUNCTION: random, $7
|
|
|
|
FUNCTION: sound, $8
|
|
|
|
FUNCTION: normalize, $9
|
|
|
|
FUNCTION: error, $10
|
|
|
|
FUNCTION: objerror, $11
|
|
|
|
FUNCTION: vlen, $12
|
|
|
|
FUNCTION: vectoyaw, $13
|
|
|
|
FUNCTION: spawn, $14
|
|
|
|
FUNCTION: remove, $15
|
|
|
|
FUNCTION: traceline, $16
|
|
|
|
|
|
|
|
FUNCTION: find, $18
|
|
|
|
FUNCTION: precache_sound, $19
|
|
|
|
FUNCTION: precache_model, $20
|
|
|
|
|
|
|
|
FUNCTION: findradius, $22
|
|
|
|
|
|
|
|
FUNCTION: dprint, $25
|
|
|
|
FUNCTION: ftos, $26
|
|
|
|
FUNCTION: vtos, $27
|
|
|
|
FUNCTION: coredump, $28
|
|
|
|
FUNCTION: traceon, $29
|
|
|
|
FUNCTION: traceoff, $30
|
|
|
|
FUNCTION: eprint, $31
|
|
|
|
FUNCTION: walkmove, $32
|
|
|
|
|
|
|
|
FUNCTION: droptofloor, $34
|
|
|
|
FUNCTION: lightstyle, $35
|
|
|
|
FUNCTION: rint, $36
|
|
|
|
FUNCTION: floor, $37
|
|
|
|
FUNCTION: ceil, $38
|
|
|
|
|
|
|
|
FUNCTION: checkbottom, $40
|
|
|
|
FUNCTION: pointcontents, $41
|
|
|
|
|
|
|
|
FUNCTION: fabs, $43
|
|
|
|
|
|
|
|
FUNCTION: cvar, $45
|
|
|
|
FUNCTION: localcmd, $46
|
|
|
|
FUNCTION: nextent, $47
|
|
|
|
FUNCTION: particle, $48
|
|
|
|
FUNCTION: ChangeYaw, $49
|
|
|
|
|
|
|
|
FUNCTION: vectoangles, $51
|
|
|
|
FUNCTION: vectoangles2, $51
|
|
|
|
|
|
|
|
FUNCTION: sin, $60
|
|
|
|
FUNCTION: cos, $61
|
|
|
|
FUNCTION: sqrt, $62
|
|
|
|
FUNCTION: changepitch, $63
|
|
|
|
FUNCTION: tracetoss, $64
|
|
|
|
FUNCTION: etos, $65
|
|
|
|
|
|
|
|
FUNCTION: precache_file, $68
|
|
|
|
FUNCTION: makestatic, $69
|
|
|
|
|
|
|
|
FUNCTION: cvar_set, $72
|
|
|
|
|
|
|
|
FUNCTION: ambientsound, $74
|
|
|
|
FUNCTION: precache_model2,$75
|
|
|
|
FUNCTION: precache_sound2,$76
|
|
|
|
FUNCTION: precache_file2, $77
|
|
|
|
|
|
|
|
FUNCTION: stof, $81
|
|
|
|
|
|
|
|
FUNCTION: tracebox, $90
|
|
|
|
FUNCTION: randomvec, $91
|
|
|
|
FUNCTION: getlight, $92
|
|
|
|
FUNCTION: getlight2, $92
|
|
|
|
FUNCTION: registercvar, $93
|
|
|
|
FUNCTION: min, $94
|
|
|
|
FUNCTION: max, $95
|
|
|
|
FUNCTION: bound, $96
|
|
|
|
FUNCTION: pow, $97
|
|
|
|
FUNCTION: findfloat, $98
|
|
|
|
FUNCTION: checkextension, $99
|
2012-04-28 06:34:39 +00:00
|
|
|
|
2012-05-05 02:01:02 +00:00
|
|
|
FUNCTION: test #0
|
|
|
|
FLOAT: x, 100
|
|
|
|
FLOAT: y, 200
|
2012-05-01 22:05:41 +00:00
|
|
|
|
2012-05-05 02:01:02 +00:00
|
|
|
FLOAT: r_mul
|
|
|
|
FLOAT: r_div
|
|
|
|
FLOAT: r_add
|
|
|
|
FLOAT: r_sub
|
2012-05-02 15:48:46 +00:00
|
|
|
|
2012-05-05 02:01:02 +00:00
|
|
|
MUL_V x,y,r_mul
|
|
|
|
DIV_V x,y,r_div
|
|
|
|
ADD_V x,y,r_add
|
|
|
|
SUV_V x,y,r_sub
|
2012-05-03 20:54:34 +00:00
|
|
|
|
2012-05-05 02:01:02 +00:00
|
|
|
STORE_V r_mul
|
|
|
|
CALL0 dprint
|
2012-05-01 20:42:11 +00:00
|
|
|
|
2012-05-05 02:01:02 +00:00
|
|
|
STORE_V
|
2012-05-03 20:54:34 +00:00
|
|
|
END
|