142 lines
4.6 KiB
Lua
142 lines
4.6 KiB
Lua
MapConfig = MapConfig or {}
|
|
|
|
MapConfig.DefaultMaps = {
|
|
--"Map_Default"
|
|
"Map_Default2"
|
|
}
|
|
|
|
|
|
MapConfig.ESpecialModeType = {
|
|
Default = 1, --- 默认
|
|
LowGravity = 2, --- 低重力
|
|
HighMovementSpeed = 3, --- 高移速
|
|
Reduce = 4, --- 缩小
|
|
IndividualCompetition = 5, --- 个人竞技
|
|
}
|
|
|
|
MapConfig.SpecialModeName = {
|
|
[MapConfig.ESpecialModeType.Default] = "",
|
|
[MapConfig.ESpecialModeType.LowGravity] = "低重力",
|
|
[MapConfig.ESpecialModeType.HighMovementSpeed] = "加速场地",
|
|
[MapConfig.ESpecialModeType.Reduce] = "缩小世界",
|
|
[MapConfig.ESpecialModeType.IndividualCompetition] = "个人",
|
|
}
|
|
|
|
|
|
|
|
MapConfig.MapInfo = {
|
|
{
|
|
ShowName = "G港",
|
|
MapName = { "HD_PS" },
|
|
MiniMapInfo = {
|
|
MapPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Level/MiniMap/MiniMap_GG.MiniMap_GG'),
|
|
MapCentre = {X=204650.000000,Y=278950.000000,Z=1200.000000},
|
|
MapSize = 40000.0,
|
|
MapScale = 30,
|
|
CircleIndex = 1,
|
|
},
|
|
SpecialModeType = MapConfig.ESpecialModeType.Default,
|
|
ProbabilityOfPlaying = 5,
|
|
},
|
|
{
|
|
ShowName = "军事基地",
|
|
MapName = { "HD_PS" },
|
|
MiniMapInfo = {
|
|
MapPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Level/MiniMap/MiniMap_JSJD.MiniMap_JSJD'),
|
|
MapCentre = {X=445200.000000,Y=633100.000000,Z=0.000000},
|
|
MapSize = 60000.0,
|
|
MapScale = 30.,
|
|
CircleIndex = 2,
|
|
},
|
|
SpecialModeType = MapConfig.ESpecialModeType.Default,
|
|
ProbabilityOfPlaying = 3,
|
|
},
|
|
{
|
|
ShowName = "N港",
|
|
MapName = { "HD_PS" },
|
|
MiniMapInfo = {
|
|
MapPath = nil,
|
|
MapCentre = {X=620900.000000,Y=607950.000000,Z=0.000000},
|
|
MapSize = 28000.0,
|
|
MapScale = 20.,
|
|
CircleIndex = 1,
|
|
},
|
|
SpecialModeType = MapConfig.ESpecialModeType.Default,
|
|
ProbabilityOfPlaying = 0,
|
|
},
|
|
{
|
|
ShowName = "监狱",
|
|
MapName = { "HD_PS" },
|
|
MiniMapInfo = {
|
|
MapPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Level/MiniMap/MiniMap_JY.MiniMap_JY'),
|
|
MapCentre = {X=626700.000000,Y=376450.000000,Z=4550.000000},
|
|
MapSize = 16000.0,
|
|
MapScale = 30.,
|
|
CircleIndex = 2,
|
|
},
|
|
SpecialModeType = MapConfig.ESpecialModeType.Default,
|
|
ProbabilityOfPlaying = 5,
|
|
},
|
|
{
|
|
ShowName = "钢铁厂",
|
|
MapName = { "HD_PS" },
|
|
MiniMapInfo = {
|
|
MapPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Level/MiniMap/MiniMap_GTC.MiniMap_GTC'),
|
|
MapCentre = {X=689750.000000,Y=462650.000000,Z=800.000000},
|
|
MapSize = 16000.0,
|
|
MapScale = 30.,
|
|
CircleIndex = 2,
|
|
},
|
|
SpecialModeType = MapConfig.ESpecialModeType.Default,
|
|
ProbabilityOfPlaying = 5,
|
|
},
|
|
{
|
|
ShowName = "水城",
|
|
MapName = { "HD_PS" },
|
|
MiniMapInfo = {
|
|
MapPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Level/MiniMap/MiniMap_SCMP.MiniMap_SCMP'),
|
|
MapCentre = {X=349092.375000,Y=313596.968750,Z=44.235474},
|
|
MapSize = 20000.0,
|
|
MapScale = 30.,
|
|
CircleIndex = 2,
|
|
},
|
|
SpecialModeType = MapConfig.ESpecialModeType.Default,
|
|
ProbabilityOfPlaying = 3,
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
MapConfig.SpecialModeFunc = {
|
|
[MapConfig.ESpecialModeType.LowGravity] = function(GravityScale)
|
|
if GravityScale == nil then GravityScale = 0.3 end
|
|
UGCEventSystem.AddListener(EventEnum.PlayerBeginPlay,
|
|
function(PlayerPawn)
|
|
PlayerPawn:SetGravityScale(GravityScale)
|
|
end
|
|
)
|
|
end,
|
|
[MapConfig.ESpecialModeType.HighMovementSpeed] = function(SpeedScale)
|
|
UGCEventSystem.AddListener(EventEnum.PlayerBeginPlay,
|
|
function(PlayerPawn)
|
|
UGCPawnAttrSystem.SetSpeedScale(PlayerPawn, SpeedScale)
|
|
end
|
|
)
|
|
end,
|
|
|
|
[MapConfig.ESpecialModeType.Reduce] = function(ScaleValue)
|
|
if ScaleValue == nil then ScaleValue = 0.5 end
|
|
UGCEventSystem.AddListener(EventEnum.PlayerBeginPlay,
|
|
function(PlayerPawn)
|
|
UGCEventSystem.SetTimer(UGCGameSystem.GameState, function()
|
|
if UE.IsValid(PlayerPawn) then
|
|
PlayerPawn:ScalePlayer(ScaleValue)
|
|
end
|
|
end, 1.)
|
|
end
|
|
)
|
|
end,
|
|
|
|
}
|