Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mc, bn, ba, bo, sl = math.Clamp, bit.bnot, bit.band, bit.bor, string.lower
- local mc, ft = math.Clamp, FrameTime
- local lp, Iv, Ip, ft, ic, ct, gf, ds, du, pj, ur, ut, uc = LocalPlayer, IsValid, IsFirstTimePredicted, FrameTime, CLIENT, CurTime, {}, {}, {}, {}, {}, {}, {}
- local function AutoHop( ply, data )
- if ply.Style != 7 and ply.Style != 9 then
- local bd = data:GetButtons()
- if ba( bd, 2 ) > 0 then
- if not ply:IsOnGround() and ply:WaterLevel() < 2 and ply:GetMoveType() != 9 then
- data:SetButtons( ba( bd, bn( 2 ) ) )
- end
- end
- end
- end
- hook.Add( "SetupMove", "AutoHop", AutoHop )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement