diff --git a/Fika.Core/Coop/ObservedClasses/HandsControllers/CoopObservedFirearmController.cs b/Fika.Core/Coop/ObservedClasses/HandsControllers/CoopObservedFirearmController.cs index ed93b636..0093a840 100644 --- a/Fika.Core/Coop/ObservedClasses/HandsControllers/CoopObservedFirearmController.cs +++ b/Fika.Core/Coop/ObservedClasses/HandsControllers/CoopObservedFirearmController.cs @@ -113,7 +113,8 @@ public static CoopObservedFirearmController Create(CoopPlayer player, Weapon wea public override void ManualUpdate(float deltaTime) { base.ManualUpdate(deltaTime); - if (Time.time - lastFireTime > 0.05f) + lastFireTime += deltaTime; + if (lastFireTime > 0.05f) { if (hasFired) { @@ -295,7 +296,7 @@ public void HandleShotInfoPacket(ref ShotInfoPacket packet, InventoryController FirearmsAnimator.SetFire(true); DryShot(); hasFired = true; - lastFireTime = Time.time; + lastFireTime = 0f; return; } @@ -333,7 +334,7 @@ private void HandleObservedShot(ref ShotInfoPacket packet, InventoryController i triggerPressed = false; hasFired = true; - lastFireTime = Time.time; + lastFireTime = 0f; if (Weapon.SelectedFireMode == Weapon.EFireMode.fullauto) { needsReset = true;