25 this.angles_x -= 360.0 *
floor(this.angles_x * (1.0 / 360.0));
27 this.angles_z -= 360.0 *
floor(this.angles_z * (1.0 / 360.0));
34 LOG_INFOF(
"_Movetype_Physics_Push: entity #%d, unrecognized solid type %d",
etof(
this), this.
solid);
67 this.angles_x -= 360.0 *
floor(this.angles_x * (1.0 / 360.0));
69 this.angles_z -= 360.0 *
floor(this.angles_z * (1.0 / 360.0));
77 switch(check.move_movetype)
89 if(check.owner ==
this ||
this.owner == check)
95 if (!
IS_ONGROUND(check) || check.groundentity !=
this)
97 tracebox(check.origin, check.mins, check.maxs, check.origin,
MOVE_NOMONSTERS, check);
101 vector pivot = check.mins + 0.5 * (check.maxs - check.mins);
110 org2.x = (
org * forward);
111 org2.y = (
org * left);
119 check.moved_from = check.origin;
120 check.moved_fromangles = check.angles;
126 check.origin = check.origin + move;
132 int savesolid = this.
solid;
138 this.
solid = savesolid;
143 this.
solid = savesolid;
152 tracebox(check.origin, check.mins, check.maxs, check.origin,
MOVE_NOMONSTERS, check);
166 if(check.mins_x == check.maxs_x)
171 check.mins_x = check.mins_y = 0;
172 check.maxs = check.mins;
184 check.origin = check.moved_from;
185 check.angles = check.moved_fromangles;
195 this.angles_x -= 360.0 *
floor(this.angles_x * (1.0 / 360.0));
197 this.angles_z -= 360.0 *
floor(this.angles_z * (1.0 / 360.0));
203 float oldltime = this.
ltime;
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
const float MOVE_NOMONSTERS
const float SOLID_SLIDEBOX
const float SOLID_TRIGGER
#define MAKE_VECTORS(angles, forward, right, up)
Same as the makevectors builtin but uses the provided locals instead of the v_* globals.
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
#define IL_EACH(this, cond, body)
#define IL_CLEAR(this)
Remove all elements.
void _Movetype_LinkEdict(entity this, bool touch_triggers)
bool _Movetype_PushEntity(entity this, vector push, bool dolink)
bool _Movetype_NudgeOutOfSolid_PivotIsKnownGood(entity this, vector pivot)
const int MOVETYPE_FOLLOW
const int MOVETYPE_FAKEPUSH
const int MOVETYPE_FLY_WORLDONLY
#define UNSET_ONGROUND(s)
const int MOVETYPE_PHYSICS
const int MOVETYPE_NOCLIP
void _Movetype_Physics_Push(entity this, float dt)
void _Movetype_PushMove(entity this, float dt)
IntrusiveList g_pushmove_moved