Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust nearz for settings camera #303

Merged
merged 2 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
0.9.26 (in development)
- Improved: Going in and out of the settings no longer clips into the player model.

0.9.25
- Improved: Hints will no longer show duplicates, instead it will renew the existing hint that has the same text.
Expand Down
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