Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. local mc, bn, ba, bo, sl = math.Clamp, bit.bnot, bit.band, bit.bor, string.lower
  2. local mc, ft = math.Clamp, FrameTime
  3. local lp, Iv, Ip, ft, ic, ct, gf, ds, du, pj, ur, ut, uc = LocalPlayer, IsValid, IsFirstTimePredicted, FrameTime, CLIENT, CurTime, {}, {}, {}, {}, {}, {}, {}
  4.  
  5. local function AutoHop( ply, data )
  6. if ply.Style != 7 and ply.Style != 9 then
  7. local bd = data:GetButtons()
  8. if ba( bd, 2 ) > 0 then
  9. if not ply:IsOnGround() and ply:WaterLevel() < 2 and ply:GetMoveType() != 9 then
  10. data:SetButtons( ba( bd, bn( 2 ) ) )
  11. end
  12. end
  13. end
  14. end
  15. hook.Add( "SetupMove", "AutoHop", AutoHop )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement