feat(Project): Copy pastable into BigBaseV2 source

This commit is contained in:
Yimura 2021-12-06 19:36:09 +01:00
parent e25afe9db3
commit 7ff6c9b9b7
15 changed files with 107 additions and 57 deletions

View File

@ -1,15 +1,17 @@
class CAmmoInfo
{
public:
char pad_0000[12]; //0x0000
uint32_t m_projectile_type; //0x000C
uint32_t m_ammo_name_hash; //0x0010
uint32_t m_ammo_model_hash; //0x0014
char pad_0018[16]; //0x0018
uint32_t m_max_ammo; //0x0028
char pad_002C[44]; //0x002C
float m_missile_speed; //0x0058
char pad_005C[284]; //0x005C
uint32_t m_lock_on_time; //0x0178
}; //Size: 0x017C
static_assert(sizeof(CAmmoInfo) == 0x17C);
#pragma once
class CAmmoInfo
{
public:
char pad_0000[12]; //0x0000
uint32_t m_projectile_type; //0x000C
uint32_t m_ammo_name_hash; //0x0010
uint32_t m_ammo_model_hash; //0x0014
char pad_0018[16]; //0x0018
uint32_t m_max_ammo; //0x0028
char pad_002C[44]; //0x002C
float m_missile_speed; //0x0058
char pad_005C[284]; //0x005C
uint32_t m_lock_on_time; //0x0178
}; //Size: 0x017C
static_assert(sizeof(CAmmoInfo) == 0x17C);

View File

@ -1,17 +1,18 @@
#include "CHandlingData.h"
#include "CVehicleDrawHandler.h"
#include "CVehicleModelInfo.h"
#include "pgBase.h"
#pragma once
#include "CHandlingData.hpp"
#include "CVehicleDrawHandler.hpp"
#include "CVehicleModelInfo.hpp"
#include "pgBase.hpp"
class CAutomobile
{
public:
char pad_0000[32]; //0x0000
class CVehicleModelInfo *m_vehicle_model; //0x0020
class CVehicleModelInfo* m_vehicle_model; //0x0020
char pad_0028[8]; //0x0028
class pgBase *m_posbase; //0x0030
class pgBase* m_posbase; //0x0030
char pad_0038[16]; //0x0038
class CVehicleDrawHandler *m_mods; //0x0048
class CVehicleDrawHandler* m_mods; //0x0048
char pad_0050[313]; //0x0050
uint8_t m_godmode; //0x0189
char pad_018A[246]; //0x018A
@ -33,7 +34,7 @@ public:
char pad_0848[192]; //0x0848
float m_engine_health; //0x0908
char pad_090C[44]; //0x090C
class CHandlingData *m_handling; //0x0938
class CHandlingData* m_handling; //0x0938
char pad_0940[2]; //0x0940
uint8_t m_is_drivable; //0x0942
uint8_t m_tyres_can_burst; //0x0943
@ -45,8 +46,8 @@ public:
char pad_0ABF[413]; //0x0ABF
float m_gravity; //0x0C5C
char pad_0C60[8]; //0x0C60
class CPed *m_driver; //0x0C68
class CPed *m_passengers[15]; //0x0C70
class CPed *m_last_driver; //0x0CE8
class CPed* m_driver; //0x0C68
class CPed* m_passengers[15]; //0x0C70
class CPed* m_last_driver; //0x0CE8
}; //Size: 0x0CF0
static_assert(sizeof(CAutomobile) == 0xCF0);

View File

@ -1,3 +1,5 @@
#pragma once
class CHandlingData
{
public:

View File

@ -1,9 +0,0 @@
#include "CPed.h"
class CPedFactory
{
public:
char pad_0000[8]; //0x0000
class CPed *m_local_ped; //0x0008
}; //Size: 0x0010
static_assert(sizeof(CPedFactory) == 0x10);

18
CNetGamePlayer.hpp Normal file
View File

@ -0,0 +1,18 @@
#include "CPlayerInfo.hpp"
class CNetGamePlayer
{
public:
char pad_0000[24]; //0x0000
uint32_t m_msg_id; //0x0018
char pad_001C[4]; //0x001C
uint8_t m_active_id; //0x0020
uint8_t m_player_id; //0x0021
char pad_0022[110]; //0x0022
uint8_t m_player_flag; //0x0090
char pad_0091[15]; //0x0091
class CPlayerInfo* m_player_info; //0x00A0
char pad_00A8[40]; //0x00A8
uint32_t m_bubble_id; //0x00D0
}; //Size: 0x00D4
static_assert(sizeof(CNetGamePlayer) == 0xD4);

View File

@ -1,21 +1,24 @@
#include "CAutomobile.h"
#include "CPedModelInfo.h"
#include "CPedWeaponManager.h"
#include "CPlayerInfo.h"
#include "pgBase.h"
#pragma once
#include "CAutomobile.hpp"
#include "CPedModelInfo.hpp"
#include "CPedWeaponManager.hpp"
#include "CPlayerInfo.hpp"
#include "pgBase.hpp"
#pragma pack(push, 1)
class CPed
{
public:
char pad_0000[32]; //0x0000
class CPedModelInfo *m_ped_model_info; //0x0020
class CPedModelInfo* m_ped_model_info; //0x0020
uint8_t m_entity_type; //0x0028
char pad_0029[3]; //0x0029
uint8_t m_invisible; //0x002C
char pad_002D[1]; //0x002D
uint8_t m_freeze_momentum; //0x002E
char pad_002F[1]; //0x002F
class pgBase *m_posbase; //0x0030
class pgBase* m_posbase; //0x0030
char pad_0038[88]; //0x0038
rage::vector3 m_camera; //0x0090
char pad_009C[237]; //0x009C
@ -29,11 +32,11 @@ public:
char pad_02A4[124]; //0x02A4
rage::vector3 m_velocity; //0x0320
char pad_032C[2564]; //0x032C
class CAutomobile *m_vehicle; //0x0D30
class CAutomobile* m_vehicle; //0x0D30
char pad_0D38[912]; //0x0D38
class CPlayerInfo *m_player_info; //0x10C8
class CPlayerInfo* m_player_info; //0x10C8
char pad_10D0[8]; //0x10D0
class CPedWeaponManager *m_weapon_manager; //0x10D8
class CPedWeaponManager* m_weapon_manager; //0x10D8
char pad_10E0[812]; //0x10E0
uint8_t m_bike_seatbelt; //0x140C
char pad_140D[11]; //0x140D
@ -44,3 +47,5 @@ public:
float m_armor; //0x14E0
}; //Size: 0x14E4
static_assert(sizeof(CPed) == 0x14E4);
#pragma pack(pop)

View File

@ -1,9 +1,10 @@
#include "CPed.h"
#pragma once
#include "CPed.hpp"
class CPedFactory
{
public:
char pad_0000[8]; //0x0000
class CPed *m_local_ped; //0x0008
class CPed* m_local_ped; //0x0008
}; //Size: 0x0010
static_assert(sizeof(CPedFactory) == 0x10);

View File

@ -1,3 +1,5 @@
#pragma once
class CPedModelInfo
{
public:

View File

@ -1,14 +1,15 @@
#include "CWeaponInfo.h"
#pragma once
#include "CWeaponInfo.hpp"
class CPedWeaponManager
{
public:
char pad_0000[16]; //0x0000
class CPed *m_owner; //0x0010
class CPed* m_owner; //0x0010
uint32_t m_selected_weapon_hash; //0x0018
char pad_001C[4]; //0x001C
class CWeaponInfo *m_weapon_info; //0x0020
class CWeaponInfo* m_weapon_info; //0x0020
char pad_0028[72]; //0x0028
class CWeaponInfo *m_vehicle_weapon_info; //0x0070
class CWeaponInfo* m_vehicle_weapon_info; //0x0070
}; //Size: 0x0078
static_assert(sizeof(CPedWeaponManager) == 0x78);

View File

@ -1,16 +1,34 @@
#pragma once
#pragma warning(push)
#pragma warning(disable : 4201) // nonstandard extension used: nameless struct/union
union netAddress
{
std::uint32_t m_raw;
struct
{
std::uint8_t m_field4;
std::uint8_t m_field3;
std::uint8_t m_field2;
std::uint8_t m_field1;
};
};
#pragma warning(pop)
#pragma pack(push, 1)
class CPlayerInfo
{
public:
char pad_0000[40]; //0x0000
uint64_t m_rockstar_id; //0x0028
char pad_0030[52]; //0x0030
uint32_t m_relay_ip; //0x0064
netAddress m_relay_ip; //0x0064
uint16_t m_relay_port; //0x0068
char pad_006A[2]; //0x006A
uint32_t m_external_ip; //0x006C
netAddress m_external_ip; //0x006C
uint16_t m_external_port; //0x0070
char pad_0072[2]; //0x0072
uint32_t m_internal_ip; //0x0074
netAddress m_internal_ip; //0x0074
uint16_t m_internal_port; //0x0078
char pad_007A[22]; //0x007A
uint64_t m_rockstar_id2; //0x0090
@ -21,7 +39,7 @@ public:
char pad_0174[20]; //0x0174
uint32_t m_water_proof; //0x0188
char pad_018C[92]; //0x018C
class CPed *m_ped; //0x01E8
class CPed* m_ped; //0x01E8
char pad_01F0[40]; //0x01F0
uint32_t m_frame_flags; //0x0218
char pad_021C[52]; //0x021C
@ -50,3 +68,5 @@ public:
float m_melee_weapon_defence_mult; //0x0D2C
}; //Size: 0x0D30
static_assert(sizeof(CPlayerInfo) == 0xD30);
#pragma pack(pop)

View File

@ -1,3 +1,5 @@
#pragma once
class CVehicleDrawHandler
{
public:

View File

@ -1,3 +1,5 @@
#pragma once
class CVehicleModelInfo
{
public:

View File

@ -1,4 +1,5 @@
#include "CAmmoInfo.h"
#pragma once
#include "CAmmoInfo.hpp"
class CWeaponInfo
{
@ -9,7 +10,7 @@ public:
char pad_0018[12]; //0x0018
uint32_t m_impact_explosion; //0x0024
char pad_0028[56]; //0x0028
class CAmmoInfo *m_ammo_info; //0x0060
class CAmmoInfo* m_ammo_info; //0x0060
char pad_0068[20]; //0x0068
float m_spread; //0x007C
char pad_0080[60]; //0x0080

Binary file not shown.

View File

@ -1,3 +1,5 @@
#pragma once
class pgBase
{
public: