(3a5d98b) v0.9.6.0

This commit is contained in:
Regalis
2019-12-17 14:38:24 +01:00
parent 5c95c53118
commit a3569b8bf0
95 changed files with 1579 additions and 728 deletions
@@ -2041,6 +2041,16 @@ namespace Barotrauma
commands.Add(new Command("spawnsub", "spawnsub [subname]: Spawn a submarine at the position of the cursor", (string[] args) =>
{
if (GameMain.NetworkMember != null)
{
ThrowError("Cannot spawn additional submarines during a multiplayer session.");
return;
}
if (args.Length == 0)
{
ThrowError("Please enter the name of the submarine.");
return;
}
try
{
Submarine spawnedSub = Submarine.Load(args[0], false);