From 906da9f1dc27307fbe26c0c3ea7ce67c2a979be0 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 23 Nov 2022 10:41:18 +1000 Subject: [PATCH] Set the entity's origin to the trace position before moving it out of solid --- qcsrc/server/world.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/world.qc b/qcsrc/server/world.qc index 4cba5f102..fd3b5b08d 100644 --- a/qcsrc/server/world.qc +++ b/qcsrc/server/world.qc @@ -2279,9 +2279,9 @@ void DropToFloor_Handler(entity this) else if(trace_fraction < 1) { LOG_DEBUGF("DropToFloor_Handler: %v fixed badly placed entity", this.origin); + setorigin(this, trace_endpos); if(autocvar_sv_gameplayfix_droptofloorstartsolid_nudgetocorrect) move_out_of_solid(this); - setorigin(this, trace_endpos); SET_ONGROUND(this); this.groundentity = trace_ent; // if support is destroyed, keep suspended (gross hack for floating items in various maps) -- 2.39.2