Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --wind setup here--
- if CLIENT then
- local ent = ClientsideModel("error.mdl")
- ent:SetNoDraw(true)
- local csp = CreateSound(ent, "wind.wav")
- hook.Add("Think", "wind_sound_think", function()
- local ply = LocalPlayer()
- if ent:IsValid() then
- ent:SetPos(ply:EyePos() - wind.dir * 50)
- csp:ChangeVolume(ply:GetVelocity():Length() / 1000)
- end
- end)
- end
- if SERVER then
- --physics move here
- end
Advertisement
Add Comment
Please, Sign In to add comment