Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #248 from Disquse/fuel-leaking-patch
Patch fuel tank leaking in netgames
  • Loading branch information
blattersturm committed Jul 2, 2019
2 parents eff4de7 + 024707f commit 14548ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/components/gta-streaming-five/src/UnkStuff.cpp
Expand Up @@ -648,6 +648,10 @@ static HookFunction hookFunction([]()

// scenario point network game check
hook::put<uint8_t>(hook::get_pattern("74 0D 3C 02 0F 94 C0 38 05", 0), 0xEB);

// netgame checks for vehicle fuel tank leaking
hook::nop(hook::get_pattern("48 83 65 7F 00 0F 29 45 27 48 8D 45 77", -0xE3), 7);
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);
}

// increase the heap size for allocator 0
Expand Down

0 comments on commit 14548ad

Please sign in to comment.