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)
9 .void(entity this) move_think;
10 .float move_nextthink;
17 .vector move_velocity;
18 .vector move_avelocity;
22 .void(float, float)contentstransition;
23 .float move_bounce_factor;
24 .float move_bounce_stopspeed;
25 .float move_nomonsters; // -1 for MOVE_NORMAL, otherwise a MOVE_ constant
28 .vector move_punchangle;
30 // should match sv_gameplayfix_fixedcheckwatertransition
31 float autocvar_cl_gameplayfix_fixedcheckwatertransition = 1;
33 .entity move_groundentity; // FIXME add move_groundnetworkentity?
34 .float move_suspendedinair;
35 .float move_didgravity;
37 void _Movetype_WallFriction(entity this, vector stepnormal);
38 int _Movetype_FlyMove(entity this, float dt, bool applygravity, vector stepnormal, float stepheight);
39 void _Movetype_CheckVelocity(entity this);
40 void _Movetype_CheckWaterTransition(entity ent);
41 float _Movetype_CheckWater(entity ent);
42 void _Movetype_LinkEdict_TouchAreaGrid(entity this);
43 void _Movetype_LinkEdict(entity this, float touch_triggers);
44 vector _Movetype_ClipVelocity(vector vel, vector norm, float f);
45 void _Movetype_PushEntityTrace(entity this, vector push);
46 float _Movetype_PushEntity(entity this, vector push, float failonstartsolid);
47 void makevectors_matrix(vector myangles);
49 void Movetype_Physics_MatchTicrate(entity this, float tr, bool sloppy);
50 void Movetype_Physics_MatchServer(entity this, bool sloppy);
51 void Movetype_Physics_NoMatchServer(entity this);
52 void _Movetype_LinkEdict(entity this, float touch_triggers);
53 void _Movetype_LinkEdict_TouchAreaGrid(entity this);
55 float _Movetype_UnstickEntity(entity this);
57 const int MAX_CLIP_PLANES = 5;
60 const int MOVETYPE_NONE = 0;
61 const int MOVETYPE_ANGLENOCLIP = 1;
62 const int MOVETYPE_ANGLECLIP = 2;
63 const int MOVETYPE_WALK = 3;
64 const int MOVETYPE_STEP = 4;
65 const int MOVETYPE_FLY = 5;
66 const int MOVETYPE_TOSS = 6;
67 const int MOVETYPE_PUSH = 7;
68 const int MOVETYPE_NOCLIP = 8;
69 const int MOVETYPE_FLYMISSILE = 9;
70 const int MOVETYPE_BOUNCE = 10;
71 const int MOVETYPE_BOUNCEMISSILE = 11; // Like bounce but doesn't lose speed on bouncing
72 const int MOVETYPE_FOLLOW = 12;
73 const int MOVETYPE_PHYSICS = 32;
74 const int MOVETYPE_FLY_WORLDONLY = 33;
76 const int FL_ITEM = 256;
77 const int FL_ONGROUND = 512;
80 const int MOVETYPE_FAKEPUSH = 13;
82 const int MOVEFLAG_VALID = BIT(23);
83 const int MOVEFLAG_Q2AIRACCELERATE = BIT(0);
84 const int MOVEFLAG_NOGRAVITYONGROUND = BIT(1);
85 const int MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE = BIT(2);
88 #define moveflags STAT(MOVEFLAGS)