diff --git a/Just_A_Training_Map.miz b/Just_A_Training_Map.miz index 4f8712d..e2f3681 100644 Binary files a/Just_A_Training_Map.miz and b/Just_A_Training_Map.miz differ diff --git a/Scripts/Localizations.lua b/Scripts/Localizations.lua index 8ebdc97..8714333 100644 --- a/Scripts/Localizations.lua +++ b/Scripts/Localizations.lua @@ -48,6 +48,8 @@ Localizations = { ['There is no range section of %s left.'] = 'There is no range section of %s left.', ['Spawn target at %s section area. targetType: %s state: %s'] = 'Spawn target at %s section area. targetType: %s state: %s', ['Spawn target at %s section area. targetType: %s AAType: %s state: %s'] = 'Spawn target at %s section area. targetType: %s AAType: %s state: %s', + ['Your targets are spawned at: '] = 'Your targets are spawned at: ', + ['and moving to: '] = 'and moving to: ', ['Stationary'] = 'Stationary', ['Moving'] = 'Moving', }, @@ -99,6 +101,8 @@ Localizations = { ['There is no range section of %s left.'] = '没有 %s 类型靶场空闲了.', ['Spawn target at %s section area. targetType: %s state: %s'] = '在 %s 区域刷新目标. 目标类型: %s 状态: %s', ['Spawn target at %s section area. targetType: %s AAType: %s state: %s'] = '在 %s 区域 刷新目标. 目标类型: %s 防空类型: %s 状态: %s', + ['Your targets are spawned at: '] = '你的目标刷新在: ', + ['and moving to: '] = '并且将要移动到: ', ['Stationary'] = '静止目标', ['Moving'] = '运动目标', } diff --git a/Scripts/Range.lua b/Scripts/Range.lua index 59b1b02..41b283a 100644 --- a/Scripts/Range.lua +++ b/Scripts/Range.lua @@ -495,6 +495,7 @@ do local Controller = targetGroup:getController() if not Controller then return end + local targetPointReport = Localizations:translate('Your targets are spawned at: ','cn') --Set Moving if Move then local startPoint = {} @@ -547,11 +548,35 @@ do }, } + local lat, lon, alt = coord.LOtoLL({x=startPoint.x,y=land.getHeight(startPoint),z=startPoint.y}) + local grid = coord.LLtoMGRS(lat,lon) + local LLText = Utils.tostringLL(lat,lon,3) + local MGRSText = grid.UTMZone .. ' ' .. grid.MGRSDigraph .. ' ' .. grid.Easting .. ' ' .. grid.Northing + targetPointReport = targetPointReport.. '\nLLDM: '..LLText..' \nMGRS: '..MGRSText + + targetPointReport = targetPointReport ..'\n'.. Localizations:translate('and moving to: ','cn') + + lat, lon, alt = coord.LOtoLL({x=finPoint.x,y=land.getHeight(finPoint),z=finPoint.y}) + grid = coord.LLtoMGRS(lat,lon) + LLText = Utils.tostringLL(lat,lon,3,true) + MGRSText = grid.UTMZone .. ' ' .. grid.MGRSDigraph .. ' ' .. grid.Easting .. ' ' .. grid.Northing + targetPointReport = targetPointReport.. '\nLLDM: '..LLText..' \nMGRS: '..MGRSText + timer.scheduleFunction(function (Mission) Controller:setTask(Mission) end,Mission,timer.getTime()+5) end + if not Move then + local lat, lon, alt = coord.LOtoLL({x=centerPoint.x,y=land.getHeight(centerPoint),z=centerPoint.y}) + local grid = coord.LLtoMGRS(lat,lon) + local LLText = Utils.tostringLL(lat,lon,3) + local MGRSText = grid.UTMZone .. ' ' .. grid.MGRSDigraph .. ' ' .. grid.Easting .. ' ' .. grid.Northing + targetPointReport = targetPointReport.. '\nLLDM: '..LLText..' \nMGRS: '..MGRSText + end + + trigger.action.outTextForGroup(self.playerList[playerName].groupID,targetPointReport,60) + --Set fight back if self.playerList[playerName].isTargerRedAlert then timer.scheduleFunction(function (targetGroup)