mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Clamp it
This commit is contained in:
@@ -80,6 +80,7 @@ class IMICFPS
|
|||||||
|
|
||||||
@render_pitch-=Float(@true_mouse.y-self.mouse_y)/(@mouse_sensitivity*@field_of_view)*70 #unless @game_object
|
@render_pitch-=Float(@true_mouse.y-self.mouse_y)/(@mouse_sensitivity*@field_of_view)*70 #unless @game_object
|
||||||
@yaw %= 360.0
|
@yaw %= 360.0
|
||||||
|
@render_pitch = @render_pitch.clamp(-90.0, 90.0)
|
||||||
@pitch = @pitch.clamp(-90.0, 90.0)
|
@pitch = @pitch.clamp(-90.0, 90.0)
|
||||||
else
|
else
|
||||||
@true_mouse_checked+=1
|
@true_mouse_checked+=1
|
||||||
|
|||||||
Reference in New Issue
Block a user