MCPcopy Create free account
hub / github.com/ValveSoftware/source-sdk-2013 / Think

Method Think

src/game/server/gameweaponmanager.cpp:181–276  ·  view source on GitHub ↗

--------------------------------------------------------- Count of all the weapons in the world of my type and see if we have a surplus. If there is a surplus, try to find suitable candidates for removal. Right now we just remove the first weapons we find that are behind the player, or are out of the player's PVS. Later, we may want to score the results so that we removed the farthest gun that's

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 15

AssertFunction · 0.85
UTIL_GetLocalPlayerFunction · 0.85
UTIL_FindClientInPVSFunction · 0.85
UTIL_DistApproxFunction · 0.85
UTIL_RemoveFunction · 0.85
IsEffectActiveMethod · 0.80
IsRemoveableMethod · 0.80
DevMsgFunction · 0.70
FindEntityByClassnameMethod · 0.45
AddToTailMethod · 0.45
CountMethod · 0.45
FastRemoveMethod · 0.45

Tested by

no test coverage detected