From 9deff2b007234a212b79da9c6d95ea354adfdfea Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Sun, 29 Jan 2023 15:46:47 +0100 Subject: [PATCH] q3compat: use the correct origin for q3 jump pads --- qcsrc/common/mapobjects/trigger/jumppads.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcsrc/common/mapobjects/trigger/jumppads.qc b/qcsrc/common/mapobjects/trigger/jumppads.qc index eee980618..07af623dd 100644 --- a/qcsrc/common/mapobjects/trigger/jumppads.qc +++ b/qcsrc/common/mapobjects/trigger/jumppads.qc @@ -137,8 +137,7 @@ bool jumppad_push(entity this, entity targ) if(STAT(Q3COMPAT)) { - org.z += targ.mins_z; - org.z += 1; // off by 1! + org = (this.absmin + this.absmax) * 0.5; } if(this.enemy) -- 2.39.2