From 1a0fbd3dea827f7c69d8fe03b35d9929f3fd6460 Mon Sep 17 00:00:00 2001 From: Anvar Date: Mon, 12 Feb 2024 09:08:38 -0500 Subject: [PATCH] Potential fix for WMSB (#2707) --- src/byte_patch_manager.cpp | 2 +- src/pointers.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/byte_patch_manager.cpp b/src/byte_patch_manager.cpp index a92fe865..30f8aeab 100644 --- a/src/byte_patch_manager.cpp +++ b/src/byte_patch_manager.cpp @@ -24,7 +24,7 @@ namespace big // Patch World Model Spawn Bypass world_model_bypass::m_world_model_spawn_bypass = - memory::byte_patch::make(g_pointers->m_gta.m_world_model_spawn_bypass.as(), 0).get(); + memory::byte_patch::make(g_pointers->m_gta.m_world_model_spawn_bypass.add(3).rip().as(), 0).get(); // Patch blocked explosions explosion_anti_cheat_bypass::m_can_blame_others = diff --git a/src/pointers.cpp b/src/pointers.cpp index d5ec644e..a66b0d29 100644 --- a/src/pointers.cpp +++ b/src/pointers.cpp @@ -1511,7 +1511,7 @@ namespace big // World Model Spawn Bypass { "WMSB", - "48 85 C0 0F 84 ? ? ? ? 8B 48 50", + "48 85 C0 0F 84 ? ? ? ? 8B 48 ? C1 E9 ? F6 C1 ? 0F 84 ? ? ? ? 45 84 E4", [](memory::handle ptr) { g_pointers->m_gta.m_world_model_spawn_bypass = ptr;