From 546d1368a438563708870ff028c12d84fc9808d0 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 29 Dec 2019 04:55:38 +1000 Subject: [PATCH] Add a compatibility hack for trigger_multiple and func_button (makes dfwc2017-2 playable) --- qcsrc/common/mapobjects/func/button.qc | 3 +++ qcsrc/common/mapobjects/trigger/multi.qc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/qcsrc/common/mapobjects/func/button.qc b/qcsrc/common/mapobjects/func/button.qc index 56bfd4148..a9c0fa726 100644 --- a/qcsrc/common/mapobjects/func/button.qc +++ b/qcsrc/common/mapobjects/func/button.qc @@ -206,6 +206,9 @@ spawnfunc(func_button) if (!this.lip) this.lip = 4; + if(this.wait == -1 && autocvar_sv_vq3compat) + this.wait = 0.1; // compatibility for q3df: "instant" return + if(this.noise != "") precache_sound(this.noise); diff --git a/qcsrc/common/mapobjects/trigger/multi.qc b/qcsrc/common/mapobjects/trigger/multi.qc index c71dc3794..1fef1ffb3 100644 --- a/qcsrc/common/mapobjects/trigger/multi.qc +++ b/qcsrc/common/mapobjects/trigger/multi.qc @@ -176,6 +176,9 @@ spawnfunc(trigger_multiple) this.wait = 0; this.use = multi_use; + if(this.wait == -1 && autocvar_sv_vq3compat) + this.wait = 0.1; // compatibility for q3df: "instant" return + EXACTTRIGGER_INIT; this.team_saved = this.team; -- 2.39.2