- 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:
@@ -1082,6 +1082,7 @@ namespace Barotrauma.Networking
|
||||
endMessage += TraitorManager.GetEndMessage();
|
||||
}
|
||||
|
||||
Mission mission = GameMain.GameSession.Mission;
|
||||
GameMain.GameSession.gameMode.End(endMessage);
|
||||
|
||||
if (autoRestart) AutoRestartTimer = AutoRestartInterval;
|
||||
@@ -1108,6 +1109,7 @@ namespace Barotrauma.Networking
|
||||
NetOutgoingMessage msg = server.CreateMessage();
|
||||
msg.Write((byte)PacketTypes.EndGame);
|
||||
msg.Write(endMessage);
|
||||
msg.Write(mission != null && mission.Completed);
|
||||
|
||||
if (server.ConnectionsCount > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user