I’m just a normal gmod player trying to learn how to lua.
Just to see if I can do it I have an end goal of making a bhop gamemode (don’t really care if it sucks that’s just my goal, just to see if I can do it)
If I can’t figure out how to do it then I find existing code for it and try to figure why it works.
This is autohop. I don’t wanna just copy/paste code so if someone could explain why this works it would be greatly appreciated.
hook.Add( 'SetupMove', 'ss bhop', function( ply, move ) if not ply:IsOnGround() then move:SetButtons( bit.band( move:GetButtons(), bit.bnot( IN_JUMP ) ) ) end end )
I hope this is in the right section, if not im sorry.