MCPcopy Create free account
hub / github.com/ValveSoftware/halflife / UTIL_GetClosestPlayer

Function UTIL_GetClosestPlayer

game_shared/bot/bot_util.cpp:343–370  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------------------------------- * Return the closest active player to the given position. * If 'distance' is non-NULL, the distance to the closest player is returned in it. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

IsSpotOccupiedFunction · 0.85
FindNearbyRetreatSpotFunction · 0.85

Calls 3

IsEntityValidFunction · 0.85
UTIL_PlayerByIndexFunction · 0.50
IsAliveMethod · 0.45

Tested by

no test coverage detected