-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfpcameraplayerbase.lua
More file actions
32 lines (28 loc) · 1.28 KB
/
Copy pathfpcameraplayerbase.lua
File metadata and controls
32 lines (28 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
local pc_look = FPCameraPlayerBase._pc_look_function
function FPCameraPlayerBase:_pc_look_function(...)
if RadialMouseMenu and RadialMouseMenu.current_menu and not RadialMouseMenu.current_menu.allow_camera_look and RadialMouseMenu.current_menu:active() then
return 0,0
end
return pc_look(self,...)
end
local gamepad_look = FPCameraPlayerBase._gamepad_look_function
function FPCameraPlayerBase:_gamepad_look_function(...)
if RadialMouseMenu and RadialMouseMenu.current_menu and not RadialMouseMenu.current_menu.allow_camera_look and RadialMouseMenu.current_menu:active() then
return 0,0
end
return gamepad_look(self,...)
end
local gamepad_look_ctl = FPCameraPlayerBase._gamepad_look_function_ctl
function FPCameraPlayerBase:_gamepad_look_function_ctl(...)
if RadialMouseMenu and RadialMouseMenu.current_menu and not RadialMouseMenu.current_menu.allow_camera_look and RadialMouseMenu.current_menu:active() then
return 0,0
end
return gamepad_look_ctl(self,...)
end
local steampad_look = FPCameraPlayerBase._steampad_look_function
function FPCameraPlayerBase:_steampad_look_function(...)
if RadialMouseMenu and RadialMouseMenu.current_menu and not RadialMouseMenu.current_menu.allow_camera_look and RadialMouseMenu.current_menu:active() then
return 0,0
end
return steampad_look(self,...)
end