diff --git a/lua/weapons/arc9_base/cl_peek.lua b/lua/weapons/arc9_base/cl_peek.lua index b82daac4..2242ec36 100644 --- a/lua/weapons/arc9_base/cl_peek.lua +++ b/lua/weapons/arc9_base/cl_peek.lua @@ -5,6 +5,19 @@ local lastpressed = false local arc9_togglepeek_reset = GetConVar("arc9_togglepeek_reset") local arc9_togglepeek = GetConVar("arc9_togglepeek") +local soundin = { + name = "firemode", + sound = "arc9/cloth_5.ogg", + channel = ARC9.CHAN_FIDDLE, + volume = 0.3, +} +local soundout = { + name = "firemode", + sound = "arc9/cloth_4.ogg", + channel = ARC9.CHAN_FIDDLE, + volume = 0.3, +} + function SWEP:ThinkPeek() if !self.dt.InSights then return end @@ -14,10 +27,17 @@ function SWEP:ThinkPeek() if arc9_togglepeek:GetBool() then if binding and !lastpressed then self.Peeking = !self.Peeking + + self:PlayTranslatedSound(self.Peeking and soundout or soundin) end else self.Peeking = binding + + if binding != lastpressed then + self:PlayTranslatedSound(self.Peeking and soundout or soundin) + end end + lastpressed = binding end \ No newline at end of file diff --git a/sound/arc9/cloth_4.ogg b/sound/arc9/cloth_4.ogg new file mode 100644 index 00000000..7b427704 Binary files /dev/null and b/sound/arc9/cloth_4.ogg differ diff --git a/sound/arc9/cloth_5.ogg b/sound/arc9/cloth_5.ogg new file mode 100644 index 00000000..a39199e7 Binary files /dev/null and b/sound/arc9/cloth_5.ogg differ