From 1d361ff9a804b3a9d5995bb602016d08c2776b5d Mon Sep 17 00:00:00 2001 From: aUniqueUser Date: Sun, 21 Feb 2021 12:41:49 -0500 Subject: [PATCH] See cosmetics while zooming --- src/hacks/Misc.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/hacks/Misc.cpp b/src/hacks/Misc.cpp index 460dbacf..3b260e85 100644 --- a/src/hacks/Misc.cpp +++ b/src/hacks/Misc.cpp @@ -60,7 +60,18 @@ static settings::Boolean fix_cyoaanim{ "remove.contracker", "false" }; static void tryPatchLocalPlayerShouldDraw(bool after) { static BytePatch patch_shoulddraw{ gSignatures.GetClientSignature, "80 BB ? ? ? ? ? 75 DE", 0xD, { 0xE0 } }; - after ? patch_shoulddraw.Patch() : patch_shoulddraw.Shutdown(); + static BytePatch patch_shoulddraw_wearable{ gSignatures.GetClientSignature("0F 85 ? ? ? ? E9 ? ? ? ? 85 D2") + 1, { 0x80 } }; + + if (after) + { + patch_shoulddraw.Patch(); + patch_shoulddraw_wearable.Patch(); + } + else + { + patch_shoulddraw.Shutdown(); + patch_shoulddraw_wearable.Shutdown(); + } } #endif