// aim toward the nearest possible victim. The greater the skill, the quicker the aim
// this only does the aiming, checking and swallowing is handled below
- entity scan;
- scan = findradius(self.origin, cvar("g_balance_vore_swallow_range"));
- if(Swallow_condition_check_bot(scan))
- bot_aimdir(scan.origin + scan.view_ofs - self.origin - self.view_ofs, -1);
+ entity head;
+ head = findradius(self.origin, cvar("g_balance_vore_swallow_range"));
+ while(head)
+ {
+ if(Swallow_condition_check_bot(head))
+ bot_aimdir(head.origin + head.view_ofs - self.origin - self.view_ofs, -1);
+ head = head.chain;
+ }
// now do the actual checking and swallowing
entity prey;