Index: ps/trunk/binaries/data/mods/public/gui/session/menu.js =================================================================== --- ps/trunk/binaries/data/mods/public/gui/session/menu.js +++ ps/trunk/binaries/data/mods/public/gui/session/menu.js @@ -1121,8 +1121,7 @@ function toggleDeveloperOverlay() { - // The developer overlay is disabled in ranked games - if (Engine.HasXmppClient() && Engine.IsRankedGame()) + if (!g_GameAttributes.settings.CheatsEnabled) return; let devCommands = Engine.GetGUIObjectByName("devCommands"); Index: ps/trunk/binaries/data/mods/public/simulation/helpers/Commands.js =================================================================== --- ps/trunk/binaries/data/mods/public/simulation/helpers/Commands.js +++ ps/trunk/binaries/data/mods/public/simulation/helpers/Commands.js @@ -114,6 +114,9 @@ "control-all": function(player, cmd, data) { + if (!data.cmpPlayer.GetCheatsEnabled()) + return; + var cmpGuiInterface = Engine.QueryInterface(SYSTEM_ENTITY, IID_GuiInterface); cmpGuiInterface.PushNotification({ "type": "aichat", @@ -126,6 +129,9 @@ "reveal-map": function(player, cmd, data) { + if (!data.cmpPlayer.GetCheatsEnabled()) + return; + var cmpGuiInterface = Engine.QueryInterface(SYSTEM_ENTITY, IID_GuiInterface); cmpGuiInterface.PushNotification({ "type": "aichat", @@ -563,6 +569,9 @@ "promote": function(player, cmd, data) { + if (!data.cmpPlayer.GetCheatsEnabled()) + return; + var cmpGuiInterface = Engine.QueryInterface(SYSTEM_ENTITY, IID_GuiInterface); cmpGuiInterface.PushNotification({ "type": "aichat",