mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-07 13:49:33 -05:00
Fix solo private game lobby
This commit is contained in:
parent
fd3ed2fd52
commit
5d5b7132bf
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user