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

Method IndexToReference

core/HalfLife2.cpp:1083–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1081*/
1082
1083cell_t CHalfLife2::IndexToReference(int entIndex)
1084{
1085 CBaseEntity *pEnt = ReferenceToEntity(entIndex);
1086 if (!pEnt)
1087 {
1088 return INVALID_EHANDLE_INDEX;
1089 }
1090
1091 return EntityToReference(pEnt);
1092}
1093
1094int CHalfLife2::ReferenceToIndex(cell_t entRef)
1095{

Callers 4

IndexToReferenceFunction · 0.80
smn_BfReadEntityFunction · 0.80
GetEntDataEntFunction · 0.80
SDK_OnLoadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected