mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
discord presence final commit
got everything with this now :p
This commit is contained in:
parent
c96af6d3ad
commit
b7df893d6d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user