Advertisement
Guest User

wwww

a guest
Feb 13th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. local next = next;
  2. local type = type;
  3. local require = require;
  4.  
  5. local function copytable(orig, meta)
  6. if(type(orig) != "table") then return orig; end
  7. local copy = {};
  8.  
  9. for k,v in next, orig do
  10. copy[copytable(k)] = (!meta && copytable(v) || v);
  11. end
  12. return copy;
  13. end
  14.  
  15. local EntM, CmdM;
  16. local me = LocalPlayer();
  17.  
  18. EntM = copytable(FindMetaTable"Entity", true);
  19. CmdM = copytable(FindMetaTable"CUserCmd", true)
  20.  
  21. CreateClientConVar("paper_bunnyhop", 0, true, false)
  22.  
  23. local function bunnyHop(cmd)
  24. if GetConVarNumber("paper_bunnyhop") == 1 then
  25. if(CmdM.KeyDown(cmd, 2) && !EntM.IsOnGround(me)) then
  26. CmdM.RemoveKey(cmd, 2);
  27. end
  28. end
  29. end
  30. hook.Add("CreateMove", "", bunnyHop)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement