Skip to content

Commit

Permalink
Try lowering sound message timer
Browse files Browse the repository at this point in the history
Hopefully this doesn't cause any issues
  • Loading branch information
thecraftianman committed Mar 13, 2024
1 parent 6e24672 commit 60cbefc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lua/acf/core/utilities/sounds/sounds_cl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ do -- Processing adjustable sounds (for example, engine noises)
Volume = Volume * ACF.Volume

if Sound:IsPlaying() then
Sound:ChangePitch(Pitch, 0.1)
Sound:ChangeVolume(Volume, 0.1)
Sound:ChangePitch(Pitch, 0.05)
Sound:ChangeVolume(Volume, 0.05)
else
Sound:PlayEx(Volume, Pitch)
end
Expand Down
2 changes: 1 addition & 1 deletion lua/acf/core/utilities/sounds/sounds_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ function Sounds.SendAdjustableSound(Origin, ShouldStop, Pitch, Volume)
net.WriteUInt(Volume, 8)
end
net.SendPAS(Origin:GetPos())
Origin.ACF.SoundTimer = Time + 0.1
Origin.ACF.SoundTimer = Time + 0.05
end
end

0 comments on commit 60cbefc

Please sign in to comment.