adj: respawning kills self
This commit is contained in:
@@ -410,6 +410,11 @@ func _process(delta: float) -> void:
|
||||
if is_instance_valid(spring_arm):
|
||||
# Follow torso position exactly to avoid lerp bobbing
|
||||
spring_arm.global_position = torso.global_position
|
||||
|
||||
if death_screen and death_screen.visible:
|
||||
if Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT) or Input.is_mouse_button_pressed(MOUSE_BUTTON_RIGHT) or Input.is_key_pressed(KEY_SPACE) or Input.is_key_pressed(KEY_ENTER) or Input.is_key_pressed(KEY_ESCAPE) == false and (Input.is_action_just_pressed("ui_accept") or Input.is_action_just_pressed("jump") or Input.is_action_just_pressed("fire")):
|
||||
_on_respawn_pressed()
|
||||
|
||||
return
|
||||
|
||||
# Shield recharge logic
|
||||
|
||||
Reference in New Issue
Block a user