I guess this code is to check if an entity can see another depending on the distance and the view angle? If yes, this is nice and useful laugh