]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
melee: make it work even across warpzones when hitting yourself. MORE THINKING WITH...
authorRudolf Polzer <divverent@xonotic.org>
Thu, 8 Mar 2012 15:39:18 +0000 (16:39 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 8 Mar 2012 15:39:34 +0000 (16:39 +0100)
qcsrc/server/w_shotgun.qc

index fcf9a27c27482a25432747d58cc37ee974fae513..e5e8336cdf047433285b0b765a51c6edc7520b0c 100644 (file)
@@ -85,7 +85,7 @@ void shotgun_meleethink (void)
                        + (v_up * swing_factor * autocvar_g_balance_shotgun_secondary_melee_swing_up)
                        + (v_right * swing_factor * autocvar_g_balance_shotgun_secondary_melee_swing_side));
 
-               WarpZone_traceline_antilag(self.realowner, self.realowner.origin + self.realowner.view_ofs, targpos, FALSE, self.realowner, ANTILAG_LATENCY(self.realowner));
+               WarpZone_traceline_antilag(self, self.realowner.origin + self.realowner.view_ofs, targpos, FALSE, self, ANTILAG_LATENCY(self.realowner));
                
                // draw lightning beams for debugging
                //te_lightning2(world, targpos, self.realowner.origin + self.realowner.view_ofs + v_forward * 5 - v_up * 5);