From: Mario Date: Sun, 25 Jun 2017 09:34:20 +0000 (+1000) Subject: Always apply the owner change to func_breakable when being destroyed, not just in... X-Git-Tag: xonotic-v0.8.5~2697 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=14b1d18572d357f079a93d2183cac92655915944;p=xonotic%2Fxonotic-data.pk3dir.git Always apply the owner change to func_breakable when being destroyed, not just in assault (allows crediting explosion to the attacker) --- 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;