• Perk for Bhopping in TTT?
    8 replies, posted
I feel like this might be someone hard to implement but is there a way to setup bhopping on ttt for a certain ulx group and any group higher then that?
you can set up autojump for only that group only, because yknow noone uses mwheel anymore
If you use ULX essentials or ULX extended (cant remember) from coderhire there is a auto bhop that works good.
[QUOTE=Vincii;45685552]If you use ULX essentials or ULX extended (cant remember) from coderhire there is a auto bhop that works good.[/QUOTE] Yeah but wouldnt you have to set the gravity or something to make it better to bhop with ? or naw
From what I remember it works fine, ill test it out today and tell ya.
[lua]CreateConVar( "doge_hop", "1", FCVAR_ARCHIVE, "Autohop for VIPs") local function com_on(ucmd, in_val) return (bit.band(ucmd:GetButtons(), in_val) > 0) end local function com_out(ucmd, in_val) if (com_on(ucmd, in_val)) then ucmd:SetButtons(ucmd:GetButtons() - in_val) end end local Allowed = false local tbl = { "vip", "superadmin", "admin", } timer.Create("Yes", 5, 0, function() if table.HasValue(tbl, LocalPlayer():GetNetworkedString("UserGroup")) then Allowed = true end end) local GetConVarString = GetConVarString hook.Add("CreateMove", "Doge VIP autohop", function(ucmd) if (Allowed) then if (GetConVarString("doge_hop") == "1" && !LocalPlayer():IsOnGround()) then com_out(ucmd, IN_JUMP) end end end)[/lua] I wrote one for another community. Just change what you need and fit it where you want. Im sure I could've made this much smaller and less dumb, but yolo
[QUOTE=zerothefallen;45691993][lua]CreateConVar( "doge_hop", "1", FCVAR_ARCHIVE, "Autohop for VIPs") local function com_on(ucmd, in_val) return (bit.band(ucmd:GetButtons(), in_val) > 0) end local function com_out(ucmd, in_val) if (com_on(ucmd, in_val)) then ucmd:SetButtons(ucmd:GetButtons() - in_val) end end local Allowed = false local tbl = { "vip", "superadmin", "admin", } timer.Create("Yes", 5, 0, function() if table.HasValue(tbl, LocalPlayer():GetNetworkedString("UserGroup")) then Allowed = true end end) local GetConVarString = GetConVarString hook.Add("CreateMove", "Doge VIP autohop", function(ucmd) if (Allowed) then if (GetConVarString("doge_hop") == "1" && !LocalPlayer():IsOnGround()) then com_out(ucmd, IN_JUMP) end end end)[/lua] I wrote one for another community. Just change what you need and fit it where you want. Im sure I could've made this much smaller and less dumb, but yolo[/QUOTE] Now that looks pretty and all but where exactly would I put this ? <3
lua/autorun/client
[QUOTE=zerothefallen;45696092]lua/autorun/client[/QUOTE] My god. YOU ARE A GOD!
Sorry, you need to Log In to post a reply to this thread.