From 3487e639ff614e947b2e6b5334fb3de61fa807da Mon Sep 17 00:00:00 2001 From: maybegreat48 <96936658+maybegreat48@users.noreply.github.com> Date: Tue, 7 Mar 2023 22:25:13 +0000 Subject: [PATCH] Add CVehicleProximityMigrationDataNode (#109) --- classes.cpp | 1 + .../CVehicleProximityMigrationDataNode.hpp | 20 +++++++++++++++++++ network/CCommunications.hpp | 6 +++--- 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 netsync/nodes/vehicle/CVehicleProximityMigrationDataNode.hpp diff --git a/classes.cpp b/classes.cpp index 507a802..547ec38 100644 --- a/classes.cpp +++ b/classes.cpp @@ -84,6 +84,7 @@ #include "netsync/nodes/train/CTrainGameStateDataNode.hpp" #include "netsync/nodes/vehicle/CVehicleCreationDataNode.hpp" #include "netsync/nodes/vehicle/CVehicleGadgetDataNode.hpp" +#include "netsync/nodes/vehicle/CVehicleProximityMigrationDataNode.hpp" #include "netsync/trees/CDynamicEntitySyncTreeBase.hpp" #include "netsync/trees/CEntitySyncTreeBase.hpp" #include "netsync/trees/CPhysicalSyncTreeBase.hpp" diff --git a/netsync/nodes/vehicle/CVehicleProximityMigrationDataNode.hpp b/netsync/nodes/vehicle/CVehicleProximityMigrationDataNode.hpp new file mode 100644 index 0000000..0346401 --- /dev/null +++ b/netsync/nodes/vehicle/CVehicleProximityMigrationDataNode.hpp @@ -0,0 +1,20 @@ +#pragma once +#include +#include "netsync/CProjectBaseSyncDataNode.hpp" + +#pragma pack(push,4) +class CVehicleProximityMigrationDataNode : CProjectBaseSyncDataNode +{ +public: + uint32_t m_max_occupants; + bool m_has_occupants[16]; + int16_t m_occupants[16]; + char pad[16]; + bool m_override_position; + char pad2[8]; + rage::fvector3 m_position; + rage::vector3 m_velocity; + char pad3[352]; +}; //Size: 0x0180 +static_assert(sizeof(CVehicleProximityMigrationDataNode) == 0x288); +#pragma pack(pop) \ No newline at end of file diff --git a/network/CCommunications.hpp b/network/CCommunications.hpp index c16b3a9..a876032 100644 --- a/network/CCommunications.hpp +++ b/network/CCommunications.hpp @@ -6,8 +6,8 @@ class CVoiceConnection { public: - class rage::rlGamerInfo m_gamer_info; //0x0000 - char pad_0098[40]; //0x0098 + class rage::rlGamerInfo m_gamer_info; //0x0000 + char pad_0098[40]; //0x00F8 }; //Size: 0x00C0 static_assert(sizeof(CVoiceConnection) == 0x120); @@ -16,7 +16,7 @@ class CVoice public: class CVoiceConnection m_connection_storage[32]; //0x0000 char pad_1800[8]; //0x1800 - class CVoiceConnection *m_connections[32]; //0x1808 + class CVoiceConnection* m_connections[32]; //0x1808 uint32_t m_connection_count; //0x1908 char pad_190C[3508]; //0x190C }; //Size: 0x1978