Minor changes (#184)

* 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 177dc9f0b8
commit 188962ac5d
2 changed files with 8 additions and 14 deletions

View File

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

View File

@ -30,7 +30,7 @@ namespace rage
virtual void mov2() = 0; // 0x40 virtual void mov2() = 0; // 0x40
virtual void m_8() = 0; // 0x48 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_18() = 0; // 0x58
virtual void* m_20() = 0; // 0x60 virtual void* m_20() = 0; // 0x60
virtual void m_28() = 0; // 0x68 virtual void m_28() = 0; // 0x68