From 4fa88247dc3a391774d17c03573c47431bcc3271 Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Wed, 25 May 2022 21:03:18 +0200 Subject: [PATCH] Binding component --- src/client/component/binding.cpp | 8 ++++---- src/client/game/symbols.hpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/component/binding.cpp b/src/client/component/binding.cpp index c525255c..bf3a4750 100644 --- a/src/client/component/binding.cpp +++ b/src/client/component/binding.cpp @@ -124,15 +124,15 @@ namespace binding } // write all bindings to config file - utils::hook::call(SELECT_VALUE(0x1AC953_b, 0x199E8F_b), key_write_bindings_to_buffer_stub); + utils::hook::jump(SELECT_VALUE(0x1AC980_b, 0x199ED0_b), key_write_bindings_to_buffer_stub, true); // links a custom command to an index - utils::hook::jump(SELECT_VALUE(0x377280_b, 0x1572B0_b), key_get_binding_for_cmd_stub); + utils::hook::jump(SELECT_VALUE(0x377280_b, 0x1572B0_b), key_get_binding_for_cmd_stub, true); // execute custom binds - cl_execute_key_hook.create(SELECT_VALUE(0x1A8350_b, 0x23BD2A_b), &cl_execute_key_stub); + cl_execute_key_hook.create(SELECT_VALUE(0x1A8350_b, 0x130610_b), &cl_execute_key_stub); } }; } -//REGISTER_COMPONENT(binding::component) +REGISTER_COMPONENT(binding::component) diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index 775e1d63..eec460e9 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -219,7 +219,7 @@ namespace game WEAK symbol levelEntityId{0x0, 0xB1100B0}; WEAK symbol gameEntityId{0x0, 0xB1100B4}; - WEAK symbol command_whitelist{0x0, 0x0}; + WEAK symbol command_whitelist{0x115ADF0, 0x10ACB70}; WEAK symbol cmd_functions{0x0, 0x344DF18}; WEAK symbol cmd_args{0x0, 0x2ED1E00};