]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/physics/movetypes/push.qc
Use MOVE_NOMONSTERS to ensure the entity is only testing against platforms
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / physics / movetypes / push.qc
index 3df79a0380e2dcfbba1c0d62bfba935831332642..9179ec4a2fc31085aec1c5096b056fe58d590937 100644 (file)
@@ -93,7 +93,7 @@ void _Movetype_PushMove(entity this, float dt) // SV_PushMove
                // final position, move it
                if (!IS_ONGROUND(check) || check.groundentity != this)
                {
-                       tracebox(check.origin, check.mins, check.maxs, check.origin, MOVE_NORMAL, check);
+                       tracebox(check.origin, check.mins, check.maxs, check.origin, MOVE_NOMONSTERS, check);
                        if(!trace_startsolid)
                                continue;
                }
@@ -148,7 +148,7 @@ void _Movetype_PushMove(entity this, float dt) // SV_PushMove
                        UNSET_ONGROUND(check);
 
                // if it is still inside the pusher, block
-               tracebox(check.origin, check.mins, check.maxs, check.origin, MOVE_HITMODEL, check);
+               tracebox(check.origin, check.mins, check.maxs, check.origin, MOVE_NOMONSTERS, check);
                if(trace_startsolid)
                {
                        if(_Movetype_NudgeOutOfSolid_PivotIsKnownGood(check, pivot))