diff --git a/ui/t6/mainlobby.lua b/ui/t6/mainlobby.lua index 53f3a6f6..3ea20d41 100644 --- a/ui/t6/mainlobby.lua +++ b/ui/t6/mainlobby.lua @@ -193,6 +193,7 @@ CoD.MainLobby.OpenCustomGamesLobby = function(MainLobbyWidget, ClientInstance) if CoD.isZombie == true then -- Engine.SetDvar("ui_zm_mapstartlocation", "") CoD.PrivateGameLobby.InGameLobby = nil + Engine.SetDvar("party_solo", 0) MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller) -- CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller) else @@ -213,6 +214,7 @@ CoD.MainLobby.OpenSoloLobby_Zombie = function(MainLobbyWidget, ClientInstance) Dvar.party_maxplayers:set(1) CoD.PlaylistCategoryFilter = CoD.Zombie.PLAYLIST_CATEGORY_FILTER_SOLOMATCH CoD.PrivateGameLobby.InGameLobby = nil + Engine.SetDvar("party_solo", 1) MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller) -- CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller) MainLobbyWidget:close() diff --git a/ui_mp/t6/hud/loading.lua b/ui_mp/t6/hud/loading.lua index 56be1ee6..44fd68b7 100644 --- a/ui_mp/t6/hud/loading.lua +++ b/ui_mp/t6/hud/loading.lua @@ -226,7 +226,7 @@ LUI.createMenu.Loading = function(LocalClientIndex) local Gametype = Dvar.ui_gametype:get() local LoadscreenName = "loadscreen_" .. Mapname if CoD.isZombie == true then - if Engine.GameModeIsMode(CoD.GAMEMODE_THEATER) == false and UIExpression.DvarInt(nil, "party_playerCount") == 1 and (Mapname == CoD.Zombie.MAP_ZM_HIGHRISE or Mapname == CoD.Zombie.MAP_ZM_PRISON or Mapname == CoD.Zombie.MAP_ZM_BURIED or Mapname == CoD.Zombie.MAP_ZM_TOMB) and Gametype == CoD.Zombie.GAMETYPE_ZCLASSIC then + if Engine.GameModeIsMode(CoD.GAMEMODE_THEATER) == false and Dvar.party_maxplayers:get() == 1 and (Mapname == CoD.Zombie.MAP_ZM_HIGHRISE or Mapname == CoD.Zombie.MAP_ZM_PRISON or Mapname == CoD.Zombie.MAP_ZM_BURIED or Mapname == CoD.Zombie.MAP_ZM_TOMB) and Gametype == CoD.Zombie.GAMETYPE_ZCLASSIC then LoadscreenName = "black" UseLoadingMovie = true else diff --git a/ui_mp/t6/menus/privategamelobby_project.lua b/ui_mp/t6/menus/privategamelobby_project.lua index 75815efa..32a45dda 100644 --- a/ui_mp/t6/menus/privategamelobby_project.lua +++ b/ui_mp/t6/menus/privategamelobby_project.lua @@ -267,6 +267,10 @@ local AddGameOptionsButtons = function(PrivateGameLobbyButtonPane, GameOptions, end CoD.PrivateGameLobby.PopulateButtons_Project_Zombie = function(PrivateGameLobbyButtonPane, IsHost) + if UIExpression.DvarBool(nil, "party_solo") == 1 then + Dvar.party_maxplayers:set(1) + end + if UIExpression.DvarString(nil, "ui_gametype") == CoD.Zombie.GAMETYPE_ZGRIEF then Engine.SetGametypeSetting("allowInGameTeamChange", 1) else