From cec4e51f722468fda4f51617ba8df948e8e956ef Mon Sep 17 00:00:00 2001 From: Yimura Date: Tue, 5 Jul 2022 15:14:12 +0200 Subject: [PATCH] feat(CVehicleModelInfo): Added sub types, name, manufacturer and others --- CVehicleModelInfo.hpp | 39 ++++++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/CVehicleModelInfo.hpp b/CVehicleModelInfo.hpp index b34381e..02c390e 100644 --- a/CVehicleModelInfo.hpp +++ b/CVehicleModelInfo.hpp @@ -1,11 +1,40 @@ #pragma once +#include "CBaseModelInfo.hpp" + #include -class CVehicleModelInfo +enum class eVehicleType : std::uint32_t +{ + Car, + Plane, + Unk2, + Quadbike, + Unk4, + Unk5, + AmphibiousCar, + AmphibiousQuadbike, + Heli, + Unk9, + Unk10, + Bike, + Bicycle, + Boat, + Train +}; + +#pragma pack(push, 2) +class CVehicleModelInfo : public CBaseModelInfo { public: - char pad_0000[1419]; //0x0000 - uint8_t m_custom_type; //0x058B -}; //Size: 0x058C -static_assert(sizeof(CVehicleModelInfo) == 0x58C); + char pad_00A4[500]; //0x00A4 + char m_name[12]; //0x0298 + char m_manufacturer[12]; //0x02A4 + char pad_02B0[144]; //0x02B0 + eVehicleType m_vehicle_type; //0x0340 + char pad_0344[572]; //0x0344 + uint32_t m_is_jetski; //0x0580 + char pad_0584[4]; //0x0584 +}; //Size: 0x0588 +static_assert(sizeof(CVehicleModelInfo) == 0x588); +#pragma pack(pop)