STEAM GROUP
Left 4 Dead 2 Workshop Beta L4D2WSB
STEAM GROUP
Left 4 Dead 2 Workshop Beta L4D2WSB
2
IN-GAME
22
ONLINE
Founded
15 October, 2012
bruhlord 7 Mar, 2013 @ 4:39pm
Using STAGE_ESCAPE and getting the round to restart
I was wondering whether there's a way to have a round restart or team switch after STAGE_ESCAPE. In my mutation, once the survivors get to the end, there'll be a rescue helicopter waiting for them. Using an escape, once one person gets in, the helicopter leaves and the credits roll. Using a results stage will end the round after the tank stage (in my mutation). Is there a way to restart the round (since it's versus, switch the teams) once the helicopter leaves, without getting the credits to roll?

function GetNextStage() { SessionState.CurrentStage++ switch ( SessionState.CurrentStage ) { case 0: // setup stage SessionOptions.ScriptedStageType = STAGE_SETUP SessionOptions.ScriptedStageValue = 10 Ticker_NewStr( "10 second head start. Run!" ) break case 1: // zombie horde chasing you SessionOptions.ScriptedStageType = STAGE_PANIC SessionOptions.ScriptedStageValue = 1 // 1 wave of zombies chasing you Ticker_NewStr( "Here they come..." ) HUDManageTimers( 1 , TIMER_COUNTUP, 0) break case 2: // taaank! SessionOptions.ScriptedStageType = STAGE_TANK SessionOptions.TankLimit = 1 Ticker_NewStr( "Rescue won't arrive until you kill the Tank!" ) break case 3: // escape! SessionOptions.ScriptedStageType = STAGE_ESCAPE SessionOptions.TankLimit = 0 // tanks every 5 seconds, sounds lovely SessionOptions.CommonLimit = 30 g_RoundState.g_RescueManager.ForceSummonRescueChopper() Ticker_NewStr( "Rescue is here! Get Aboard!" ) } }