]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
new spawnflag that forces q3 jump pad behaviour on xonotic maps
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 6 Feb 2023 05:31:31 +0000 (06:31 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 6 Feb 2023 09:28:37 +0000 (10:28 +0100)
qcsrc/common/mapobjects/trigger/jumppads.qc
qcsrc/common/mapobjects/trigger/jumppads.qh

index 07af623ddcce7bedcbfbfb90b5030fbc637c0c8d..fc149e3c8793a0008c83a27062985e76e887cb1e 100644 (file)
@@ -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;
        }
index 268134e806757aa4f459295ad818bb4a8db013bc..cd41a8eea272f0260b604a93f89e0ae07c7529fd 100644 (file)
@@ -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(); }