Minor changes (#184)
Some checks failed
Build / build (ubuntu-latest) (push) Failing after 33s
Build / build (windows-latest) (push) Has been cancelled

* feat(netObject): add GetSyncData

* fix(CBaseModelInfo): fix m_model_type
This commit is contained in:
Mr-X-GTA 2024-08-04 17:25:08 +02:00 committed by GitHub
parent a91475c198
commit b9b832ab00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 14 deletions

View File

@ -12,18 +12,7 @@ enum class eModelType : std::uint8_t
Weapon,
Vehicle,
Ped,
Destructable,
WorldObject = 33,
Sprinkler = 35,
Unk65 = 65,
EmissiveLOD = 67,
Plant = 129,
LOD = 131,
Unk132 = 132,
Unk133 = 133,
OnlineOnlyPed = 134,
Building = 161,
Unk193 = 193
Destructable
};
#pragma pack(push, 8)
@ -36,9 +25,14 @@ public:
char pad_0088[8]; //0x0088
uint64_t unk_0090; //0x0090
char pad_0098[5]; //0x0098
eModelType m_model_type; //0x009D
uint8_t m_model_type; //0x009D
char pad_009E[6]; //0x009E
uint64_t unk_00A8; //0x00A8
inline eModelType get_model_type()
{
return static_cast<eModelType>(m_model_type & 0x1F);
}
}; //Size: 0x00B0
static_assert(sizeof(CBaseModelInfo) == 0xB0);
#pragma pack(pop)

View File

@ -30,7 +30,7 @@ namespace rage
virtual void mov2() = 0; // 0x40
virtual void m_8() = 0; // 0x48
virtual void m_10() = 0; // 0x50
virtual class netSyncData* GetSyncData() = 0; // 0x50
virtual void m_18() = 0; // 0x58
virtual void* m_20() = 0; // 0x60
virtual void m_28() = 0; // 0x68