5 bool autocvar_physics_ode;
7 int autocvar_sv_qcphysics = 1;
16 #define IS_ONGROUND(s) boolean((s).flags & FL_ONGROUND) 17 #define SET_ONGROUND(s) ((s).flags |= FL_ONGROUND) 18 #define UNSET_ONGROUND(s) ((s).flags &= ~FL_ONGROUND) 19 #define IS_ONSLICK(s) boolean((s).flags & FL_ONSLICK) 20 #define SET_ONSLICK(s) ((s).flags |= FL_ONSLICK) 21 #define UNSET_ONSLICK(s) ((s).flags &= ~FL_ONSLICK) 23 #define GAMEPLAYFIX_DOWNTRACEONGROUND(s) STAT(GAMEPLAYFIX_DOWNTRACEONGROUND) 24 #define GAMEPLAYFIX_EASIERWATERJUMP(s) STAT(GAMEPLAYFIX_EASIERWATERJUMP) 25 #define GAMEPLAYFIX_STEPDOWN(s) STAT(GAMEPLAYFIX_STEPDOWN) 26 #define GAMEPLAYFIX_STEPDOWN_MAXSPEED(s) STAT(GAMEPLAYFIX_STEPDOWN_MAXSPEED) 27 #define GAMEPLAYFIX_STEPMULTIPLETIMES(s) STAT(GAMEPLAYFIX_STEPMULTIPLETIMES) 28 #define GAMEPLAYFIX_UNSTICKPLAYERS(s) STAT(GAMEPLAYFIX_UNSTICKPLAYERS) 29 #define GAMEPLAYFIX_WATERTRANSITION(s) STAT(GAMEPLAYFIX_WATERTRANSITION) 30 #define GAMEPLAYFIX_SLIDEMOVEPROJECTILES(s) STAT(GAMEPLAYFIX_SLIDEMOVEPROJECTILES) 31 #define GAMEPLAYFIX_GRENADEBOUNCESLOPES(s) STAT(GAMEPLAYFIX_GRENADEBOUNCESLOPES) 32 #define GAMEPLAYFIX_NOAIRBORNCORPSE(s) STAT(GAMEPLAYFIX_NOAIRBORNCORPSE) 33 #define NOAIRBORNCORPSE_ALLOWSUSPENDED(s) STAT(NOAIRBORNCORPSE_ALLOWSUSPENDED) 34 #define UPWARD_VELOCITY_CLEARS_ONGROUND(s) STAT(GAMEPLAYFIX_UPVELOCITYCLEARSONGROUND) 35 #define GAMEPLAYFIX_DELAYPROJECTILES(s) STAT(GAMEPLAYFIX_DELAYPROJECTILES) 38 #define PHYS_STEPHEIGHT(s) STAT(MOVEVARS_STEPHEIGHT) 39 #define PHYS_NOSTEP(s) STAT(NOSTEP) 40 #define PHYS_JUMPSTEP(s) STAT(MOVEVARS_JUMPSTEP) 41 #define PHYS_WALLFRICTION(s) STAT(MOVEVARS_WALLFRICTION) 43 #define PHYS_WALLCLIP(s) STAT(MOVEVARS_WALLCLIP) 49 #define GAMEPLAYFIX_GRAVITYUNAFFECTEDBYTICRATE (boolean(moveflags & MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE)) 50 #define GAMEPLAYFIX_NOGRAVITYONGROUND (boolean(moveflags & MOVEFLAG_NOGRAVITYONGROUND)) 51 #define GAMEPLAYFIX_Q2AIRACCELERATE (boolean(moveflags & MOVEFLAG_Q2AIRACCELERATE)) 53 #define PHYS_GRAVITY(s) STAT(MOVEVARS_GRAVITY, s) 55 #define PHYS_ENTGRAVITY(s) STAT(MOVEVARS_ENTGRAVITY, s) 57 #define TICRATE ticrate 61 #define GAMEPLAYFIX_GRAVITYUNAFFECTEDBYTICRATE autocvar_sv_gameplayfix_gravityunaffectedbyticrate 62 #define GAMEPLAYFIX_NOGRAVITYONGROUND autocvar_sv_gameplayfix_nogravityonground 63 #define GAMEPLAYFIX_Q2AIRACCELERATE autocvar_sv_gameplayfix_q2airaccelerate 65 #define PHYS_GRAVITY(s) autocvar_sv_gravity 66 #define PHYS_ENTGRAVITY(s) ((s).gravity) 68 #define TICRATE sys_frametime 85 .void(
float,
float)contentstransition;
131 const int MOVETYPE_ANGLENOCLIP = 1;
132 const int MOVETYPE_ANGLECLIP = 2;
147 const int MOVETYPE_ANGLENOCLIP = 1;
148 const int MOVETYPE_ANGLECLIP = 2;
162 #define moveflags STAT(MOVEFLAGS) void Movetype_Physics_MatchServer(entity this, bool sloppy)
void Movetype_Physics_MatchTicrate(entity this, float tr, bool sloppy)
const int WATERLEVEL_SUBMERGED
const float MOVETYPE_PHYSICS
const int MAX_CLIP_PLANES
void _Movetype_CheckStuck(entity this)
const int MOVEFLAG_NOGRAVITYONGROUND
const int MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE
float MOVETYPE_BOUNCEMISSILE
int _Movetype_FlyMove(entity this, float dt, bool applygravity, bool applystepnormal, float stepheight)
void Movetype_Physics_NoMatchTicrate(entity this, float movedt, bool isclient)
float move_suspendedinair
const int MOVETYPE_FAKEPUSH
const int MOVEFLAG_Q2AIRACCELERATE
const int WATERLEVEL_NONE
bool _Movetype_NudgeOutOfSolid_PivotIsKnownGood(entity this, vector pivot)
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
void _Movetype_CheckVelocity(entity this)
void _Movetype_CheckWaterTransition(entity ent)
void _Movetype_LinkEdict(entity this, float touch_triggers)
const int MOVETYPE_QCENTITY
float MOVETYPE_FLY_WORLDONLY
void _Movetype_PushEntityTrace(entity this, vector push)
void Movetype_Physics_NoMatchServer(entity this)
const int WATERLEVEL_WETFEET
vector(float skel, float bonenum) _skel_get_boneabs_hidden
float MOVETYPE_FLYMISSILE
vector _Movetype_ClipVelocity(vector vel, vector norm, float f)
int _Movetype_UnstickEntity(entity this)
void _Movetype_WallFriction(entity this, vector stepnormal)
void _Movetype_LinkEdict_TouchAreaGrid(entity this)
const int WATERLEVEL_SWIMMING
bool _Movetype_PushEntity(entity this, vector push, float failonstartsolid, bool dolink)
const int MOVETYPE_QCPLAYER
void set_movetype(entity this, int mt)
float _Movetype_CheckWater(entity ent)