Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local next = next;
- local type = type;
- local require = require;
- local function copytable(orig, meta)
- if(type(orig) != "table") then return orig; end
- local copy = {};
- for k,v in next, orig do
- copy[copytable(k)] = (!meta && copytable(v) || v);
- end
- return copy;
- end
- local EntM, CmdM;
- local me = LocalPlayer();
- EntM = copytable(FindMetaTable"Entity", true);
- CmdM = copytable(FindMetaTable"CUserCmd", true)
- CreateClientConVar("paper_bunnyhop", 0, true, false)
- local function bunnyHop(cmd)
- if GetConVarNumber("paper_bunnyhop") == 1 then
- if(CmdM.KeyDown(cmd, 2) && !EntM.IsOnGround(me)) then
- CmdM.RemoveKey(cmd, 2);
- end
- end
- end
- hook.Add("CreateMove", "", bunnyHop)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement