From: Samual Date: Wed, 28 Sep 2011 22:45:23 +0000 (-0400) Subject: Fix owner for hookbomb so that it doesn't hurt the person who fired it ^_^ X-Git-Tag: xonotic-v0.6.0~40^2~92^2~1^2~37 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=24ddcae65e55beec3810f55b6e4dfbfe3f76343d;p=xonotic%2Fxonotic-data.pk3dir.git Fix owner for hookbomb so that it doesn't hurt the person who fired it ^_^ --- diff --git a/qcsrc/server/w_hook.qc b/qcsrc/server/w_hook.qc index f4e8cac4d..d3c38fc05 100644 --- a/qcsrc/server/w_hook.qc +++ b/qcsrc/server/w_hook.qc @@ -61,7 +61,7 @@ void W_Hook_Damage (entity inflictor, entity attacker, float damage, float death print(strcat("hookbomb health ", ftos(self.health), " after ", ftos(damage), " damage... (at time: ", ftos(time), ")\n")); if (self.health <= 0) - W_PrepareExplosionByDamage(attacker, W_Hook_Explode2); + W_PrepareExplosionByDamage(self.realowner, W_Hook_Explode2); } void W_Hook_Touch2 (void)