Update CNetGamePlayer (#151)

This commit is contained in:
maybegreat48 2023-12-14 22:54:16 +00:00 committed by GitHub
parent b874a00c18
commit a41a089a50
2 changed files with 38 additions and 35 deletions

View File

@ -11,9 +11,11 @@
#include <cstdint>
#pragma pack(push, 8)
// WARNING: most fields are out of date
class CNetGamePlayer : public rage::netPlayer
{
public:
void* m_unk;
CPlayerInfo* m_player_info; //0x00A0
uint32_t m_matchmaking_group; //0x0008
bool m_is_spectating; //0x000C
@ -39,6 +41,7 @@ public:
char pad_01AB[5]; //0x01AB
rage::rlSessionInfo m_transition_session_info; //0x01A3
char pad_022D[16]; //0x022D
void* m_unk2;
uint64_t unk_0230; //0x0230
uint64_t unk_0238; //0x0238
uint32_t m_mute_count; //0x0240
@ -59,5 +62,5 @@ public:
uint32_t m_account_id; //0x02B4
uint32_t m_unk_02BC; //0x02BC
}; //Size: 0x02C0
static_assert(sizeof(CNetGamePlayer) == 0x320);
static_assert(sizeof(CNetGamePlayer) == 0x330);
#pragma pack(pop)

View File

@ -30,5 +30,5 @@ public:
uint32_t unk_B944; //0xB944
uint16_t unk_B948; //0xB948
}; //Size: 0xB94A
static_assert(sizeof(CNetworkPlayerMgr) == 0xD152);
static_assert(sizeof(CNetworkPlayerMgr) == 0xD552);
#pragma pack(pop)