mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-10 11:53:07 +08:00
refactor: move Request Model logic to helper function (#2669)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user