From b7df893d6d3508ff76e8f404fffcc7d9ad6e7e58 Mon Sep 17 00:00:00 2001 From: m <64374267+mjkzy@users.noreply.github.com> Date: Thu, 8 Apr 2021 02:29:52 -0500 Subject: [PATCH] discord presence final commit got everything with this now :p --- src/client/component/discord.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/component/discord.cpp b/src/client/component/discord.cpp index f88ef59..008a7df 100644 --- a/src/client/component/discord.cpp +++ b/src/client/component/discord.cpp @@ -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(0x1414CC290); + int clientsNum = *clients; + discord_presence.partySize = clientsNum; discord_presence.partyMax = dvar->current.integer; }