Skip to content

Commit 0f968c9

Browse files
committed
Use CanFire to prevent sound playing when it shouldn't
1 parent 9732326 commit 0f968c9

File tree

1 file changed

+1
-1
lines changed
  • Data/Ronin.rte/Devices/Weapons/K98K

1 file changed

+1
-1
lines changed

Data/Ronin.rte/Devices/Weapons/K98K/K98K.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ function ThreadedUpdate(self)
254254
self:Deactivate()
255255
end
256256

257-
if fire and not self:IsReloading() then
257+
if fire and self.CanFire and not self:IsReloading() then
258258
if not self.Magazine or self.RoundInMagCount < 1 then
259259
--self:Activate()
260260
elseif not self.activated and not self.delayedFire and self.fireDelayTimer:IsPastSimMS(1 / (self.RateOfFire / 60) * 1000) then

0 commit comments

Comments
 (0)