From: bones_was_here Date: Wed, 12 Oct 2022 12:44:29 +0000 (+1000) Subject: func_door: fix .dmg field having no effect X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2a0df46ba7df2088d9d4c6746ceb049df8b32436;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 1e8dcec700..1a0e12162a 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