From: bones_was_here Date: Fri, 15 Sep 2023 06:50:44 +0000 (+1000) Subject: func_door: fix .dmg field having no effect X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0a86fb94d9f86e1db252628c4136d3197f62488e;p=xonotic%2Fxonotic-data.pk3dir.git func_door: fix .dmg field having no effect The player's .takedamage == DAMAGE_AIM not DAMAGE_YES --- diff --git a/qcsrc/common/mapobjects/func/door.qc b/qcsrc/common/mapobjects/func/door.qc index 8d59c298b..7688d740e 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