Same fix for planes - CPlane::Fix does not fuck up doors anymore & resets bouncing panels

This commit is contained in:
Silent 2014-08-11 23:00:19 +02:00
parent a01c8fc730
commit e4e9495cb0
2 changed files with 9 additions and 1 deletions

View file

@ -1417,6 +1417,13 @@ __forceinline void Patch_SA_10()
Patch<DWORD>(0x6A3565, 0x54C48300); Patch<DWORD>(0x6A3565, 0x54C48300);
InjectHook(0x6A3569, &CAutomobile::Fix_SilentPatch, PATCH_JUMP); 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<BYTE>(0x6CABD0, 0xEB);
Patch<DWORD>(0x6CAC05, 0x5E5FCF8B);
InjectHook(0x6CAC09, &CAutomobile::Fix_SilentPatch, PATCH_JUMP);
// Zones fix // Zones fix
InjectHook(0x572130, GetCurrentZoneLockedOrUnlocked, PATCH_JUMP); InjectHook(0x572130, GetCurrentZoneLockedOrUnlocked, PATCH_JUMP);

View file

@ -211,7 +211,8 @@ void CAutomobile::Fix_SilentPatch()
for ( int i = 0; i < 3; i++ ) for ( int i = 0; i < 3; i++ )
{ {
// Towtruck/Tractor fix // 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; continue;
m_aBouncingPanel[i].m_nNodeIndex = -1; m_aBouncingPanel[i].m_nNodeIndex = -1;
} }