From 14b1d18572d357f079a93d2183cac92655915944 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 25 Jun 2017 19:34:20 +1000 Subject: [PATCH] Always apply the owner change to func_breakable when being destroyed, not just in assault (allows crediting explosion to the attacker) --- qcsrc/common/triggers/func/breakable.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/triggers/func/breakable.qc b/qcsrc/common/triggers/func/breakable.qc index 81a610190..79c2feb4e 100644 --- a/qcsrc/common/triggers/func/breakable.qc +++ b/qcsrc/common/triggers/func/breakable.qc @@ -271,7 +271,7 @@ void func_breakable_damage(entity this, entity inflictor, entity attacker, float this.takedamage = DAMAGE_NO; this.event_damage = func_null; - if(IS_CLIENT(attacker) && this.classname == "func_assault_destructible") + if(IS_CLIENT(attacker)) //&& this.classname == "func_assault_destructible") { this.owner = attacker; this.realowner = attacker; -- 2.39.2