Servers can disable the disguise feature. Closes #568
This commit is contained in:
@@ -69,6 +69,12 @@ namespace Barotrauma.Networking
|
||||
{
|
||||
get { return entityEventManager.MidRoundSyncing; }
|
||||
}
|
||||
|
||||
public bool AllowDisguises
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public GameClient(string newName)
|
||||
{
|
||||
@@ -705,6 +711,7 @@ namespace Barotrauma.Networking
|
||||
bool respawnAllowed = inc.ReadBoolean();
|
||||
bool loadSecondSub = inc.ReadBoolean();
|
||||
|
||||
bool disguisesAllowed = inc.ReadBoolean();
|
||||
bool isTraitor = inc.ReadBoolean();
|
||||
string traitorTargetName = isTraitor ? inc.ReadString() : null;
|
||||
|
||||
@@ -743,6 +750,8 @@ namespace Barotrauma.Networking
|
||||
|
||||
GameMain.NetLobbyScreen.UsingShuttle = usingShuttle;
|
||||
|
||||
AllowDisguises = disguisesAllowed;
|
||||
|
||||
if (campaign == null)
|
||||
{
|
||||
if (!GameMain.NetLobbyScreen.TrySelectSub(subName, subHash, GameMain.NetLobbyScreen.SubList))
|
||||
|
||||
Reference in New Issue
Block a user