Unstable 0.16.2.0
This commit is contained in:
@@ -521,6 +521,7 @@ namespace Barotrauma
|
||||
if (targetCharacter == null) { return; }
|
||||
|
||||
targetCharacter.GodMode = !targetCharacter.GodMode;
|
||||
NewMessage((targetCharacter.GodMode ? "Enabled godmode on " : "Disabled godmode on " + targetCharacter.Name), Color.White);
|
||||
},
|
||||
() =>
|
||||
{
|
||||
@@ -1042,6 +1043,20 @@ namespace Barotrauma
|
||||
throw new Exception("crash command issued");
|
||||
}));
|
||||
|
||||
commands.Add(new Command("fastforward", "fastforward [seconds]: Fast forwards the game by x seconds. Note that large numbers may cause a long freeze.", (string[] args) =>
|
||||
{
|
||||
float seconds = 0;
|
||||
if (args.Length > 0) { float.TryParse(args[0], out seconds); }
|
||||
System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
|
||||
sw.Start();
|
||||
for (int i = 0; i < seconds * Timing.FixedUpdateRate; i++)
|
||||
{
|
||||
Screen.Selected?.Update(Timing.Step);
|
||||
}
|
||||
sw.Stop();
|
||||
NewMessage($"Fast-forwarded by {seconds} seconds (took {sw.ElapsedMilliseconds / 1000.0f} s).");
|
||||
}));
|
||||
|
||||
commands.Add(new Command("removecharacter", "removecharacter [character name]: Immediately deletes the specified character.", (string[] args) =>
|
||||
{
|
||||
if (args.Length == 0) { return; }
|
||||
|
||||
Reference in New Issue
Block a user