Add CVehicleProximityMigrationDataNode (#109)

This commit is contained in:
maybegreat48
2023-03-07 22:25:13 +00:00
committed by GitHub
parent 11c1ebdec9
commit 3487e639ff
3 changed files with 24 additions and 3 deletions
+1
View File
@@ -84,6 +84,7 @@
#include "netsync/nodes/train/CTrainGameStateDataNode.hpp" #include "netsync/nodes/train/CTrainGameStateDataNode.hpp"
#include "netsync/nodes/vehicle/CVehicleCreationDataNode.hpp" #include "netsync/nodes/vehicle/CVehicleCreationDataNode.hpp"
#include "netsync/nodes/vehicle/CVehicleGadgetDataNode.hpp" #include "netsync/nodes/vehicle/CVehicleGadgetDataNode.hpp"
#include "netsync/nodes/vehicle/CVehicleProximityMigrationDataNode.hpp"
#include "netsync/trees/CDynamicEntitySyncTreeBase.hpp" #include "netsync/trees/CDynamicEntitySyncTreeBase.hpp"
#include "netsync/trees/CEntitySyncTreeBase.hpp" #include "netsync/trees/CEntitySyncTreeBase.hpp"
#include "netsync/trees/CPhysicalSyncTreeBase.hpp" #include "netsync/trees/CPhysicalSyncTreeBase.hpp"
@@ -0,0 +1,20 @@
#pragma once
#include <cstdint>
#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<int32_t> m_velocity;
char pad3[352];
}; //Size: 0x0180
static_assert(sizeof(CVehicleProximityMigrationDataNode) == 0x288);
#pragma pack(pop)
+3 -3
View File
@@ -6,8 +6,8 @@
class CVoiceConnection class CVoiceConnection
{ {
public: public:
class rage::rlGamerInfo m_gamer_info; //0x0000 class rage::rlGamerInfo m_gamer_info; //0x0000
char pad_0098[40]; //0x0098 char pad_0098[40]; //0x00F8
}; //Size: 0x00C0 }; //Size: 0x00C0
static_assert(sizeof(CVoiceConnection) == 0x120); static_assert(sizeof(CVoiceConnection) == 0x120);
@@ -16,7 +16,7 @@ class CVoice
public: public:
class CVoiceConnection m_connection_storage[32]; //0x0000 class CVoiceConnection m_connection_storage[32]; //0x0000
char pad_1800[8]; //0x1800 char pad_1800[8]; //0x1800
class CVoiceConnection *m_connections[32]; //0x1808 class CVoiceConnection* m_connections[32]; //0x1808
uint32_t m_connection_count; //0x1908 uint32_t m_connection_count; //0x1908
char pad_190C[3508]; //0x190C char pad_190C[3508]; //0x190C
}; //Size: 0x1978 }; //Size: 0x1978