aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers
diff options
context:
space:
mode:
authorcat_or_not <41955154+catornot@users.noreply.github.com>2022-08-07 12:52:44 -0400
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-07 23:14:13 +0200
commit9c1abd2b301d3e617195c0e34d40674eda416223 (patch)
treea92ebeb38f856bb42d9b772096c4854ee5a995df /Northstar.CustomServers
parent84c1660be63fb1440df2720f783215447a208338 (diff)
downloadNorthstarMods-9c1abd2b301d3e617195c0e34d40674eda416223.tar.gz
NorthstarMods-9c1abd2b301d3e617195c0e34d40674eda416223.zip
fix DelayedGamemodeAnnouncement (#471)
Diffstat (limited to 'Northstar.CustomServers')
-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