Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add("PlayerFootstep", "WINTERIZE:Feet", function( ply, pos, foot, sound, volume, rf )
- local tr = util.TraceLine( {start = pos, endpos = pos - Vector(0,0,18), filter={ply}, mask=MASK_SOLID} )
- if tr.Hit and (IsValid(tr.Entity) or tr.HitWorld) then
- local path = string.lower( tr.HitTexture )
- if tr.HitTexture and replaced then
- -- ply:EmitSound("player/footsteps/snow" .. math.random(1, 6) .. ".wav", 100, 100 )
- ply:EmitSound("player/footsteps/snow" .. math.random(1, 6) .. ".wav", 75, 100, WINTERIZE.FootstepVol:GetInt() or 1, CHAN_BODY or 4 )
- return true
- end
- end
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement