From f84e66d2834412d72f26761097dfc6026c20452a Mon Sep 17 00:00:00 2001 From: Seter <86374920+skkuull@users.noreply.github.com> Date: Fri, 10 Feb 2023 10:41:56 +0300 Subject: [PATCH] add director's cut command --- src/client/component/command.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/client/component/command.cpp b/src/client/component/command.cpp index f079b42d..5f5b2f9e 100644 --- a/src/client/component/command.cpp +++ b/src/client/component/command.cpp @@ -400,6 +400,20 @@ namespace command game::Com_GameMode_SetDesiredGameMode(game::GAME_MODE_CP); }); + add("director_cut", [](const params& params) + { + if (params.size() == 2) + { + const auto value = static_cast(atoi(params.get(1))); + utils::hook::set(0x5ECB830_b, value); + } + else + { + const auto command = params.get(0); + console::error("Incorrect number of arguments for \"%s\".\n", command); + } + }); + add_sv("god", [](const int client_num, const params_sv&) { if (!cheats_ok(client_num))