From e4e9495cb096d3da78117f84d5513d55686d37ee Mon Sep 17 00:00:00 2001 From: Silent Date: Mon, 11 Aug 2014 23:00:19 +0200 Subject: [PATCH] Same fix for planes - CPlane::Fix does not fuck up doors anymore & resets bouncing panels --- SAFix/SilentPatchSA.cpp | 7 +++++++ SAFix/VehicleSA.cpp | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/SAFix/SilentPatchSA.cpp b/SAFix/SilentPatchSA.cpp index 39ff847..44a999a 100644 --- a/SAFix/SilentPatchSA.cpp +++ b/SAFix/SilentPatchSA.cpp @@ -1416,6 +1416,13 @@ __forceinline void Patch_SA_10() Patch(0x6A3561, 5); Patch(0x6A3565, 0x54C48300); InjectHook(0x6A3569, &CAutomobile::Fix_SilentPatch, PATCH_JUMP); + + // Patched CPlane::Fix + // Doors don't get reset (they can't get damaged anyway), bouncing panels DO reset + // but not on Vortex + Patch(0x6CABD0, 0xEB); + Patch(0x6CAC05, 0x5E5FCF8B); + InjectHook(0x6CAC09, &CAutomobile::Fix_SilentPatch, PATCH_JUMP); // Zones fix diff --git a/SAFix/VehicleSA.cpp b/SAFix/VehicleSA.cpp index 54486b5..21cb2a9 100644 --- a/SAFix/VehicleSA.cpp +++ b/SAFix/VehicleSA.cpp @@ -211,7 +211,8 @@ void CAutomobile::Fix_SilentPatch() for ( int i = 0; i < 3; i++ ) { // Towtruck/Tractor fix - if ( i == 0 && (m_nModelIndex == 525 && m_pCarNode[21]) || (m_nModelIndex == 531 && m_pCarNode[17]) ) + // + no reset on Vortex + if ( i == 0 && ((m_nModelIndex == 525 && m_pCarNode[21]) || (m_nModelIndex == 531 && m_pCarNode[17]) || m_nModelIndex == 539) ) continue; m_aBouncingPanel[i].m_nNodeIndex = -1; }