From 41f9357f4833401f27f2a5ebf45f7f47a813f04e Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 8 Feb 2023 00:34:19 +1000 Subject: [PATCH] Also reverse trace_plane_normal to match the engine's behaviour --- qcsrc/common/physics/movetypes/movetypes.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/common/physics/movetypes/movetypes.qc b/qcsrc/common/physics/movetypes/movetypes.qc index e60caec31..651b6f3d6 100644 --- a/qcsrc/common/physics/movetypes/movetypes.qc +++ b/qcsrc/common/physics/movetypes/movetypes.qc @@ -427,6 +427,7 @@ void _Movetype_Impact(entity this, entity toucher) // SV_Impact if(toucher.solid != SOLID_NOT && gettouch(toucher) && !wasfreed(this) && !wasfreed(toucher)) { trace_endpos = toucher.origin; + trace_plane_normal = -trace_plane_normal; trace_plane_dist = -trace_plane_dist; trace_ent = this; trace_dpstartcontents = 0; -- 2.39.2