From fe064b2170d3fe02007b04cc1e1bccbe127deb07 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 9 Apr 2018 10:59:56 +0300 Subject: [PATCH] Added a debug command for mirroring the main sub horizontally --- Barotrauma/BarotraumaShared/Source/DebugConsole.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Barotrauma/BarotraumaShared/Source/DebugConsole.cs b/Barotrauma/BarotraumaShared/Source/DebugConsole.cs index 146919e2f..728c688cb 100644 --- a/Barotrauma/BarotraumaShared/Source/DebugConsole.cs +++ b/Barotrauma/BarotraumaShared/Source/DebugConsole.cs @@ -1715,6 +1715,11 @@ namespace Barotrauma GameMain.Server.CreateEntityEvent(wall); } }, null, null)); + + commands.Add(new Command("flipx", "flipx: mirror the main submarine horizontally", (string[] args) => + { + Submarine.MainSub?.FlipX(); + })); #endif InitProjectSpecific();