From adb2ed60a40aef7f9b7eb1d28a5c8510db5d762f Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 18 Feb 2023 00:06:24 +0100 Subject: [PATCH] Add 'sv_stats' cvar to SDK Server CPU statistics. --- r5dev/tier1/IConVar.cpp | 1 + r5dev/tier1/cvar.cpp | 1 + r5dev/tier1/cvar.h | 1 + 3 files changed, 3 insertions(+) diff --git a/r5dev/tier1/IConVar.cpp b/r5dev/tier1/IConVar.cpp index e26707d3..1ae66e99 100644 --- a/r5dev/tier1/IConVar.cpp +++ b/r5dev/tier1/IConVar.cpp @@ -289,6 +289,7 @@ void ConVar::InitShipped(void) net_usesocketsforloopback = g_pCVar->FindVar("net_usesocketsforloopback"); #ifndef CLIENT_DLL sv_showhitboxes = g_pCVar->FindVar("sv_showhitboxes"); + sv_stats = g_pCVar->FindVar("sv_stats"); sv_forceChatToTeamOnly = g_pCVar->FindVar("sv_forceChatToTeamOnly"); sv_showhitboxes->SetMin(-1); // Allow user to go over each entity manually without going out of bounds. diff --git a/r5dev/tier1/cvar.cpp b/r5dev/tier1/cvar.cpp index 454af2fd..a6c9a0b2 100644 --- a/r5dev/tier1/cvar.cpp +++ b/r5dev/tier1/cvar.cpp @@ -87,6 +87,7 @@ ConVar* sv_quota_stringCmdsPerSecond = nullptr; ConVar* sv_simulateBots = nullptr; ConVar* sv_showhitboxes = nullptr; +ConVar* sv_stats = nullptr; //#ifdef DEDICATED ConVar* sv_rcon_debug = nullptr; diff --git a/r5dev/tier1/cvar.h b/r5dev/tier1/cvar.h index 581650ca..852fa766 100644 --- a/r5dev/tier1/cvar.h +++ b/r5dev/tier1/cvar.h @@ -83,6 +83,7 @@ extern ConVar* sv_quota_stringCmdsPerSecond; extern ConVar* sv_simulateBots; extern ConVar* sv_showhitboxes; +extern ConVar* sv_stats; //#ifdef DEDICATED extern ConVar* sv_rcon_debug;