From 9db2766fa02c00bae477a37cc6b7e27507480313 Mon Sep 17 00:00:00 2001 From: Silent Date: Wed, 23 May 2018 00:28:21 +0200 Subject: [PATCH 1/2] Rotate Newsvan antenna in more cases than just when player is using it --- SilentPatchSA/VehicleSA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SilentPatchSA/VehicleSA.cpp b/SilentPatchSA/VehicleSA.cpp index dfe2ab8..ca419e9 100644 --- a/SilentPatchSA/VehicleSA.cpp +++ b/SilentPatchSA/VehicleSA.cpp @@ -574,7 +574,7 @@ void CAutomobile::ProcessSweeper() void CAutomobile::ProcessNewsvan() { - if ( GetStatus() == STATUS_PLAYER ) + if ( GetStatus() == STATUS_PLAYER || GetStatus() == STATUS_PHYSICS || GetStatus() == STATUS_SIMPLE ) { // TODO: Point at something? Like nearest collectable or safehouse m_fGunOrientation += CTimer::m_fTimeStep * 0.05f; From 5499f9e2e9e09b948206e59870b00fb032917040 Mon Sep 17 00:00:00 2001 From: Silent Date: Sat, 26 May 2018 14:43:02 +0200 Subject: [PATCH 2/2] Fix Phoenix blower not animating when reversing --- SilentPatchSA/VehicleSA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SilentPatchSA/VehicleSA.cpp b/SilentPatchSA/VehicleSA.cpp index ca419e9..042536c 100644 --- a/SilentPatchSA/VehicleSA.cpp +++ b/SilentPatchSA/VehicleSA.cpp @@ -528,7 +528,7 @@ void CAutomobile::ProcessPhoenixBlower( int32_t modelID ) } float finalAngle = 0.0f; - if ( m_fGasPedal > 0.0f ) + if ( std::abs(m_fGasPedal) > 0.0f ) { if ( m_fSpecialComponentAngle < 1.3f ) {