SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- local Boost = 0
- concommand.Add( 'alib_bhop_boost', function( ply, _, _, args )
- Boost = !Boost
- end)
- concommand.Add( 'alib_bhop_on', function( ply, _, _, args )
- local function bhop( cmd )
- if cmd:KeyDown( IN_JUMP ) and ply:GetMoveType() == MOVETYPE_WALK then
- if !ply:IsOnGround() then cmd:SetButtons( bit.band( cmd:GetButtons(), 0xFFFF - IN_JUMP ) ) end
- if Boost then
- cmd:SetButtons( bit.bor( cmd:GetButtons(), IN_DUCK + IN_SPEED ) )
- cmd:SetForwardMove( -0.0001 )
- if cmd:GetMouseX() < 0 then cmd:SetSideMove( -10000000 )
- elseif cmd:GetMouseX() > 0 then cmd:SetSideMove( 10000000 )
- end
- end
- end
- end
- hook.Add( 'CreateMove', 'CreateMove', bhop )
- end )
- concommand.Add( 'alib_bhop_off', function( ply, _, _, args )
- hook.Remove( 'CreateMove', 'CreateMove' )
- end )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.