From f1fb8c1024a83ba80f2372e15ac69908b32ea4c4 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 2 Feb 2018 03:38:01 +1000 Subject: [PATCH] Allow setting no delay on trigger_heal --- qcsrc/common/triggers/trigger/heal.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/triggers/trigger/heal.qc b/qcsrc/common/triggers/trigger/heal.qc index 61a65d8b5..f2345e8f5 100644 --- a/qcsrc/common/triggers/trigger/heal.qc +++ b/qcsrc/common/triggers/trigger/heal.qc @@ -16,7 +16,8 @@ void trigger_heal_touch(entity this, entity toucher) bool is_trigger = !boolean(!this.nottargeted && this.targetname != ""); if(is_trigger) EXACTTRIGGER_TOUCH(this, toucher); - toucher.triggerhealtime = time + this.delay; + if(this.delay > 0) + toucher.triggerhealtime = time + this.delay; bool playthesound = (this.spawnflags & 4); if (toucher.health < this.max_health) -- 2.39.2