From d9b02f6af2cb22299b5f23d130a020f23e25cfa0 Mon Sep 17 00:00:00 2001 From: siecvi <25997662+siecvi@users.noreply.github.com> Date: Sat, 21 Sep 2024 20:00:47 -0300 Subject: [PATCH] fix classic view weapon grenade anim you wont notice this on local view but when spectating other players --- Sources/Client/ClientPlayer.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Sources/Client/ClientPlayer.cpp b/Sources/Client/ClientPlayer.cpp index 0242898..0028c7b 100644 --- a/Sources/Client/ClientPlayer.cpp +++ b/Sources/Client/ClientPlayer.cpp @@ -738,10 +738,9 @@ namespace spades { break; case Player::ToolGrenade: model = renderer.RegisterModel("Models/Weapons/Grenade/Grenade.kv6"); - if (actualWeapInput.primary) { - float f = cookGrenadeTime; - trans.x -= f; - trans.z -= f; + if (p.IsCookingGrenade() && cookGrenadeTime > 0.0F) { + trans.x -= cookGrenadeTime; + trans.z -= cookGrenadeTime; } break; case Player::ToolWeapon: {