mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-01 16:53:01 +05:00
Tug tow bar
This commit is contained in:
parent
03482f0779
commit
aeb9a76e00
3 changed files with 16 additions and 0 deletions
|
@ -3753,6 +3753,11 @@ void Patch_SA_10()
|
||||||
|
|
||||||
// DFT-30 wheel, Sweeper brushes and other typos in hierarchy
|
// DFT-30 wheel, Sweeper brushes and other typos in hierarchy
|
||||||
InjectHook( 0x4C5311, HierarchyTypoFix::strcasecmp );
|
InjectHook( 0x4C5311, HierarchyTypoFix::strcasecmp );
|
||||||
|
|
||||||
|
|
||||||
|
// Tug tow bar (misc_b instead of misc_a
|
||||||
|
Nop( 0x6AF2CC, 1 );
|
||||||
|
InjectHook( 0x6AF2CC + 1, &CAutomobile::GetTowBarFrame, PATCH_CALL );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Patch_SA_11()
|
void Patch_SA_11()
|
||||||
|
|
|
@ -480,6 +480,16 @@ void CPlane::PreRender()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RwFrame* CAutomobile::GetTowBarFrame() const
|
||||||
|
{
|
||||||
|
RwFrame* towBar = m_pCarNode[20];
|
||||||
|
if ( towBar == nullptr )
|
||||||
|
{
|
||||||
|
towBar = m_pCarNode[21];
|
||||||
|
}
|
||||||
|
return towBar;
|
||||||
|
}
|
||||||
|
|
||||||
void CAutomobile::PreRender()
|
void CAutomobile::PreRender()
|
||||||
{
|
{
|
||||||
// For rotating engine components
|
// For rotating engine components
|
||||||
|
|
|
@ -294,6 +294,7 @@ public:
|
||||||
virtual void PreRender() override;
|
virtual void PreRender() override;
|
||||||
|
|
||||||
void Fix_SilentPatch();
|
void Fix_SilentPatch();
|
||||||
|
RwFrame* GetTowBarFrame() const;
|
||||||
|
|
||||||
static void (CAutomobile::*orgAutomobilePreRender)();
|
static void (CAutomobile::*orgAutomobilePreRender)();
|
||||||
static float ms_engineCompSpeed;
|
static float ms_engineCompSpeed;
|
||||||
|
|
Loading…
Reference in a new issue