Add coord message when activate targets.
This commit is contained in:
Binary file not shown.
@@ -48,6 +48,8 @@ Localizations = {
|
|||||||
['There is no range section of %s left.'] = 'There is no range section of %s left.',
|
['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 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',
|
['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',
|
['Stationary'] = 'Stationary',
|
||||||
['Moving'] = 'Moving',
|
['Moving'] = 'Moving',
|
||||||
},
|
},
|
||||||
@@ -99,6 +101,8 @@ Localizations = {
|
|||||||
['There is no range section of %s left.'] = '没有 %s 类型靶场空闲了.',
|
['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 state: %s'] = '在 %s 区域刷新目标. 目标类型: %s 状态: %s',
|
||||||
['Spawn target at %s section area. targetType: %s AAType: %s state: %s'] = '在 %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'] = '静止目标',
|
['Stationary'] = '静止目标',
|
||||||
['Moving'] = '运动目标',
|
['Moving'] = '运动目标',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -495,6 +495,7 @@ do
|
|||||||
local Controller = targetGroup:getController()
|
local Controller = targetGroup:getController()
|
||||||
if not Controller then return end
|
if not Controller then return end
|
||||||
|
|
||||||
|
local targetPointReport = Localizations:translate('Your targets are spawned at: ','cn')
|
||||||
--Set Moving
|
--Set Moving
|
||||||
if Move then
|
if Move then
|
||||||
local startPoint = {}
|
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)
|
timer.scheduleFunction(function (Mission)
|
||||||
Controller:setTask(Mission)
|
Controller:setTask(Mission)
|
||||||
end,Mission,timer.getTime()+5)
|
end,Mission,timer.getTime()+5)
|
||||||
end
|
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
|
--Set fight back
|
||||||
if self.playerList[playerName].isTargerRedAlert then
|
if self.playerList[playerName].isTargerRedAlert then
|
||||||
timer.scheduleFunction(function (targetGroup)
|
timer.scheduleFunction(function (targetGroup)
|
||||||
|
|||||||
Reference in New Issue
Block a user