From 33205d85e6afeed580bd50883d087eb045adbc86 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Mon, 10 Aug 2020 01:48:29 +1000 Subject: [PATCH] q3compat: make trigger_hurt without spawnflags 16 deal damage every frame even if triggerhurttime still on cooldown --- qcsrc/common/mapobjects/trigger/hurt.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/mapobjects/trigger/hurt.qc b/qcsrc/common/mapobjects/trigger/hurt.qc index 19447c41b9..246bfdf9b5 100644 --- a/qcsrc/common/mapobjects/trigger/hurt.qc +++ b/qcsrc/common/mapobjects/trigger/hurt.qc @@ -22,10 +22,10 @@ void trigger_hurt_touch(entity this, entity toucher) if (toucher.iscreature) { if (toucher.takedamage) - if (toucher.triggerhurttime < time) + if (toucher.triggerhurttime < time || (q3compat && !(this.spawnflags & HURT_SLOW))) { EXACTTRIGGER_TOUCH(this, toucher); - toucher.triggerhurttime = time + ((q3compat && !(this.spawnflags & HURT_SLOW)) ? 0.1 : 1); + toucher.triggerhurttime = time + 1; entity own; own = this.enemy; -- 2.39.2