Skip to content

Commit

Permalink
Minor changes (#184)
Browse files Browse the repository at this point in the history
* feat(netObject): add GetSyncData

* fix(CBaseModelInfo): fix m_model_type
  • Loading branch information
Mr-X-GTA authored Aug 4, 2024
1 parent a91475c commit b9b832a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
20 changes: 7 additions & 13 deletions base/CBaseModelInfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -36,9 +25,14 @@ class CBaseModelInfo : public rage::fwArchetype
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)
2 changes: 1 addition & 1 deletion network/netObject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9b832a

Please sign in to comment.