Skip to content

Commit

Permalink
Adjust near z when going into settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ZehMatt committed Jun 20, 2024
1 parent 577290d commit cdb4cb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gamemode/cl_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ function GM:CalcView(ply, pos, ang, fov, nearZ, farZ)
view.origin = self.CurrentViewPos
view.angles = self.CurrentViewAng
view.drawviewer = true
view.znear = 10

return view
elseif viewlock == VIEWLOCK_SETTINGS_RELEASE then
Expand All @@ -297,6 +298,7 @@ function GM:CalcView(ply, pos, ang, fov, nearZ, farZ)

view.origin = self.CurrentViewPos
view.angles = self.CurrentViewAng
view.znear = 10

return view
else
Expand Down

0 comments on commit cdb4cb1

Please sign in to comment.