mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 23:03:01 +05:00
Beagle moving aileron
This commit is contained in:
parent
539398dd68
commit
14a31c21e8
2 changed files with 10 additions and 12 deletions
|
@ -291,14 +291,7 @@ void CPlane::PreRender()
|
|||
(this->*(orgPlanePreRender))();
|
||||
|
||||
const int32_t extID = m_nModelIndex.Get();
|
||||
if ( extID == 513 )
|
||||
{
|
||||
ProcessStuntPlane();
|
||||
}
|
||||
}
|
||||
|
||||
void CPlane::ProcessStuntPlane()
|
||||
{
|
||||
auto copyRotation = [&]( size_t src, size_t dest ) {
|
||||
if ( m_pCarNode[src] != nullptr && m_pCarNode[dest] != nullptr )
|
||||
{
|
||||
|
@ -312,8 +305,16 @@ void CPlane::ProcessStuntPlane()
|
|||
}
|
||||
};
|
||||
|
||||
copyRotation( 19, 23 );
|
||||
copyRotation( 20, 24 );
|
||||
if ( extID == 511 )
|
||||
{
|
||||
copyRotation( 18, 21 );
|
||||
}
|
||||
|
||||
if ( extID == 513 )
|
||||
{
|
||||
copyRotation( 19, 23 );
|
||||
copyRotation( 20, 24 );
|
||||
}
|
||||
}
|
||||
|
||||
void CBoat::PreRender_SilentPatch()
|
||||
|
|
|
@ -218,9 +218,6 @@ public:
|
|||
void Fix_SilentPatch();
|
||||
|
||||
static void (CPlane::*orgPlanePreRender)();
|
||||
|
||||
private:
|
||||
void ProcessStuntPlane();
|
||||
};
|
||||
|
||||
class NOVMT CBoat : public CVehicle
|
||||
|
|
Loading…
Reference in a new issue