From: Mario Date: Mon, 17 Sep 2018 07:54:21 +0000 (+1000) Subject: Set the attacker as activator when a door is hit X-Git-Tag: xonotic-v0.8.5~1853 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=346812e2688a423edbfdfec5c6358e2765c73198;p=xonotic%2Fxonotic-data.pk3dir.git Set the attacker as activator when a door is hit --- diff --git a/qcsrc/common/mapobjects/func/door.qc b/qcsrc/common/mapobjects/func/door.qc index 8d40a377b..b7418298c 100644 --- a/qcsrc/common/mapobjects/func/door.qc +++ b/qcsrc/common/mapobjects/func/door.qc @@ -277,7 +277,7 @@ void door_damage(entity this, entity inflictor, entity attacker, float damage, i { SetResourceAmountExplicit(this.owner, RESOURCE_HEALTH, this.owner.max_health); this.owner.takedamage = DAMAGE_NO; // will be reset upon return - door_use(this.owner, NULL, NULL); + door_use(this.owner, attacker, NULL); } }