{\r
// check if we can swallow a player instead of firing our weapon\r
\r
+ float swallow_range;\r
vector vore_w_shotorg, vore_w_shotdir;\r
+\r
+ 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_shotdir = v_forward;\r
\r
- WarpZone_traceline_antilag(self, vore_w_shotorg, vore_w_shotorg + vore_w_shotdir * cvar("g_balance_vore_swallow_range"), FALSE, self, ANTILAG_LATENCY(self));\r
+ WarpZone_traceline_antilag(self, vore_w_shotorg, vore_w_shotorg + vore_w_shotdir * swallow_range, FALSE, self, ANTILAG_LATENCY(self));\r
if(trace_fraction < 1)\r
if(trace_ent.classname == "player")\r
return trace_ent;\r