From 6c9d3ae38fc27bae6c9aff44c4f7c349e17e2b1f Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Fri, 5 Nov 2021 20:22:40 +1000 Subject: [PATCH] Set groundentity when sv_gameplayfix_downtracesupportsongroundflag detects a floor Fixes movers not carrying player when walking onto them with no z velocity --- qcsrc/common/physics/movetypes/walk.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/common/physics/movetypes/walk.qc b/qcsrc/common/physics/movetypes/walk.qc index d74837927..da6d4cfc3 100644 --- a/qcsrc/common/physics/movetypes/walk.qc +++ b/qcsrc/common/physics/movetypes/walk.qc @@ -46,7 +46,11 @@ void _Movetype_Physics_Walk(entity this, float dt) // SV_WalkMove else type = MOVE_NORMAL; tracebox(upmove, this.mins, this.maxs, downmove, type, this); if (trace_fraction < 1 && trace_plane_normal.z > 0.7) + { clip |= 1; // but we HAVE found a floor + // set groundentity so we get carried when walking onto a mover + this.groundentity = trace_ent; + } } // if the move did not hit the ground at any point, we're not on ground -- 2.39.2