From a28ca2949360a15df6453e498020be691840a5fc Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 18 Apr 2023 14:48:39 +1000 Subject: [PATCH] - Exhumed: Repair pilot light angle that's been broken for some time. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Interpolate it as well 🙂. --- source/games/exhumed/src/gun.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/games/exhumed/src/gun.cpp b/source/games/exhumed/src/gun.cpp index fc92aada3..de361f7cf 100644 --- a/source/games/exhumed/src/gun.cpp +++ b/source/games/exhumed/src/gun.cpp @@ -46,6 +46,7 @@ Weapon WeaponInfo[] = { }; static const uint8_t nMinAmmo[] = { 0, 24, 51, 50, 1, 0, 0 }; +static float lastavel; int isRed = 0; @@ -956,7 +957,8 @@ void DrawWeapons(Player* const pPlayer, double interpfrac) { if (!(pPlayer->pPlayerViewSect->Flag & kSectUnderwater)) { - seq_DrawPilotLightSeq(xPos, yPos, pPlayerActor->spr.Angles.Yaw.Normalized180().Degrees() * 2.); + seq_DrawPilotLightSeq(xPos, yPos, interpolatedvalue(lastavel, pPlayer->input.avel, interpfrac) * 2.); + lastavel = pPlayer->input.avel; } } else if (nWeapon == 8 || nWeapon == 9)