adj: respawning kills self

This commit is contained in:
DottsGit
2026-06-06 14:23:28 -04:00
parent 2a3e6a2c78
commit d3680765da
2 changed files with 20 additions and 1 deletions
+5
View File
@@ -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