From 5ee86afacbb5926a168cdc50459803c607463f50 Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Sat, 28 May 2022 16:11:06 +0200 Subject: [PATCH] Chat component --- src/client/component/chat.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/client/component/chat.cpp b/src/client/component/chat.cpp index c2102f17..e78550b7 100644 --- a/src/client/component/chat.cpp +++ b/src/client/component/chat.cpp @@ -30,14 +30,14 @@ namespace chat } // use better font - utils::hook::call(0x1400AA831, ui_get_font_handle_stub); - utils::hook::call(0x14024800C, ui_get_font_handle_stub); - utils::hook::call(0x14024F573, ui_get_font_handle_stub); + utils::hook::inject(0x0F6F61_b, reinterpret_cast(0x2E6F588_b)); + utils::hook::inject(0x18A980_b, reinterpret_cast(0x2E6F588_b)); + utils::hook::call(0x33EDEC_b, ui_get_font_handle_stub); // set text style to 0 (non-blurry) - utils::hook::set(0x14024F5DD, 0); - utils::hook::set(0x1400AAA1C, 0); - utils::hook::set(0x14024802E, 0); + utils::hook::set(0x18A9F2_b, 0); + utils::hook::set(0x0F7151_b, 0); + utils::hook::set(0x33EE0E_b, 0); localized_strings::override("EXE_SAY", "^3Match^7"); localized_strings::override("EXE_SAYTEAM", "^5Team^7"); @@ -49,4 +49,4 @@ namespace chat }; } -//REGISTER_COMPONENT(chat::component) +REGISTER_COMPONENT(chat::component)