From 4493eb4badbe8e970b003ffd2f084954c9a12c00 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 22 Sep 2020 23:53:49 +1000 Subject: [PATCH] Implement support for target_delay (compatibility spawn function for target_relay with a default wait time of 1 second) --- qcsrc/common/mapobjects/trigger/relay.qc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qcsrc/common/mapobjects/trigger/relay.qc b/qcsrc/common/mapobjects/trigger/relay.qc index f99d364ae..da4664c9d 100644 --- a/qcsrc/common/mapobjects/trigger/relay.qc +++ b/qcsrc/common/mapobjects/trigger/relay.qc @@ -23,4 +23,13 @@ spawnfunc(target_relay) { spawnfunc_trigger_relay(this); } + +spawnfunc(target_delay) +{ + if(!this.wait) + this.wait = 1; + if(!this.delay) + this.delay = this.wait; // fall back to quake 3 field + spawnfunc_trigger_relay(this); +} #endif -- 2.39.2