From eb27f34143fe848318d4023a6e293da72cac385f Mon Sep 17 00:00:00 2001 From: Silent Date: Tue, 12 Sep 2017 18:01:02 +0200 Subject: [PATCH] FuckCarCompletely fixed in III and VC --- SilentPatchIII/SilentPatchIII.cpp | 9 +++++++++ SilentPatchVC/SilentPatchVC.cpp | 13 +++++++++++++ 2 files changed, 22 insertions(+) diff --git a/SilentPatchIII/SilentPatchIII.cpp b/SilentPatchIII/SilentPatchIII.cpp index d423d5f..3a1d537 100644 --- a/SilentPatchIII/SilentPatchIII.cpp +++ b/SilentPatchIII/SilentPatchIII.cpp @@ -804,6 +804,15 @@ void Patch_III_Common() InjectHook( match.get( 2 ), dest, PATCH_JUMP ); }); } + + // Proper panels damage + { + auto addr = pattern( "C6 43 09 03 C6 43 0A 03 C6 43 0B 03" ).get_one(); + + Patch( addr.get( 0x1A + 1 ), 5 ); + Patch( addr.get( 0x23 + 1 ), 6 ); + Nop( addr.get( 0x3F ), 7 ); + } } BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) diff --git a/SilentPatchVC/SilentPatchVC.cpp b/SilentPatchVC/SilentPatchVC.cpp index 6b24368..27c1eca 100644 --- a/SilentPatchVC/SilentPatchVC.cpp +++ b/SilentPatchVC/SilentPatchVC.cpp @@ -624,6 +624,19 @@ void Patch_VC_Common() InjectHook( match.get( 2 ), dest, PATCH_JUMP ); }); } + + // Proper panels damage + { + auto addr = pattern( "C6 41 09 03 C6 41 0A 03 C6 41 0B 03" ).get_one(); + + // or dword ptr[ecx+14], 3300000h + // nop + Patch( addr.get( 0x18 ), { 0x81, 0x49, 0x14, 0x00, 0x00, 0x30, 0x03 } ); + Nop( addr.get( 0x18 + 7 ), 13 ); + + Nop( addr.get( 0x33 ), 7 ); + + } } BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)