From 2a0df46ba7df2088d9d4c6746ceb049df8b32436 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Wed, 12 Oct 2022 22:44:29 +1000 Subject: [PATCH] func_door: fix .dmg field having no effect The player's .takedamage == DAMAGE_AIM not DAMAGE_YES --- qcsrc/common/mapobjects/func/door.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/mapobjects/func/door.qc b/qcsrc/common/mapobjects/func/door.qc index 1e8dcec70..1a0e12162 100644 --- a/qcsrc/common/mapobjects/func/door.qc +++ b/qcsrc/common/mapobjects/func/door.qc @@ -43,7 +43,7 @@ void door_blocked(entity this, entity blocker) else { #ifdef SVQC - if((this.dmg) && (blocker.takedamage == DAMAGE_YES)) // Shall we bite? + if(this.dmg && blocker.takedamage != DAMAGE_NO) // Shall we bite? Damage (blocker, this, this, this.dmg, DEATH_HURTTRIGGER.m_id, DMG_NOWEP, blocker.origin, '0 0 0'); #endif -- 2.39.2