mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 23:03:01 +05:00
Same fix for planes - CPlane::Fix does not fuck up doors anymore & resets bouncing panels
This commit is contained in:
parent
a01c8fc730
commit
e4e9495cb0
2 changed files with 9 additions and 1 deletions
|
@ -1416,6 +1416,13 @@ __forceinline void Patch_SA_10()
|
||||||
Patch<DWORD>(0x6A3561, 5);
|
Patch<DWORD>(0x6A3561, 5);
|
||||||
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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue