Skip to content

Clamp FOV to prevent screen rotation #1033#1080

Closed
ModMaker101 wants to merge 1 commit intosmartcmd:mainfrom
ModMaker101:fix/fov-rotation-1033
Closed

Clamp FOV to prevent screen rotation #1033#1080
ModMaker101 wants to merge 1 commit intosmartcmd:mainfrom
ModMaker101:fix/fov-rotation-1033

Conversation

@ModMaker101
Copy link
Contributor

Description

Clamp the FOV to a maximum of 170 to prevent screen rotation glitch.

Changes

Previous Behavior

Very high FOV values + sprinting could cause the screen to rotate.

Root Cause

FOV was unbounded which allowed extreme values to basically flip the camera over.

New Behavior

FOV is no limited to 170.

Fix Implementation

Added a single line that clamps the value.

AI Use Disclosure

No.

Related Issues

2026-03-09.20-46-26.mp4

@ModMaker101
Copy link
Contributor Author

Ready to merge.

@eh-K
Copy link
Contributor

eh-K commented Mar 10, 2026

#975 already fixes and the view model bug.

Great work though!

@ModMaker101
Copy link
Contributor Author

Alright cool, I'll just close this then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] If player has maxed fov (110 fov) and sprints in creative the screen(only in game) rotates

2 participants