Audio system

This commit is contained in:
Rendo 2025-11-30 16:22:11 +05:00
commit de2736c701
38 changed files with 2538 additions and 78 deletions

View file

@ -2,9 +2,6 @@ extends Camera3D
class_name PlayerCamera
@export var SENSITIVITY = 0.005
var vertical_compensation : float
var compensation_tween: Tween
var compensate: bool = false
@ -33,7 +30,7 @@ func _input(event: InputEvent) -> void:
if not is_multiplayer_authority() or disabled:
return
if event is InputEventMouseMotion:
rotate_camera(-event.relative.x * SENSITIVITY,-event.relative.y * SENSITIVITY)
rotate_camera(-event.relative.x * ClientSettings.SENSITIVITY,-event.relative.y * ClientSettings.SENSITIVITY)
func rotate_camera(x,y) -> void:
get_parent().rotate_y(x)