Some progress on flipping subs
Press crouch to flip every sub in the map, texture alignment breaks and physics items vanish, but other than that it's working.
This commit is contained in:
@@ -67,6 +67,7 @@ namespace Barotrauma
|
||||
TeamASub = Submarine.MainSubs[0];
|
||||
TeamBSub = Submarine.MainSubs[1];
|
||||
TeamBSub.SetPosition(Level.Loaded.EndPosition - new Vector2(0.0f, 2000.0f));
|
||||
//TeamASub.FlipX();
|
||||
|
||||
foreach (Submarine submarine in Submarine.Loaded)
|
||||
{
|
||||
@@ -128,6 +129,7 @@ namespace Barotrauma
|
||||
if (ADead && !BDead)
|
||||
{
|
||||
//team B wins!
|
||||
GameMain.GameSession.CrewManager.WinningTeam = 2;
|
||||
if (GameMain.Server!=null) GameMain.Server.EndGame();
|
||||
}
|
||||
}
|
||||
@@ -137,6 +139,7 @@ namespace Barotrauma
|
||||
if (BDead && !ADead)
|
||||
{
|
||||
//team A wins!
|
||||
GameMain.GameSession.CrewManager.WinningTeam = 1;
|
||||
if (GameMain.Server != null) GameMain.Server.EndGame();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -221,7 +221,7 @@ namespace Barotrauma
|
||||
|
||||
public virtual void Update(float deltaTime) { }
|
||||
|
||||
public virtual bool AssignTeamIDs(List<Networking.Client> clients) { return false; }
|
||||
public virtual bool AssignTeamIDs(List<Networking.Client> clients) { clients.ForEach(client => { client.TeamID = 1; }); return false; }
|
||||
|
||||
public void ShowMessage(int index)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user