From 0ae394a150f8bb733f4c35458d9cc76b26a4e03c Mon Sep 17 00:00:00 2001 From: Aviu00 <93730715+Aviu00@users.noreply.github.com> Date: Sun, 3 Mar 2024 17:08:07 +0900 Subject: [PATCH] - fix: Chimp fix. (#169) --- .../Ranged/Systems/SharedGunSystem.Interactions.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Interactions.cs b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Interactions.cs index 749961def2..2e85803d7d 100644 --- a/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Interactions.cs +++ b/Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Interactions.cs @@ -123,6 +123,14 @@ public abstract partial class SharedGunSystem private void OnGunSelected(EntityUid uid, GunComponent component, HandSelectedEvent args) { + // WD EDIT START + if (component.FireRateModified <= 0f) + component.FireRateModified = component.FireRate; + + if (component.FireRateModified <= 0f) + return; + // WD EDIT END + var fireDelay = 1f / component.FireRateModified; if (fireDelay.Equals(0f)) return;