mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-22 05:22:32 +01:00
III: Fix chopper's search light placement
VC: Typo fix
This commit is contained in:
parent
9265226a09
commit
7c79495174
@ -596,6 +596,19 @@ void InjectDelayedPatches_III_Common( bool bHasDebugMenu, const wchar_t* wcModul
|
||||
Patch<float>( 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<float>( 4 ), CHOPPER_SEARCH_LIGHT_POS.y );
|
||||
Patch( match.get<float>( 9 + 4 ), CHOPPER_SEARCH_LIGHT_POS.z );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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!)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user