Advertisement
Guest User

Untitled

a guest
Dec 17th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. function GM:CreateMove( uc )
  2.     if GetConVarNumber( "avanicdeathrun_bhop" ) != 1 then return end
  3.     local lp = LocalPlayer()
  4.     if lp:WaterLevel() < 3 and lp:Alive() and lp:GetMoveType() == MOVETYPE_WALK then
  5.         if not lp:InVehicle() and ( band(uc:GetButtons(), IN_JUMP) ) > 0 then
  6.             if lp:IsOnGround() then
  7.                 uc:SetButtons( uc:GetButtons() or IN_JUMP )
  8.             else
  9.                 uc:SetButtons( band(uc:GetButtons(), bhstop) )
  10.             end
  11.         end
  12.     end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement