This commit is contained in:
Applevangelist 2022-10-06 08:07:37 +02:00
parent 005d6d2b06
commit 4d2a58e428
2 changed files with 11 additions and 11 deletions

View File

@ -497,7 +497,7 @@ do
-- @field #AWACS -- @field #AWACS
AWACS = { AWACS = {
ClassName = "AWACS", -- #string ClassName = "AWACS", -- #string
version = "0.2.44", -- #string version = "0.2.45", -- #string
lid = "", -- #string lid = "", -- #string
coalition = coalition.side.BLUE, -- #number coalition = coalition.side.BLUE, -- #number
coalitiontxt = "blue", -- #string coalitiontxt = "blue", -- #string
@ -3515,7 +3515,7 @@ function AWACS:_CheckInAI(FlightGroup,Group,AuftragsNr)
text = string.format("%s. %s. %s. %s",managedgroup.CallSign,self.callsigntxt,alpha,alphacheckbulls) text = string.format("%s. %s. %s. %s",managedgroup.CallSign,self.callsigntxt,alpha,alphacheckbulls)
self:__CheckedIn(1,managedgroup.GID) self:__CheckedIn(1,managedgroup.GID)
local AW = FlightGroup:GetAirWing() local AW = FlightGroup.legion
if AW.HasOwnStation then if AW.HasOwnStation then
self:__AssignAnchor(5,managedgroup.GID,AW.HasOwnStation,AW.StationName) self:__AssignAnchor(5,managedgroup.GID,AW.HasOwnStation,AW.StationName)
else else

View File

@ -574,7 +574,7 @@ function PLAYERRECCE:_GetTargetSet(unit,camera)
function(_unit) function(_unit)
local _unit = _unit -- Wrapper.Unit#UNIT local _unit = _unit -- Wrapper.Unit#UNIT
local _unitpos = _unit:GetCoordinate() local _unitpos = _unit:GetCoordinate()
if startpos:IsLOS(_unitpos) and _unit:IsAlive and _unit:GetLife()>1 then if startpos:IsLOS(_unitpos) and _unit:IsAlive() and _unit:GetLife()>1 then
self:T("Adding to final targets: ".._unit:GetName()) self:T("Adding to final targets: ".._unit:GetName())
finaltargets:Add(_unit:GetName(),_unit) finaltargets:Add(_unit:GetName(),_unit)
end end
@ -1507,7 +1507,7 @@ function PLAYERRECCE:onafterShack(From, Event, To, Client, Target)
coordtext = coord:ToStringFromRPShort(self.ReferencePoint,self.RPName,client,Settings) coordtext = coord:ToStringFromRPShort(self.ReferencePoint,self.RPName,client,Settings)
end end
local coordtext = coord:ToStringA2G(client,Settings) local coordtext = coord:ToStringA2G(client,Settings)
local text = string.format("All stations, %s lost sight of %s\nat %s!",callsign, targettype, coordtext)) local text = string.format("All stations, %s lost sight of %s\nat %s!",callsign, targettype, coordtext)
MESSAGE:New(text,15,self.Name or "FACA"):ToClient(client) MESSAGE:New(text,15,self.Name or "FACA"):ToClient(client)
end end
end end
@ -1550,7 +1550,7 @@ function PLAYERRECCE:onafterTargetLOSLost(From, Event, To, Client, Target)
coordtext = coord:ToStringFromRPShort(self.ReferencePoint,self.RPName,client,Settings) coordtext = coord:ToStringFromRPShort(self.ReferencePoint,self.RPName,client,Settings)
end end
local coordtext = coord:ToStringA2G(client,Settings) local coordtext = coord:ToStringA2G(client,Settings)
local text = string.format("All stations, %s lost sight of %s\nat %s!",callsign, targettype, coordtext)) local text = string.format("All stations, %s lost sight of %s\nat %s!",callsign, targettype, coordtext)
MESSAGE:New(text,15,self.Name or "FACA"):ToClient(client) MESSAGE:New(text,15,self.Name or "FACA"):ToClient(client)
end end
end end