Servers can disable the disguise feature. Closes #568

This commit is contained in:
Joonas Rikkonen
2018-08-14 16:06:23 +03:00
parent 1e02d7406d
commit 4866a89253
5 changed files with 29 additions and 2 deletions
@@ -1456,6 +1456,8 @@ namespace Barotrauma.Networking
msg.Write(AllowRespawn && missionAllowRespawn);
msg.Write(Submarine.MainSubs[1] != null); //loadSecondSub
msg.Write(AllowDisguises);
Traitor traitor = null;
if (TraitorManager != null && TraitorManager.TraitorList.Count > 0)
traitor = TraitorManager.TraitorList.Find(t => t.Character == client.Character);
@@ -177,6 +177,13 @@ namespace Barotrauma.Networking
set;
}
[Serialize(true, true)]
public bool AllowDisguises
{
get;
set;
}
public YesNoMaybe TraitorsEnabled
{
get;