- option to select which location autopilot navigates towards
- generating "dummy locations" for the MP gamesessions (visible in sonar and mission descriptions) - EndGame network message tells the clients if the mission was successful (because the message may arrive before the sub has reached the exit or before some character has died at the client's end)
This commit is contained in:
@@ -566,6 +566,13 @@ namespace Barotrauma.Networking
|
||||
break;
|
||||
case (byte)PacketTypes.EndGame:
|
||||
string endMessage = inc.ReadString();
|
||||
bool missionSuccessful = inc.ReadBoolean();
|
||||
|
||||
if (missionSuccessful && GameMain.GameSession.Mission != null)
|
||||
{
|
||||
GameMain.GameSession.Mission.Completed = true;
|
||||
}
|
||||
|
||||
CoroutineManager.StartCoroutine(EndGame(endMessage));
|
||||
break;
|
||||
case (byte)PacketTypes.Respawn:
|
||||
|
||||
Reference in New Issue
Block a user