diff --git a/classes.cpp b/classes.cpp index c42bf7d..51728cc 100644 --- a/classes.cpp +++ b/classes.cpp @@ -13,6 +13,7 @@ #include "network/sync/player/CPlayerHealthData.hpp" #include "network/sync/vehicle/CVehicleCreationData.hpp" #include "network/sync/vehicle/CVehicleProximityMigrationData.hpp" +#include "network/sync/vehicle/CVehicleGadgetData.hpp" #include "network/sync/CProjectBaseSyncDataNode.hpp" #include "network/sync/netSyncDataNode.hpp" #include "network/sync/netSyncNodeBase.hpp" diff --git a/network/sync/vehicle/CVehicleGadgetData.hpp b/network/sync/vehicle/CVehicleGadgetData.hpp new file mode 100644 index 0000000..0929bae --- /dev/null +++ b/network/sync/vehicle/CVehicleGadgetData.hpp @@ -0,0 +1,21 @@ +#pragma once +#include + +class CGadgetData +{ +public: + uint32_t m_type; + uint8_t m_data[0xF3]; +}; +static_assert(sizeof(CGadgetData) == 0xF8); + +class CVehicleGadgetNodeData +{ +public: + bool m_has_position; + char pad_0001[15]; + float m_position[4]; + uint32_t m_num_gadgets; + CGadgetData m_gadgets[2]; +}; +static_assert(sizeof(CVehicleGadgetNodeData) == 0x214); // Needs to be 0x220, prob from packing at 16. \ No newline at end of file