diff --git a/scripts/HUD.gd b/scripts/HUD.gd index ecda7f8..ccb4473 100644 --- a/scripts/HUD.gd +++ b/scripts/HUD.gd @@ -36,8 +36,6 @@ func _process(delta): tutorial() if not Global.tutorialComplete: $musicPanel.visible = false - if Global.iAmSpecial and Global.gamemode == "Runner": - rpc("sync_runner_hp", $Health.value) if Global.musicUpdated == true: Global.musicUpdated = false $musicPanel/playingLabel.text = Global.musicName @@ -60,6 +58,8 @@ func _process(delta): print("RUNNER IS DEAD") rpc("runner_dead", Global.chosenPlayer) runner_dead(Global.chosenPlayer) + if Global.iAmSpecial: + rpc("sync_runner_hp", $Health.value) if Global.gamemode == "TTT": $connectedPlayers.visible = false if Global.teddyAuthorityID == 1: @@ -195,7 +195,11 @@ func sync_runner_health(health): @rpc("any_peer", "reliable") func runner_dead(runner): + Global.specialDead = false Global.roundInSession = false + Global.iAmSpecial = false + Global.chosenPlayer = null + playerSelected = false Global.HUDStartLabelText = "Runner has died! Killers win!" func select_traitor(players, playersID):