1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00

Fix solo private game lobby

This commit is contained in:
Jbleezy 2024-06-04 22:05:15 -07:00
parent fd3ed2fd52
commit 5d5b7132bf
3 changed files with 7 additions and 1 deletions

View File

@ -193,6 +193,7 @@ CoD.MainLobby.OpenCustomGamesLobby = function(MainLobbyWidget, ClientInstance)
if CoD.isZombie == true then if CoD.isZombie == true then
-- Engine.SetDvar("ui_zm_mapstartlocation", "") -- Engine.SetDvar("ui_zm_mapstartlocation", "")
CoD.PrivateGameLobby.InGameLobby = nil CoD.PrivateGameLobby.InGameLobby = nil
Engine.SetDvar("party_solo", 0)
MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller) MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller)
-- CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller) -- CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller)
else else
@ -213,6 +214,7 @@ CoD.MainLobby.OpenSoloLobby_Zombie = function(MainLobbyWidget, ClientInstance)
Dvar.party_maxplayers:set(1) Dvar.party_maxplayers:set(1)
CoD.PlaylistCategoryFilter = CoD.Zombie.PLAYLIST_CATEGORY_FILTER_SOLOMATCH CoD.PlaylistCategoryFilter = CoD.Zombie.PLAYLIST_CATEGORY_FILTER_SOLOMATCH
CoD.PrivateGameLobby.InGameLobby = nil CoD.PrivateGameLobby.InGameLobby = nil
Engine.SetDvar("party_solo", 1)
MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller) MainLobbyWidget:openMenu("SelectGameModeListZM", ClientInstance.controller)
-- CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller) -- CoD.GameGlobeZombie.MoveToCenter(ClientInstance.controller)
MainLobbyWidget:close() MainLobbyWidget:close()

View File

@ -226,7 +226,7 @@ LUI.createMenu.Loading = function(LocalClientIndex)
local Gametype = Dvar.ui_gametype:get() local Gametype = Dvar.ui_gametype:get()
local LoadscreenName = "loadscreen_" .. Mapname local LoadscreenName = "loadscreen_" .. Mapname
if CoD.isZombie == true then 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" LoadscreenName = "black"
UseLoadingMovie = true UseLoadingMovie = true
else else

View File

@ -267,6 +267,10 @@ local AddGameOptionsButtons = function(PrivateGameLobbyButtonPane, GameOptions,
end end
CoD.PrivateGameLobby.PopulateButtons_Project_Zombie = function(PrivateGameLobbyButtonPane, IsHost) 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 if UIExpression.DvarString(nil, "ui_gametype") == CoD.Zombie.GAMETYPE_ZGRIEF then
Engine.SetGametypeSetting("allowInGameTeamChange", 1) Engine.SetGametypeSetting("allowInGameTeamChange", 1)
else else