From 64b58e7ead844506187e2b533a51f6a06192d736 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Tue, 11 Apr 2023 20:51:46 +0200 Subject: [PATCH] feat(patches): fix unknown password command --- src/client/component/patches.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/client/component/patches.cpp b/src/client/component/patches.cpp index bfec3e5c..0900b5a8 100644 --- a/src/client/component/patches.cpp +++ b/src/client/component/patches.cpp @@ -2,6 +2,10 @@ #include "loader/component_loader.hpp" #include +#include + +#include "scheduler.hpp" + #include namespace patches @@ -34,6 +38,11 @@ namespace patches utils::hook::set(game::select(0x14224DA53, 0x140531143), 3); utils::hook::set(game::select(0x14224DBB4, 0x1405312A8), 3); utils::hook::set(game::select(0x14224DF8C, 0x1405316DC), 3); + + scheduler::once([] + { + game::register_dvar_string("password", "", game::DVAR_USERINFO, "password"); + }, scheduler::pipeline::main); } }; }