aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts
diff options
context:
space:
mode:
authorcat_or_not <41955154+catornot@users.noreply.github.com>2022-08-07 12:52:44 -0400
committerGitHub <noreply@github.com>2022-08-07 17:52:44 +0100
commiteeb653546c25282a4c40799d6e4a5da466fc919c (patch)
tree9f02a944d68f3a5ae57e070934b34457a2c9380c /Northstar.CustomServers/mod/scripts
parentaad66d78924569a5974297355635ee8606a039af (diff)
downloadNorthstarMods-eeb653546c25282a4c40799d6e4a5da466fc919c.tar.gz
NorthstarMods-eeb653546c25282a4c40799d6e4a5da466fc919c.zip
fix DelayedGamemodeAnnouncement (#471)
Diffstat (limited to 'Northstar.CustomServers/mod/scripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut3
1 files changed, 2 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut
index 341493ba..8d859ba6 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_wargames.nut
@@ -339,7 +339,8 @@ void function PlayerWatchesWargamesIntro( entity player )
void function DelayedGamemodeAnnouncement( entity player )
{
wait 1.0
- TryGameModeAnnouncement( player )
+ if ( IsValid( player ) && IsAlive( player ) )
+ TryGameModeAnnouncement( player )
}
void function PlaySound_SimPod_DoorShut( entity playerFirstPersonProxy ) // stolen from sp_training