From a64dccd875fb2b60edf3a4246706cd5e253db793 Mon Sep 17 00:00:00 2001 From: 0TheSpy <5511c282@opayq.com> Date: Thu, 23 Jun 2022 13:08:07 +0300 Subject: [PATCH] Update Skinchanger.cpp --- SpyCustom/Skinchanger.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/SpyCustom/Skinchanger.cpp b/SpyCustom/Skinchanger.cpp index 92c5994..da4a934 100644 --- a/SpyCustom/Skinchanger.cpp +++ b/SpyCustom/Skinchanger.cpp @@ -503,15 +503,13 @@ void __fastcall hkFrameStageNotify(IBaseClientDLL* thisptr, void* edx, ClientFra if (stage == ClientFrameStage_t::FRAME_NET_UPDATE_POSTDATAUPDATE_START) { Changer(); - - - + if (opt.needupdate) { - static auto clear_hud_weapon_icon_ptr = FindPatternV2("client.dll", "55 8B EC 51 53 56 8B 75 08 8B D9 57 6B FE 2C"); + static auto clear_hud_weapon_icon_ptr = FindPatternV2("client.dll", "E8 ? ? ? ? 8B F0 C6 44 24 ? ? C6 44 24") + 1; static auto clearHudWeapon = reinterpret_cast(clear_hud_weapon_icon_ptr); auto element = FindHudElement("CCSGO_HudWeaponSelection"); - auto hud_weapons = reinterpret_cast(std::uintptr_t(element) - 0xA0); + auto hud_weapons = reinterpret_cast(std::uintptr_t(element) - 0x28); if (hud_weapons && *hud_weapons->get_weapon_count() > 0) for (std::int32_t i = 0; i < *hud_weapons->get_weapon_count(); i++) @@ -675,4 +673,4 @@ void InitSkinChanger() g_Options.models.value->arr[2].findMDLmethode = 1; -} \ No newline at end of file +}