while(sradius > 100)
{
IL_EACH(g_waypoints, vdist(it.origin - org, <, sradius)
- && vdist(it.origin - org, >, max(100, sradius - range)),
+ && vdist(it.origin - org, >, max(100, sradius - range))
+ && !(it.wpflags & WAYPOINTFLAG_TELEPORT),
{
if(vdist(it.origin - this.wp_goal_prev0.origin, <, range * 1.5))
f = 0.1;
entity theEnemy = e;
entity best_wp = NULL;
float best_dist = 10000;
- IL_EACH(g_waypoints, vdist(it.origin - theEnemy.origin, <, 500) && vdist(it.origin - this.origin, >, 100),
+ IL_EACH(g_waypoints, vdist(it.origin - theEnemy.origin, <, 500)
+ && vdist(it.origin - this.origin, >, 100)
+ && !(it.wpflags & WAYPOINTFLAG_TELEPORT),
{
float dist = vlen(it.origin - theEnemy.origin);
if (dist < best_dist)