CapsAdmin

Untitled

Sep 2nd, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. if CLIENT then
  2.     local ply = LocalPlayer()
  3.     local size = 300
  4.     local ratio = (ScrW()/ScrH())  
  5.  
  6.     local ang = Angle(45,45,0)
  7.    
  8.     hook.Add("RenderScene", "ortho", function(pos)
  9.         render.RenderView{
  10.             origin = pos,
  11.             angles = ang,
  12.            
  13.             x = 0,
  14.             y = 0,
  15.             w = ScrW(),
  16.             h = ScrH(),
  17.            
  18.             znear = -32000,
  19.             zfar = 32000,
  20.            
  21.             ortho = true,      
  22.             drawhud = true,
  23.             dopostprocess = true,
  24.            
  25.             ortholeft = -size*ratio,
  26.             orthoright = size*ratio,
  27.             orthotop = -size,
  28.             orthobottom = size,
  29.         }
  30.  
  31.         return true
  32.     end)
  33.  
  34.     hook.Add("ShouldDrawLocalPlayer", "ortho", function()
  35.         return true
  36.     end)
  37. end
Advertisement
Add Comment
Please, Sign In to add comment