From fbc23ade6b5129b1b94aee2234eda5de4d62caf1 Mon Sep 17 00:00:00 2001 From: Jesse <69196954+ThisAMJ@users.noreply.github.com> Date: Fri, 5 Jan 2024 17:36:44 +1100 Subject: [PATCH] fix: require cheat fuck bets --- src/Modules/Client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Modules/Client.cpp b/src/Modules/Client.cpp index 21932f4b2..37f17325f 100644 --- a/src/Modules/Client.cpp +++ b/src/Modules/Client.cpp @@ -538,6 +538,9 @@ DETOUR_T(void, Client::MsgPreSkipToNextLevel) { Hook (g_MsgPreSkipToNextLevelHook)(&Client::MsgPreSkipToNextLevel_Hook); CON_COMMAND(sar_workshop_skip, "sar_workshop_skip - Skips to the next level in workshop\n") { + if (!sv_cheats.GetBool()) { + return console->Print("This command requires sv_cheats\n"); + } if (strncmp("workshop/", engine->GetCurrentMapName().c_str(), 9)) { return console->Print("This command only works in workshop maps.\n"); }