From: Rudolf Polzer Date: Thu, 8 Mar 2012 15:39:18 +0000 (+0100) Subject: melee: make it work even across warpzones when hitting yourself. MORE THINKING WITH... X-Git-Tag: xonotic-v0.7.0~55^2~7^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b37945898f5dd88084d757d4c9cc71055f3dcb91;p=xonotic%2Fxonotic-data.pk3dir.git melee: make it work even across warpzones when hitting yourself. MORE THINKING WITH PORTALS! --- diff --git a/qcsrc/server/w_shotgun.qc b/qcsrc/server/w_shotgun.qc index fcf9a27c2..e5e8336cd 100644 --- a/qcsrc/server/w_shotgun.qc +++ b/qcsrc/server/w_shotgun.qc @@ -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);