Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if CLIENT then
- local ply = LocalPlayer()
- local size = 300
- local ratio = (ScrW()/ScrH())
- local ang = Angle(45,45,0)
- hook.Add("RenderScene", "ortho", function(pos)
- render.RenderView{
- origin = pos,
- angles = ang,
- x = 0,
- y = 0,
- w = ScrW(),
- h = ScrH(),
- znear = -32000,
- zfar = 32000,
- ortho = true,
- drawhud = true,
- dopostprocess = true,
- ortholeft = -size*ratio,
- orthoright = size*ratio,
- orthotop = -size,
- orthobottom = size,
- }
- return true
- end)
- hook.Add("ShouldDrawLocalPlayer", "ortho", function()
- return true
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment