discord presence final commit

got everything with this now :p
This commit is contained in:
m 2021-04-08 02:29:52 -05:00 committed by GitHub
parent c96af6d3ad
commit b7df893d6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,8 +63,9 @@ namespace discord
dvar = game::Dvar_FindVar("sv_maxclients");
if (dvar)
{
auto clients = party::get_client_count();
discord_presence.partySize = clients;
auto clients = reinterpret_cast<int*>(0x1414CC290);
int clientsNum = *clients;
discord_presence.partySize = clientsNum;
discord_presence.partyMax = dvar->current.integer;
}