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

Function UTIL_PlayerByIndex

dlls/util.cpp:579–593  ·  view source on GitHub ↗

returns a CBaseEntity pointer to a player by index. Only returns if the player is spawned and connected otherwise returns NULL Index is 1 based

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

ThinkMethod · 0.70
InitHUDMethod · 0.70
CountPlayersFunction · 0.70
CheckForEgonsMethod · 0.70
Observer_CheckTargetMethod · 0.70
InitHUDMethod · 0.70
TeamWithFewestPlayersMethod · 0.70
RecountTeamsMethod · 0.70
UTIL_ScreenShakeFunction · 0.70
UTIL_ScreenFadeAllFunction · 0.70

Calls 1

INDEXENTFunction · 0.70

Tested by

no test coverage detected