From feef738c61d8f8ee227de31e0340014742228726 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 23 Aug 2021 00:04:05 +0200 Subject: [PATCH] Make all material text icons (Hud icons) have white tint so they are not affected by color codes --- src/Components/Modules/Materials.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Components/Modules/Materials.cpp b/src/Components/Modules/Materials.cpp index 330d0b39..1add3f71 100644 --- a/src/Components/Modules/Materials.cpp +++ b/src/Components/Modules/Materials.cpp @@ -192,6 +192,12 @@ namespace Components add esp, 4h mov [esp + 20h], eax + + // Make all material text icons have white tint + mov eax,[esp + 0x50] + or eax,0x00FFFFFF + mov [esp + 0x50],eax + popad pop eax @@ -343,6 +349,7 @@ namespace Components Materials::ImageVersionCheckHook.initialize(0x53A456, Materials::ImageVersionCheck, HOOK_CALL)->install(); // Fix material pointer exploit + // Also make all material text icons have white tint Utils::Hook(0x534E0C, Materials::DrawMaterialStub, HOOK_CALL).install()->quick(); // Increment string pointer accordingly