Skip to content

Commit

Permalink
Add delta time to adjustable sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
thecraftianman committed Jan 26, 2024
1 parent 5fa0991 commit a98c9ff
Showing 1 changed file with 2 additions and 2 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)
Sound:ChangeVolume(Volume, 0)
Sound:ChangePitch(Pitch, 0.1)
Sound:ChangeVolume(Volume, 0.1)
else
Sound:PlayEx(Volume, Pitch)
end
Expand Down

0 comments on commit a98c9ff

Please sign in to comment.