additions

This commit is contained in:
2026-05-24 00:40:45 +03:00
parent c5aef33171
commit c55a34f33c
42 changed files with 5019 additions and 2331 deletions

View File

@@ -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)