From: MirceaKitsune Date: Mon, 2 May 2011 11:20:38 +0000 (+0300) Subject: Don't account view offset when attempting to swallow players. Fixes macro bots being... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7c3700d0623bbd2f54d8cd1df59b3df0587af480;p=voretournament%2Fvoretournament.git Don't account view offset when attempting to swallow players. Fixes macro bots being unable to eat other players properly, and might improve bot performance overall. --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index f389d22d..790c000a 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -18,7 +18,7 @@ entity Swallow_player_check() swallow_range = cvar("g_balance_vore_swallow_range"); if(self.scale) // we can swallow from further or closer based on our size swallow_range *= self.scale; - vore_w_shotorg = self.origin + self.view_ofs; + vore_w_shotorg = self.origin; vore_w_shotdir = v_forward; WarpZone_traceline_antilag(self, vore_w_shotorg, vore_w_shotorg + vore_w_shotdir * swallow_range, FALSE, self, ANTILAG_LATENCY(self));