You also have to remember that they can see just their hand, or maybe their whole body, so the UTIL_Trace may show there is an entity between the players vision and an enemy, because they may only see their rifle sticking out from behind boxes.
----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, May 31, 2005 3:24 PM Subject: [hlcoders] Enemies within LOS > What would be the most efficient way to get all enemies within direct LOS? > My thoughts as of now: > > 1. Get a list of entities within PVS with UTIL_EntitiesInPVS() > 2. Filter list for hostile player entities. > 3. UTIL_Trace[something] to each. (Which 'something' is best?) > > Thanks. > > -JS > > -------------------------------------------------------------------- > mail2web - Check your email from the web at > http://mail2web.com/ . > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

