mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CEntity::IsAdded()
This commit is contained in:
parent
c2d3f0cfda
commit
9a5a830cee
@ -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;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
@ -31,6 +31,8 @@ public:
|
||||
|
||||
BOOL FUNC_1009FDE0();
|
||||
|
||||
BOOL IsAdded();
|
||||
|
||||
VECTOR field_4[5];
|
||||
ENTITY_TYPE *m_pEntity;
|
||||
DWORD m_dwGTAId;
|
||||
|
Loading…
Reference in New Issue
Block a user