}
else
{
- if(self.goalentity && self.goalentity.target != "" && self.enemy == world)
- {
- if(self.goalentity.target2 != "")
- if(random() > 0.5)
- self.target = self.goalentity.target2;
- else
- self.target = self.goalentity.target;
- else
- self.target = self.goalentity.target; // handled next think frame
- }
-
movelib_beak_simple(stopspeed);
if(time > self.attack_finished_single)
if(time > self.pain_finished)
monster_speed_run = monster_speed_walk = 0;
return FALSE;
}
- /*
+
if((vlen(self.goalentity.origin - self.origin) <= 100 && self.goalentity.classname == "td_waypoint") || (vlen(self.goalentity.origin - self.origin) <= 200 && self.flags & FL_FLY && self.goalentity.classname == "td_waypoint"))
{
- if(self.goalentity.target2 != "")
+ if(self.goalentity.target2)
{
if(random() > 0.5)
self.target = self.goalentity.target2;
}
else
self.target = self.goalentity.target;
-
+
self.goalentity = find(world, targetname, self.target);
- } */
+ }
if(self.goalentity == world)
self.goalentity = PickGenerator();