additions
This commit is contained in:
@@ -280,6 +280,29 @@ CBaseEntity **CEntitySystem::GetEntities()
|
||||
return m_pEntities;
|
||||
}
|
||||
|
||||
void CEntitySystem::DestroyEntityByIndex( uint32_t uIndex )
|
||||
{
|
||||
if ( uIndex >= MAX_EDICTS )
|
||||
return;
|
||||
if (m_pEntities[uIndex])
|
||||
{
|
||||
delete m_pEntities[uIndex];
|
||||
m_pEntities[uIndex] = 0;
|
||||
}
|
||||
|
||||
EntityDelete_t stClassSync = {
|
||||
k_EMessage_EntityDeleted,
|
||||
uIndex,
|
||||
};
|
||||
if (g_pCurrentConnection)
|
||||
g_pCurrentConnection->SendPacket({&stClassSync, sizeof(stClassSync), 0, PACKET_MUST_ARRIVE});
|
||||
}
|
||||
|
||||
void CEntitySystem::DestroyEntityByPtr( CBaseEntity *pEntity )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CEntitySystem::SetAllowedEntityForPlayer( uint64_t ullPlayer, CBaseEntity *pEntity )
|
||||
{
|
||||
if (pEntity)
|
||||
|
||||
Reference in New Issue
Block a user