You could simply increase the scan range and decide depending on their size how to go on. Or you write your own c_scan function:

you = ent_next(NULL);
while(you) {
if(vec_dist(your.x,...) < 500+your.max_x) {
just do it
}
you = ent_next(you);
}

If you need a scan cone in your own scan function, calculate the angle from the scan position to the entity and compare it to the scan direction.

Last edited by Superku; 04/21/10 13:45.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends