GMOD Sideways/Backwards Bhop Script

GMOD Sideways/Backwards Bhop Script


--Instructions
--after running the lua, type bhop_viewfuck <val> to scew your viewpoint. Use the binds below with the respectful value to go sideways or backwards. happy bhop hakens :3


--lua code
local CreateClientConvar = CreateClientConvar
local GetConVar = GetConVar
local Angle = Angle
CreateClientConVar("bhop_viewfuck", 0, false, false)
function GAMEMODE:CalcView(ply, pos, angles, fov)
    local view = {}
    view.origin = pos
    //print(GetConVar("bhop_viewfuck"):GetInt())
    view.angles = angles + Angle(0,GetConVar("bhop_viewfuck"):GetInt(),0)
    view.fov = fov
    return view
end


--binds
//bind "a" +moveleft;bind "d" +moveright;bind "w" +forward;bind "s" +back

--sideways (90) config

//bind "w" +moveleft;bind "s" +moveright;bind "d" +forward;bind "a" +back

--backwards (180) config

//bind "w" +back; bind "s" +forward; bind "d" +moveleft; bind "a" +moveright

No comments:

Post a Comment