From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Mon, 6 Feb 2023 05:31:31 +0000 (+0100) Subject: new spawnflag that forces q3 jump pad behaviour on xonotic maps X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=505981939b4aec442f36b791a4788896b67a8b32;p=xonotic%2Fxonotic-data.pk3dir.git new spawnflag that forces q3 jump pad behaviour on xonotic maps --- 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(); }