Dedicated server can give clients the permission to use commands that only exist in the client project (los, lights, control, etc). Closes #476

This commit is contained in:
Joonas Rikkonen
2018-07-16 11:43:50 +03:00
parent 734b86bfba
commit ac5bad3011
3 changed files with 14 additions and 2 deletions
@@ -394,7 +394,7 @@ namespace Barotrauma
NewMessage(GUI.DisableHUD ? "Disabled HUD" : "Enabled HUD", Color.White);
}));
commands.Add(new Command("followsub", "followsub: Toggle whether the ", (string[] args) =>
commands.Add(new Command("followsub", "followsub: Toggle whether the camera should follow the nearest submarine.", (string[] args) =>
{
Camera.FollowSub = !Camera.FollowSub;
NewMessage(Camera.FollowSub ? "Set the camera to follow the closest submarine" : "Disabled submarine following.", Color.White);