2011-06-14 17:08:48 +00:00
|
|
|
/**
|
|
|
|
\defgroup physics Physics builtins
|
|
|
|
\{
|
|
|
|
*/
|
2002-08-15 21:00:51 +00:00
|
|
|
#ifndef __ruamoko_physics_h
|
|
|
|
#define __ruamoko_physics_h
|
2002-08-15 06:56:37 +00:00
|
|
|
|
|
|
|
@extern float trace_allsolid;
|
|
|
|
@extern float trace_startsolid;
|
|
|
|
@extern float trace_fraction;
|
|
|
|
@extern vector trace_endpos;
|
|
|
|
@extern vector trace_plane_normal;
|
|
|
|
@extern float trace_plane_dist;
|
|
|
|
@extern entity trace_ent;
|
|
|
|
@extern float trace_inopen;
|
|
|
|
@extern float trace_inwater;
|
2011-06-14 17:08:48 +00:00
|
|
|
@extern vector v_forward;
|
|
|
|
@extern vector v_up;
|
|
|
|
@extern vector v_right;
|
2002-08-15 06:56:37 +00:00
|
|
|
|
2011-06-14 17:08:48 +00:00
|
|
|
/**
|
|
|
|
Set #v_forward, #v_up, #v_right global vectors from the vector \a ang
|
2004-01-05 09:06:06 +00:00
|
|
|
*/
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern void makevectors (vector ang);
|
|
|
|
@extern void traceline (vector v1, vector v2, float nomonsters, entity forent);
|
|
|
|
@extern entity checkclient ();
|
|
|
|
@extern float walkmove (float yaw, float dist);
|
|
|
|
@extern float droptofloor ();
|
|
|
|
@extern void lightstyle (float style, string value);
|
|
|
|
@extern float checkbottom (entity e);
|
|
|
|
@extern float pointcontents (vector v);
|
|
|
|
@extern vector aim (entity e, float speed);
|
|
|
|
@extern void ChangeYaw (void);
|
|
|
|
@extern void movetogoal (float step);
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern int hullpointcontents (entity ent, vector point);
|
|
|
|
@extern vector getboxbounds (int hull, int max);
|
|
|
|
@extern int getboxhull (void);
|
|
|
|
@extern void freeboxhull (int hull);
|
|
|
|
@extern void rotate_bbox (int hull, vector right, vector forward, vector up, vector mins, vector maxs);
|
2002-08-15 06:56:37 +00:00
|
|
|
|
2011-06-14 17:08:48 +00:00
|
|
|
/**
|
|
|
|
\}
|
|
|
|
*/
|
|
|
|
|
2002-08-15 21:00:51 +00:00
|
|
|
#endif//__ruamoko_physics_h
|