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

Method FindEntityServerClass

core/HalfLife2.cpp:415–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415ServerClass *CHalfLife2::FindEntityServerClass(CBaseEntity *pEntity)
416{
417 IServerNetworkable* pNetwork = ((IServerUnknown *)pEntity)->GetNetworkable();
418 if (pNetwork == nullptr)
419 {
420 return nullptr;
421 }
422
423 return pNetwork->GetServerClass();
424}
425
426DataTableInfo *CHalfLife2::_FindServerClass(const char *classname)
427{

Callers 14

GetEntityNetClassFunction · 0.80
GetEntPropArraySizeFunction · 0.80
InitTeamNativesFunction · 0.80
GetResourceEntityFunction · 0.80
LookupEntityAttachmentFunction · 0.80
GetEntityAttachmentFunction · 0.80
FindEntityByNetClassFunction · 0.80
natives.cppFile · 0.80
HookMethod · 0.80
Native_DropWeaponFunction · 0.80
FindEntityByNetClassFunction · 0.80
TryEnableMethod · 0.80

Calls 1

GetServerClassMethod · 0.80

Tested by

no test coverage detected