Anticheat bypass fix (#2128)
This commit is contained in:
parent
59cc4f2aa7
commit
4b8e350628
@ -23,7 +23,7 @@ namespace big
|
||||
g_script_patcher_service->add_patch(
|
||||
{RAGE_JOAAT("freemode"), "2C ? ? ? 55 ? ? 71 2C ? ? ? 61", 7, std::vector<uint8_t>(16, 0x0), &g.spoofing.spoof_blip}); // prevent normal blip update 2
|
||||
g_script_patcher_service->add_patch({RAGE_JOAAT("shop_controller"), "2D 01 04 00 00 2C ? ? ? 56 ? ? 71", 5, {0x71, 0x2E, 0x01, 0x01}, nullptr}); // despawn bypass
|
||||
g_script_patcher_service->add_patch({RAGE_JOAAT("shop_controller"), "38 00 5D ? ? ? 38 00 5D ? ? ? 38 00 41", 0, std::vector<uint8_t>(12, 0x0), nullptr}); // godmode/invisibility detection bypass
|
||||
g_script_patcher_service->add_patch({RAGE_JOAAT("shop_controller"), "2D 01 03 00 00 5D ? ? ? 06 56 ? ? 2E ? ? 2C", 5, {0x2E, 0x01, 0x00}, nullptr}); // godmode/invisibility detection bypass
|
||||
g_script_patcher_service->add_patch({RAGE_JOAAT("am_mp_nightclub"),
|
||||
"2D 01 03 00 00 2C ? ? ? 56 ? ? 72 2E ? ? 38 00",
|
||||
5,
|
||||
|
@ -39,9 +39,8 @@ namespace big
|
||||
{
|
||||
auto f1 = *(__int64*)(cb + 0x60);
|
||||
auto f2 = *(__int64*)(cb + 0x100);
|
||||
auto f3 = *(__int64*)(cb + 0x1A0);
|
||||
|
||||
if (!is_address_in_game_region(f1) || !is_address_in_game_region(f2) || !is_address_in_game_region(f3))
|
||||
if (!is_address_in_game_region(f1) || (f2 && !is_address_in_game_region(f2)))
|
||||
return false;
|
||||
|
||||
// These must run, otherwise we'll at some point run out of sysMemSimpleAllocator memory.
|
||||
@ -50,7 +49,7 @@ namespace big
|
||||
return false;
|
||||
}
|
||||
|
||||
return is_jump(f1) || is_jump(f2) || is_jump(f3);
|
||||
return is_jump(f1) || is_jump(f2);
|
||||
}
|
||||
|
||||
void hooks::queue_dependency(void* dependency)
|
||||
|
Reference in New Issue
Block a user