diff options
author | cat_or_not <41955154+catornot@users.noreply.github.com> | 2022-08-07 12:52:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-07 17:52:44 +0100 |
commit | eeb653546c25282a4c40799d6e4a5da466fc919c (patch) | |
tree | 9f02a944d68f3a5ae57e070934b34457a2c9380c /Northstar.CustomServers/mod/scripts | |
parent | aad66d78924569a5974297355635ee8606a039af (diff) | |
download | NorthstarMods-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.nut | 3 |
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 |