Skip to content

Commit 14548ad

Browse files
authored
Merge pull request #248 from Disquse/fuel-leaking-patch
Patch fuel tank leaking in netgames
2 parents eff4de7 + 024707f commit 14548ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

code/components/gta-streaming-five/src/UnkStuff.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,10 @@ static HookFunction hookFunction([]()
648648

649649
// scenario point network game check
650650
hook::put<uint8_t>(hook::get_pattern("74 0D 3C 02 0F 94 C0 38 05", 0), 0xEB);
651+
652+
// netgame checks for vehicle fuel tank leaking
653+
hook::nop(hook::get_pattern("48 83 65 7F 00 0F 29 45 27 48 8D 45 77", -0xE3), 7);
654+
hook::nop(hook::get_call(hook::get_pattern<char>("40 53 48 83 EC 20 48 8B D9 E8 ? ? ? ? 84 C0 74 32 8A 83 D8", 9)) + 0x19, 2);
651655
}
652656

653657
// increase the heap size for allocator 0

0 commit comments

Comments
 (0)