MeepDarknessMeep

Bunny Hop auto strafe

Jun 29th, 2014
757
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local AddHook = dismay and dismay.AddHook or hook and hook.Add or function() print("fuck i missed") end;
  2. AddHook("CreateMove", "BHOP", function(cmd)
  3.     if (cmd:KeyDown(IN_JUMP)) then
  4.         if(cmd:GetMouseX() < 0) then --spinning right
  5.             cmd:SetSideMove(-10000);
  6.         elseif(cmd:GetMouseX() > 0) then
  7.             cmd:SetSideMove(10000);
  8.         end
  9.         if (LocalPlayer():IsOnGround()) then
  10.             cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_JUMP));
  11.             return;
  12.         end
  13.     end
  14.     cmd:RemoveKey(IN_JUMP);
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment