Skip to content

Commit

Permalink
Update CNetGamePlayer (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
maybegreat48 authored Dec 14, 2023
1 parent 760585b commit e1d00a7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 35 deletions.
5 changes: 4 additions & 1 deletion network/CNetGamePlayer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -39,6 +41,7 @@ class CNetGamePlayer : public rage::netPlayer
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
Expand All @@ -59,5 +62,5 @@ class CNetGamePlayer : public rage::netPlayer
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)
68 changes: 34 additions & 34 deletions network/CNetworkPlayerMgr.hpp
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
#pragma once

#include "netPlayerMgrBase.hpp"
#include "CNetGamePlayer.hpp"
#include "../player/CNonPhysicalPlayerData.hpp"

#include <cstdint>

#pragma pack(push, 2)
class CNetworkPlayerMgr : public rage::netPlayerMgrBase
{
public:
CNetGamePlayer m_net_players[32]; //0x08E0
uint64_t unk_60E0; //0x60E0
uint64_t unk_60E8; //0x60E8
uint64_t unk_60F0; //0x60F0
uint64_t unk_60F8; //0x60F8
CNetGamePlayer m_net_players_2[32]; //0x6100
uint64_t unk_B900; //0xB900
uint64_t unk_B908; //0xB908
uint64_t unk_B910; //0xB910
uint64_t unk_B918; //0xB918
uint64_t unk_B920; //0xB920
uint64_t unk_B928; //0xB928
uint64_t unk_B930; //0xB930
uint32_t unk_B938; //0xB938
char pad_B93C[3]; //0xB93C
bool unk_B93F; //0xB93F
uint32_t unk_B940; //0xB940
uint32_t unk_B944; //0xB944
uint16_t unk_B948; //0xB948
}; //Size: 0xB94A
static_assert(sizeof(CNetworkPlayerMgr) == 0xD152);
#pragma pack(pop)
#pragma once

#include "netPlayerMgrBase.hpp"
#include "CNetGamePlayer.hpp"
#include "../player/CNonPhysicalPlayerData.hpp"

#include <cstdint>

#pragma pack(push, 2)
class CNetworkPlayerMgr : public rage::netPlayerMgrBase
{
public:
CNetGamePlayer m_net_players[32]; //0x08E0
uint64_t unk_60E0; //0x60E0
uint64_t unk_60E8; //0x60E8
uint64_t unk_60F0; //0x60F0
uint64_t unk_60F8; //0x60F8
CNetGamePlayer m_net_players_2[32]; //0x6100
uint64_t unk_B900; //0xB900
uint64_t unk_B908; //0xB908
uint64_t unk_B910; //0xB910
uint64_t unk_B918; //0xB918
uint64_t unk_B920; //0xB920
uint64_t unk_B928; //0xB928
uint64_t unk_B930; //0xB930
uint32_t unk_B938; //0xB938
char pad_B93C[3]; //0xB93C
bool unk_B93F; //0xB93F
uint32_t unk_B940; //0xB940
uint32_t unk_B944; //0xB944
uint16_t unk_B948; //0xB948
}; //Size: 0xB94A
static_assert(sizeof(CNetworkPlayerMgr) == 0xD552);
#pragma pack(pop)

0 comments on commit e1d00a7

Please sign in to comment.