Don't account view offset when attempting to swallow players. Fixes macro bots being...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 11:20:38 +0000 (14:20 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 11:20:38 +0000 (14:20 +0300)
data/qcsrc/server/vore.qc

index f389d22d7b0cff77f6a7ba88c1e70f2c2bc6778d..790c000a3667a83bd0f5da0bfedea4aa02dcf54c 100644 (file)
@@ -18,7 +18,7 @@ entity Swallow_player_check()
        swallow_range = cvar("g_balance_vore_swallow_range");\r
        if(self.scale) // we can swallow from further or closer based on our size\r
                swallow_range *= self.scale;\r
-       vore_w_shotorg = self.origin + self.view_ofs;\r
+       vore_w_shotorg = self.origin;\r
        vore_w_shotdir = v_forward;\r
 \r
        WarpZone_traceline_antilag(self, vore_w_shotorg, vore_w_shotorg + vore_w_shotdir * swallow_range, FALSE, self, ANTILAG_LATENCY(self));\r