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
+6 -1
View File
@@ -7,6 +7,7 @@
#include "util/explosion_anti_cheat_bypass.hpp"
#include "util/police.hpp"
#include "util/vehicle.hpp"
#include "util/world_model.hpp"
extern "C" void sound_overload_detour();
uint64_t g_sound_overload_ret_addr;
@@ -21,6 +22,10 @@ namespace big
police::m_max_wanted_level_2 =
memory::byte_patch::make(g_pointers->m_gta.m_max_wanted_level.add(14).rip().as<uint32_t*>(), 0).get();
// 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<PVOID*>(), 0).get();
// Patch blocked explosions
explosion_anti_cheat_bypass::m_can_blame_others =
memory::byte_patch::make(g_pointers->m_gta.m_blame_explode.as<uint16_t*>(), 0xE990).get();
@@ -98,4 +103,4 @@ namespace big
g_byte_patch_manager = nullptr;
}
}
}