fixed camera lock bug and item steps are mostly working
This commit is contained in:
@@ -109,14 +109,13 @@ func _ready():
|
||||
if AUDIO == false:
|
||||
AudioServer.set_bus_volume_db(0,-80)
|
||||
|
||||
func _unhandled_input(event) -> void:
|
||||
func _input(event) -> void:
|
||||
if event is InputEventMouseMotion:
|
||||
self.rotate_y(-event.relative.x * SENSITIVITY)
|
||||
head.rotate_x(-event.relative.y * SENSITIVITY)
|
||||
head.rotation.x = clamp(head.rotation.x, deg_to_rad(-90), deg_to_rad(85))
|
||||
mouse_input = event.relative
|
||||
|
||||
|
||||
|
||||
func _physics_process(delta):
|
||||
|
||||
if !dead:
|
||||
@@ -306,7 +305,7 @@ func ladder_collide(is_climbing):
|
||||
func _on_pick_up_magnet_body_entered(body):
|
||||
if body.is_in_group("pickup") and body.is_in_group("magnet"):
|
||||
body.player_follow = self
|
||||
#body.collision_shape.disabled = true
|
||||
body.collision_shape.disabled = true
|
||||
|
||||
func weapon_tilt(input_x, delta):
|
||||
if weapon_holder:
|
||||
|
||||
Reference in New Issue
Block a user