]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/w_hook.qc
Fix owner for hookbomb so that it doesn't hurt the person who fired it ^_^
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / w_hook.qc
index f4e8cac4d336768b924ef2ca84ec661d4b68eb61..d3c38fc0543717b331bc3c07ce790f12bf703691 100644 (file)
@@ -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)