Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions Solution/source/Memory/GTAmemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1492,8 +1492,6 @@ void GTAmemory::Init()
_gamePlayCameraAddr = reinterpret_cast<UINT64*>(*reinterpret_cast<int*>(address + 3) + address + 7);
}



// Bypass model requests block
if (g_isEnhanced) {
address = MemryScan::PatternScanner::FindPattern("44 0f b6 b4 24 ? ? ? ? 41 20 f6");
Expand All @@ -1505,17 +1503,6 @@ void GTAmemory::Init()
if (address) memset(reinterpret_cast<void*>(address - 24), 0x90, 24);
}

// Bypass is player model allowed to spawn checks
if (g_isEnhanced) {
address = MemryScan::PatternScanner::FindPattern("74 ? e8 ? ? ? ? 48 8b b0");
if (address) memset(reinterpret_cast<void*>(address + 28), 0x90, 6);
}
else {
// new pattern that lands outside of the patched bytes, to ensure compatibility with other mods that patch them.
address = MemryScan::PatternScanner::FindPattern("40 53 48 83 ec ? e8 ? ? ? ? 48 8b d8 48 85 c0 74 ? 48 8b 10 48 8b c8 ff 52");
if (address) memset(reinterpret_cast<void*>(address + 28), 0x90, 4);
}

//GetModelInfo

if (g_isEnhanced) {
Expand Down
2 changes: 1 addition & 1 deletion Solution/source/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define _CRT_SECURE_NO_WARNINGS


#define MENYOO_CURRENT_VER_ "2.2.1a2"
#define MENYOO_CURRENT_VER_ "2.2.1a3"


#define GAME_PLAYERCOUNT 30
Expand Down