From: MrBougo Date: Tue, 31 Aug 2010 13:01:23 +0000 (+0200) Subject: make the shotgun melee attack damage bodies/clones as well X-Git-Tag: xonotic-v0.1.0preview~320^2~7^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3d3e49c4cf34e0168aca93771cd8807111511124;p=xonotic%2Fxonotic-data.pk3dir.git make the shotgun melee attack damage bodies/clones as well --- diff --git a/qcsrc/server/w_shotgun.qc b/qcsrc/server/w_shotgun.qc index b186230ec..5ecfcfac3 100644 --- a/qcsrc/server/w_shotgun.qc +++ b/qcsrc/server/w_shotgun.qc @@ -65,7 +65,7 @@ void shotgun_meleethink (void) WarpZone_traceline_antilag(self.owner, self.owner.origin + self.owner.view_ofs, targpos, FALSE, self.owner, ANTILAG_LATENCY(self.owner)); // apply the damage, also remove self - if(trace_fraction < 1 && trace_ent.takedamage == DAMAGE_AIM && trace_ent.classname == "player") + if(trace_fraction < 1 && trace_ent.takedamage == DAMAGE_AIM && (trace_ent.classname == "player" || trace_ent.classname == "body")) { vector force; force = angle * cvar("g_balance_shotgun_secondary_force");