From c601227114fa7c88ff5f56b446ff6fe5ce9d8ded Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Sun, 27 Aug 2023 23:45:31 +0200 Subject: [PATCH] fix: don't show start indicator if player dies in spawn building --- mod/scripts/vscripts/utils/map_configuration.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/scripts/vscripts/utils/map_configuration.nut b/mod/scripts/vscripts/utils/map_configuration.nut index f5b427a..1761f43 100644 --- a/mod/scripts/vscripts/utils/map_configuration.nut +++ b/mod/scripts/vscripts/utils/map_configuration.nut @@ -182,7 +182,7 @@ void function SetUpStartIndicator( vector origin, int triggerRadius ) }) AddCallback_ScriptTriggerLeave( trigger, void function (entity trigger, entity player) { string playerName = player.GetPlayerName() - if ( !localStats[playerName].isRunning && !localStats[playerName].isResetting ) { + if ( !localStats[playerName].isRunning && !localStats[playerName].isResetting && IsAlive(player) ) { Remote_CallFunction_NonReplay( player, "ServerCallback_ToggleStartIndicatorDisplay", true ) } })