MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / EntityToReference

Method EntityToReference

core/HalfLife2.cpp:977–982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

975}
976
977cell_t CHalfLife2::EntityToReference(CBaseEntity *pEntity)
978{
979 IServerUnknown *pUnknown = (IServerUnknown *)pEntity;
980 CBaseHandle hndl = pUnknown->GetRefEHandle();
981 return (hndl.ToInt() | ENTREF_MASK);
982}
983
984CBaseEntity *CHalfLife2::ReferenceToEntity(cell_t entRef)
985{

Callers 7

FireEventDetourMethod · 0.80
UpdateEntRefMethod · 0.80
HookSingleEntityOutputFunction · 0.80
GetGameRulesProxyEntFunction · 0.80
OnClientPutInServerMethod · 0.80
OnEntityCreatedMethod · 0.80
OnEntityDeletedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected