aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/scripts/vscripts/mp/_classic_mp_dropship_intro.gnut
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-07-17 23:46:52 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-07-17 23:46:52 +0100
commit27bd240871b7c0f2f49fef137718b2e3c208e3b4 (patch)
treea46f401fa389edbb42a32fe8674cbde3a28e7632 /Northstar.CustomServers/scripts/vscripts/mp/_classic_mp_dropship_intro.gnut
parent1c1d36fad84687a93a629525145c557f78cbf673 (diff)
downloadNorthstarMods-27bd240871b7c0f2f49fef137718b2e3c208e3b4.tar.gz
NorthstarMods-27bd240871b7c0f2f49fef137718b2e3c208e3b4.zip
ctf switchsides spawn fix (untested)
Diffstat (limited to 'Northstar.CustomServers/scripts/vscripts/mp/_classic_mp_dropship_intro.gnut')
-rw-r--r--Northstar.CustomServers/scripts/vscripts/mp/_classic_mp_dropship_intro.gnut13
1 files changed, 10 insertions, 3 deletions
diff --git a/Northstar.CustomServers/scripts/vscripts/mp/_classic_mp_dropship_intro.gnut b/Northstar.CustomServers/scripts/vscripts/mp/_classic_mp_dropship_intro.gnut
index 7d5fb9f0d..02c312be3 100644
--- a/Northstar.CustomServers/scripts/vscripts/mp/_classic_mp_dropship_intro.gnut
+++ b/Northstar.CustomServers/scripts/vscripts/mp/_classic_mp_dropship_intro.gnut
@@ -72,9 +72,6 @@ void function DropshipIntro_OnClientConnected( entity player )
return
}
-
- // if we're at this point, we have more players than we do dropships, oh dear
- RespawnAsPilot( player )
}
void function DropshipIntro_OnClientDisconnected( entity player )
@@ -159,6 +156,16 @@ void function SpawnPlayerIntoDropship( entity player )
break
}
+
+ if ( playerDropship.dropship == null )
+ {
+ // if we're at this point, we have more players than we do dropships, oh dear
+ ScreenFadeFromBlack( player, 0.0 )
+ RespawnAsPilot( player )
+
+ file.numPlayersInIntro--
+ return
+ }
// figure out what anims we're using for idle
string idleAnim = DROPSHIP_IDLE_ANIMS[ playerDropshipIndex ]