4 #define IS_ONGROUND(s) boolean((s).flags & FL_ONGROUND)
5 #define SET_ONGROUND(s) ((s).flags |= FL_ONGROUND)
6 #define UNSET_ONGROUND(s) ((s).flags &= ~FL_ONGROUND)
17 void set_movetype(entity this, int mt);
21 //.vector move_origin;
22 //.vector move_angles;
23 //.vector move_velocity;
24 //.vector move_avelocity;
26 //.int move_watertype;
27 //.int move_waterlevel;
28 .void(float, float)contentstransition;
29 //.float move_bounce_factor;
30 //.float move_bounce_stopspeed;
31 .float move_nomonsters; // -1 for MOVE_NORMAL, otherwise a MOVE_ constant
36 // should match sv_gameplayfix_fixedcheckwatertransition
37 float autocvar_cl_gameplayfix_fixedcheckwatertransition = 1;
39 .entity move_groundentity; // FIXME add move_groundnetworkentity?
40 .float move_suspendedinair;
41 .float move_didgravity;
43 void _Movetype_WallFriction(entity this, vector stepnormal);
44 int _Movetype_FlyMove(entity this, float dt, bool applygravity, vector stepnormal, float stepheight);
45 void _Movetype_CheckVelocity(entity this);
46 void _Movetype_CheckWaterTransition(entity ent);
47 float _Movetype_CheckWater(entity ent);
48 void _Movetype_LinkEdict_TouchAreaGrid(entity this);
49 void _Movetype_LinkEdict(entity this, float touch_triggers);
50 vector _Movetype_ClipVelocity(vector vel, vector norm, float f);
51 void _Movetype_PushEntityTrace(entity this, vector push);
52 float _Movetype_PushEntity(entity this, vector push, float failonstartsolid);
53 void makevectors_matrix(vector myangles);
55 void Movetype_Physics_NoMatchTicrate(entity this, float movedt, bool isclient);
56 void Movetype_Physics_MatchTicrate(entity this, float tr, bool sloppy);
57 void Movetype_Physics_MatchServer(entity this, bool sloppy);
58 void Movetype_Physics_NoMatchServer(entity this);
59 void _Movetype_LinkEdict(entity this, float touch_triggers);
60 void _Movetype_LinkEdict_TouchAreaGrid(entity this);
62 float _Movetype_UnstickEntity(entity this);
64 const int MAX_CLIP_PLANES = 5;
67 const int MOVETYPE_NONE = 0;
68 const int MOVETYPE_ANGLENOCLIP = 1;
69 const int MOVETYPE_ANGLECLIP = 2;
70 const int MOVETYPE_WALK = 3;
71 const int MOVETYPE_STEP = 4;
72 const int MOVETYPE_FLY = 5;
73 const int MOVETYPE_TOSS = 6;
74 const int MOVETYPE_PUSH = 7;
75 const int MOVETYPE_NOCLIP = 8;
76 const int MOVETYPE_FLYMISSILE = 9;
77 const int MOVETYPE_BOUNCE = 10;
78 const int MOVETYPE_BOUNCEMISSILE = 11; // Like bounce but doesn't lose speed on bouncing
79 const int MOVETYPE_FOLLOW = 12;
80 const int MOVETYPE_PHYSICS = 32;
81 const int MOVETYPE_FLY_WORLDONLY = 33;
83 const int FL_ITEM = 256;
84 const int FL_ONGROUND = 512;
87 const int MOVETYPE_FAKEPUSH = 13;
89 const int MOVEFLAG_VALID = BIT(23);
90 const int MOVEFLAG_Q2AIRACCELERATE = BIT(0);
91 const int MOVEFLAG_NOGRAVITYONGROUND = BIT(1);
92 const int MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE = BIT(2);
95 #define moveflags STAT(MOVEFLAGS)