MeepDarknessMeep

Not-So-Perfect BHop

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