Add a compatibility hack for trigger_multiple and func_button (makes dfwc2017-2 playable)
authorMario <mario.mario@y7mail.com>
Sat, 28 Dec 2019 18:55:38 +0000 (04:55 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 28 Dec 2019 18:55:38 +0000 (04:55 +1000)
qcsrc/common/mapobjects/func/button.qc
qcsrc/common/mapobjects/trigger/multi.qc

index 56bfd4148d70bf7cde682bec1c83d4fb0f633d3a..a9c0fa7261124747d1392ea785cdcd53ebb609d7 100644 (file)
@@ -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);
 
index c71dc3794822d5f41094411a7a6f3242b904219f..1fef1ffb356b2e63d817a33b27c02389b6d00a7c 100644 (file)
@@ -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;