fix player count for rpc + client_t padding

This commit is contained in:
m 2022-03-01 19:57:00 -06:00
parent 2a79fe000e
commit ef20298fc4
2 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -1397,7 +1397,7 @@ namespace game
LiveClientDropType liveDropRequest; //269572
char __pad4[24];
TestClientType testClient; // 269600
char __pad5[391700];
char __pad5[610012];
}; // size = 661304
}