Converted Sensitivity to GlobalSettings variable

This commit is contained in:
2024-06-03 23:33:39 -05:00
parent e5fddc2ecd
commit f4e935c911
2 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ func _physics_process(delta):
move_and_slide()
var look_velocity = Input.get_vector("look_left", "look_right", "look_up", "look_down")
rotate_y(-look_velocity.x * joystick_sensitity * delta)
rotate_y(-look_velocity.x * GlobalSettings.Joystick_Sensitivity * delta)
func _process(delta):
#Calculations for seeing if you vaped too many times within a short span
@ -79,7 +79,7 @@ func _input(event):
respawn()
if not is_paused:
if event is InputEventMouseMotion:
rotate_y(-event.relative.x * mouse_sensitivity)
rotate_y(-event.relative.x * GlobalSettings.Mouse_Sensitivity)
if event.is_action_pressed("vape"):
if current_condition == CONDITION.NORMAL: