diff --git a/lua/effects/acf_muzzle_flash.lua b/lua/effects/acf_muzzle_flash.lua index b634d26d0..6dc80316f 100644 --- a/lua/effects/acf_muzzle_flash.lua +++ b/lua/effects/acf_muzzle_flash.lua @@ -9,8 +9,8 @@ function EFFECT:Init(Data) local Propellant = Data:GetScale() local ReloadTime = Data:GetMagnitude() local Sound = Gun:GetNWString("Sound") - local Pitch = Gun:GetNWString("SoundPitch") - local Volume = Gun:GetNWString("SoundVolume") + local Pitch = Gun:GetNWFloat("SoundPitch") + local Volume = Gun:GetNWFloat("SoundVolume") local Class = Gun:GetNWString("Class") local ClassData = Weapons.Get(Class) if not ClassData then return end diff --git a/lua/entities/acf_gun/init.lua b/lua/entities/acf_gun/init.lua index c20ae5cc9..0ddb8213c 100644 --- a/lua/entities/acf_gun/init.lua +++ b/lua/entities/acf_gun/init.lua @@ -167,8 +167,8 @@ do -- Spawn and Update functions -------------------------------- -- Set NWvars Entity:SetNWString("WireName", "ACF " .. Entity.Name) Entity:SetNWString("Sound", Entity.SoundPath) - Entity:SetNWString("SoundPitch", Entity.SoundPitch) - Entity:SetNWString("SoundVolume", Entity.SoundVolume) + Entity:SetNWFloat("SoundPitch", Entity.SoundPitch) + Entity:SetNWFloat("SoundVolume", Entity.SoundVolume) Entity:SetNWString("Class", Entity.Class) -- Adjustable barrel length diff --git a/lua/weapons/gmod_tool/stools/acfsound.lua b/lua/weapons/gmod_tool/stools/acfsound.lua index 5840a318e..6d73d5d8d 100644 --- a/lua/weapons/gmod_tool/stools/acfsound.lua +++ b/lua/weapons/gmod_tool/stools/acfsound.lua @@ -40,8 +40,8 @@ Sounds.acf_gun = { ent.SoundVolume = soundData.Volume ent:SetNWString("Sound", soundData.Sound) - ent:SetNWString("SoundPitch", soundData.Pitch) - ent:SetNWString("SoundVolume", soundData.Volume) + ent:SetNWFloat("SoundPitch", soundData.Pitch) + ent:SetNWFloat("SoundVolume", soundData.Volume) end, ResetSound = function(ent) ent.SoundPath = ent.DefaultSound @@ -49,8 +49,8 @@ Sounds.acf_gun = { ent.SoundVolume = 1 ent:SetNWString("Sound", ent.DefaultSound) - ent:SetNWString("SoundPitch", 1) - ent:SetNWString("SoundVolume", 1) + ent:SetNWFloat("SoundPitch", 1) + ent:SetNWFloat("SoundVolume", 1) end }