From c6c93b128697a24e2396d11a8c75f8925e0def8d Mon Sep 17 00:00:00 2001 From: Ryan <80224521+Rxann@users.noreply.github.com> Date: Thu, 13 Jun 2024 17:03:39 -0400 Subject: [PATCH] CVehicleGadgetNodeData (#12) --- classes.cpp | 1 + network/sync/vehicle/CVehicleGadgetData.hpp | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 network/sync/vehicle/CVehicleGadgetData.hpp 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