fix player count for rpc + client_t padding
This commit is contained in:
parent
2c6ff615ef
commit
39a90d8c56
@ -53,17 +53,15 @@ namespace discord
|
||||
utils::string::strip(game::Dvar_FindVar("sv_hostname")->current.string,
|
||||
clean_hostname, sizeof(clean_hostname));
|
||||
auto max_clients = party::server_client_count();
|
||||
auto clients = party::get_client_count();
|
||||
|
||||
// When true, we are in Private Match
|
||||
if (game::SV_Loaded())
|
||||
{
|
||||
strcpy_s(clean_hostname, "Private Match");
|
||||
max_clients = game::Dvar_FindVar("sv_maxclients")->current.integer;
|
||||
clients = *reinterpret_cast<int*>(0x14621BE00);
|
||||
}
|
||||
|
||||
discord_presence.partySize = clients;
|
||||
discord_presence.partySize = *reinterpret_cast<int*>(0x1429864C4);
|
||||
discord_presence.partyMax = max_clients;
|
||||
discord_presence.state = clean_hostname;
|
||||
discord_presence.largeImageKey = map;
|
||||
|
@ -1397,7 +1397,7 @@ namespace game
|
||||
LiveClientDropType liveDropRequest; //269572
|
||||
char __pad4[24];
|
||||
TestClientType testClient; // 269600
|
||||
char __pad5[391700];
|
||||
char __pad5[610012];
|
||||
}; // size = 661304
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user