Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. local thirdperson = true
  2. local distance = 200
  3.  
  4. hook.Add( "ShouldDrawLocalPlayer", "Thirdperson", function()
  5. if thirdperson then return true end
  6. end )
  7.  
  8. hook.Add( "CalcView", "Thirdperson", function( ply, origin, angles, fov )
  9. local view = {}
  10. view.origin = origin + angles:GetForward() * -distance
  11. view.angles = angles
  12. view.fov = fov
  13. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement