Files
csgo2_tiny_server_plugin_sy…/csgo2/native_sdk/handle/handle.cpp

11 lines
267 B
C++
Raw Normal View History

2023-10-01 02:28:13 +08:00
#include "handle.h"
#include "../cgameentitysystem.h"
CBaseEntity* CHandle::GetBaseEntity() const
{
CGameEntitySystem* pEntitySystem = CGameEntitySystem::GetInstance();
if (!pEntitySystem)
return nullptr;
return pEntitySystem->GetBaseEntity(GetEntryIndex());
}