From 505981939b4aec442f36b791a4788896b67a8b32 Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Mon, 6 Feb 2023 06:31:31 +0100 Subject: [PATCH] new spawnflag that forces q3 jump pad behaviour on xonotic maps --- qcsrc/common/mapobjects/trigger/jumppads.qc | 2 +- qcsrc/common/mapobjects/trigger/jumppads.qh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/mapobjects/trigger/jumppads.qc b/qcsrc/common/mapobjects/trigger/jumppads.qc index 07af623dd..fc149e3c8 100644 --- a/qcsrc/common/mapobjects/trigger/jumppads.qc +++ b/qcsrc/common/mapobjects/trigger/jumppads.qc @@ -135,7 +135,7 @@ bool jumppad_push(entity this, entity targ) vector org = targ.origin; - if(STAT(Q3COMPAT)) + if(STAT(Q3COMPAT) || this.spawnflags & PUSH_STATIC) { org = (this.absmin + this.absmax) * 0.5; } diff --git a/qcsrc/common/mapobjects/trigger/jumppads.qh b/qcsrc/common/mapobjects/trigger/jumppads.qh index 268134e80..cd41a8eea 100644 --- a/qcsrc/common/mapobjects/trigger/jumppads.qh +++ b/qcsrc/common/mapobjects/trigger/jumppads.qh @@ -3,6 +3,7 @@ const int PUSH_ONCE = BIT(0); // legacy, deactivate with relay instead const int PUSH_SILENT = BIT(1); // not used? +const int PUSH_STATIC = BIT(12); IntrusiveList g_jumppads; STATIC_INIT(g_jumppads) { g_jumppads = IL_NEW(); } -- 2.39.2