refactor: move Request Model logic to helper function (#2669)

This commit is contained in:
Anvar
2024-01-31 04:47:03 -05:00
committed by GitHub
parent 97ae9d9be3
commit 70875b31ab
9 changed files with 147 additions and 137 deletions
+10 -10
View File
@@ -1,8 +1,8 @@
#include "pointers.hpp"
#include "gta_pointers_layout_info.hpp"
#include "sc_pointers_layout_info.hpp"
#include "memory/all.hpp"
#include "sc_pointers_layout_info.hpp"
namespace big
{
@@ -159,15 +159,6 @@ namespace big
g_pointers->m_gta.m_swapchain = ptr.add(3).rip().as<IDXGISwapChain**>();
}
},
// World Model Spawn Bypass
{
"WMSB",
"48 85 C0 0F 84 ? ? ? ? 8B 48 50",
[](memory::handle ptr)
{
g_pointers->m_gta.m_world_model_spawn_bypass = ptr.as<PVOID>();
}
},
// Native Return Spoofer
{
"NRF",
@@ -1517,6 +1508,15 @@ namespace big
g_pointers->m_gta.m_max_wanted_level = ptr;
}
},
// World Model Spawn Bypass
{
"WMSB",
"48 85 C0 0F 84 ? ? ? ? 8B 48 50",
[](memory::handle ptr)
{
g_pointers->m_gta.m_world_model_spawn_bypass = ptr;
}
},
// Blame Explode
{
"BE",