mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-08 06:12:17 -05:00
Add custom location images on lobby menu
This commit is contained in:
parent
51c4727afe
commit
1b00d6c683
@ -237,8 +237,9 @@ CoD.MapInfoImage.ZombieUpdate = function (f6_arg0, f6_arg1, f6_arg2)
|
|||||||
if f6_local0 == "" then
|
if f6_local0 == "" then
|
||||||
f6_local0 = CoD.Zombie.START_LOCATION_TRANSIT
|
f6_local0 = CoD.Zombie.START_LOCATION_TRANSIT
|
||||||
end
|
end
|
||||||
|
local materialName = GetMapMaterialName(f6_arg1, f6_local1, f6_local0)
|
||||||
f6_arg0.mapImage:registerAnimationState("change_map", {
|
f6_arg0.mapImage:registerAnimationState("change_map", {
|
||||||
material = RegisterMaterial("menu_" .. f6_arg1 .. "_" .. f6_local1 .. "_" .. f6_local0),
|
material = RegisterMaterial(materialName),
|
||||||
alpha = 1
|
alpha = 1
|
||||||
})
|
})
|
||||||
f6_arg0.mapImage:animateToState("change_map", 100)
|
f6_arg0.mapImage:animateToState("change_map", 100)
|
||||||
@ -268,6 +269,37 @@ CoD.MapInfoImage.ZombieUpdate = function (f6_arg0, f6_arg1, f6_arg2)
|
|||||||
CoD.MapInfoImage.DLCWarningUpdate(f6_arg0)
|
CoD.MapInfoImage.DLCWarningUpdate(f6_arg0)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function GetMapMaterialName(map, gamemode, location)
|
||||||
|
if map == "zm_transit" and gamemode ~= "zclassic" then
|
||||||
|
gamemode = "zsurvival"
|
||||||
|
end
|
||||||
|
|
||||||
|
if location == "diner" then
|
||||||
|
gamemode = "zencounter"
|
||||||
|
end
|
||||||
|
|
||||||
|
if location == "power" or location == "tunnel" or location == "cornfield" then
|
||||||
|
gamemode = "zsurvival"
|
||||||
|
location = "transit"
|
||||||
|
end
|
||||||
|
|
||||||
|
if location == "nuked" then
|
||||||
|
gamemode = "zsurvival"
|
||||||
|
end
|
||||||
|
|
||||||
|
if location == "cellblock" or location == "docks" then
|
||||||
|
gamemode = "zencounter"
|
||||||
|
location = "cellblock"
|
||||||
|
end
|
||||||
|
|
||||||
|
if location == "street" or location == "maze" then
|
||||||
|
gamemode = "zencounter"
|
||||||
|
location = "street"
|
||||||
|
end
|
||||||
|
|
||||||
|
return "menu_" .. map .. "_" .. gamemode .. "_" .. location
|
||||||
|
end
|
||||||
|
|
||||||
function GetGriefModeDisplayName()
|
function GetGriefModeDisplayName()
|
||||||
return Engine.Localize("ZMUI_" .. UIExpression.DvarString(nil, "ui_gametype_obj") .. "_CAPS")
|
return Engine.Localize("ZMUI_" .. UIExpression.DvarString(nil, "ui_gametype_obj") .. "_CAPS")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user