Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local thirdperson = true
- local distance = 200
- hook.Add( "ShouldDrawLocalPlayer", "Thirdperson", function()
- if thirdperson then return true end
- end )
- hook.Add( "CalcView", "Thirdperson", function( ply, origin, angles, fov )
- local view = {}
- view.origin = origin + angles:GetForward() * -distance
- view.angles = angles
- view.fov = fov
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement