[saco] Implement/match CEntity::IsAdded()

This commit is contained in:
RD42 2024-08-06 19:05:29 +08:00
parent c2d3f0cfda
commit 9a5a830cee
2 changed files with 17 additions and 0 deletions

View File

@ -248,3 +248,18 @@ float CEntity::GetDistanceFromPoint(float X, float Y, float Z)
//-----------------------------------------------------------
BOOL CEntity::IsAdded()
{
// Check for CPlaceable messup
if(m_pEntity) {
if (m_pEntity->vtable == 0x863C40)
return FALSE;
if(m_pEntity->dwUnkModelRel)
return TRUE;
}
return FALSE;
}
//-----------------------------------------------------------

View File

@ -31,6 +31,8 @@ public:
BOOL FUNC_1009FDE0();
BOOL IsAdded();
VECTOR field_4[5];
ENTITY_TYPE *m_pEntity;
DWORD m_dwGTAId;