From 346812e2688a423edbfdfec5c6358e2765c73198 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 17 Sep 2018 17:54:21 +1000 Subject: [PATCH] Set the attacker as activator when a door is hit --- 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 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); } } -- 2.39.2