diff --git a/SilentPatchIII/SilentPatchIII.cpp b/SilentPatchIII/SilentPatchIII.cpp index 5cd4849..00b5f1d 100644 --- a/SilentPatchIII/SilentPatchIII.cpp +++ b/SilentPatchIII/SilentPatchIII.cpp @@ -596,6 +596,19 @@ void InjectDelayedPatches_III_Common( bool bHasDebugMenu, const wchar_t* wcModul Patch( enforcerZ2.get_first( 7 ), ENFORCER_SIREN_POS.z ); } } + { + auto chopper1 = pattern( "C7 44 24 44 00 00 E0 40 50 C7 44 24 4C 00 00 00 00" ); // Front light + + if ( chopper1.count_hint(1).size() == 1 ) + { + constexpr CVector CHOPPER_SEARCH_LIGHT_POS(0.0f, 3.0f, -1.25f); + + auto match = chopper1.get_one(); + + Patch( match.get( 4 ), CHOPPER_SEARCH_LIGHT_POS.y ); + Patch( match.get( 9 + 4 ), CHOPPER_SEARCH_LIGHT_POS.z ); + } + } } diff --git a/SilentPatchVC/SilentPatchVC.cpp b/SilentPatchVC/SilentPatchVC.cpp index 4cd6567..86ff866 100644 --- a/SilentPatchVC/SilentPatchVC.cpp +++ b/SilentPatchVC/SilentPatchVC.cpp @@ -546,7 +546,7 @@ void InjectDelayedPatches_VC_Common( bool bHasDebugMenu, const wchar_t* wcModule auto chopper1 = pattern( "C7 44 24 44 00 00 E0 40 50 C7 44 24 4C 00 00 00 00" ); // Front light auto chopper2 = pattern( "C7 44 24 6C 00 00 10 C1 8D 44 24 5C C7 44 24 70 00 00 00 00" ); // Tail light - if ( chopper2.count_hint(1).size() == 1 ) + if ( chopper1.count_hint(1).size() == 1 ) { constexpr CVector CHOPPER_SEARCH_LIGHT_POS(0.0f, 3.0f, -1.0f); // Same as in III Aircraft (not implemented there yet!)