]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
make the shotgun melee attack damage bodies/clones as well
authorMrBougo <mrbougo@xonotic.org>
Tue, 31 Aug 2010 13:01:23 +0000 (15:01 +0200)
committerMrBougo <mrbougo@xonotic.org>
Tue, 31 Aug 2010 13:01:23 +0000 (15:01 +0200)
qcsrc/server/w_shotgun.qc

index b186230ecf5b5f36b7b506717edf3f1d31a4840a..5ecfcfac324faca416eb17924b5a416b72d3b420 100644 (file)
@@ -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
        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");
        {
                vector force;
                force = angle * cvar("g_balance_shotgun_secondary_force");