CapsAdmin

Untitled

Jan 4th, 2012
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. hook.Add("Move", "ice", function(ply, mov)
  2.     if ply:IsOnGround() and ply:GetGroundEntity():IsValid() and ply:GetGroundEntity():GetModel() == "*80" then
  3.     local vel = mov:GetVelocity()
  4.     local len = vel:Length()
  5.     mov:SetVelocity(vel:Normalize() * math.min(len * 1.3, 1000))
  6.     end
  7. end)
Advertisement
Add Comment
Please, Sign In to add comment