From: bones_was_here Date: Fri, 5 Nov 2021 10:22:40 +0000 (+1000) Subject: Set groundentity when sv_gameplayfix_downtracesupportsongroundflag detects a floor X-Git-Tag: xonotic-v0.8.5~239^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6c9d3ae38fc27bae6c9aff44c4f7c349e17e2b1f;p=xonotic%2Fxonotic-data.pk3dir.git Set groundentity when sv_gameplayfix_downtracesupportsongroundflag detects a floor Fixes movers not carrying player when walking onto them with no z velocity --- 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