Merge remote-tracking branch 'origin/master' into branch

This commit is contained in:
Applevangelist
2025-11-09 14:25:35 +01:00
5 changed files with 2087 additions and 915 deletions
+9 -5
View File
@@ -5498,11 +5498,15 @@ function AIRBOSS:_GetAircraftAoA( playerData )
aoa.OnSpeedMin = self:_AoAUnit2Deg( playerData, 14.0 ) -- 14.17 --14.5 units -- VNAO Edit - Original value 14.5 aoa.OnSpeedMin = self:_AoAUnit2Deg( playerData, 14.0 ) -- 14.17 --14.5 units -- VNAO Edit - Original value 14.5
aoa.Fast = self:_AoAUnit2Deg( playerData, 13.5 ) -- 13.33 --14.0 units -- VNAO Edit - Original value 14 aoa.Fast = self:_AoAUnit2Deg( playerData, 13.5 ) -- 13.33 --14.0 units -- VNAO Edit - Original value 14
aoa.FAST = self:_AoAUnit2Deg( playerData, 12.5 ) -- 11.67 --13.0 units -- VNAO Edit - Original value 13 aoa.FAST = self:_AoAUnit2Deg( playerData, 12.5 ) -- 11.67 --13.0 units -- VNAO Edit - Original value 13
local hornet = playerData.actype == AIRBOSS.AircraftCarrier.HORNET elseif goshawk then --These parameters edited by CIRCUIT to support new VNAO flight model
or playerData.actype == AIRBOSS.AircraftCarrier.RHINOE -- T-45C Goshawk parameters.
or playerData.actype == AIRBOSS.AircraftCarrier.RHINOF aoa.SLOW = 9.5 -- 8.00 -- 19
or playerData.actype == AIRBOSS.AircraftCarrier.GROWLER aoa.Slow = 9.25 -- 7.75 -- 18
local tomcat = playerData.actype == AIRBOSS.AircraftCarrier.F14A or playerData.actype == AIRBOSS.AircraftCarrier.F14B aoa.OnSpeedMax = 9.0 --7.25 -- 17.5
aoa.OnSpeed = 8.5 -- 7.00 -- 17
aoa.OnSpeedMin = 8.25 -- 6.75 -- 16.5
aoa.Fast = 7.75 -- 6.25 -- 16
aoa.FAST = 5.5 -- 6.00 -- 15
elseif skyhawk then elseif skyhawk then
-- A-4E-C Skyhawk parameters from https://forums.eagle.ru/showpost.php?p=3703467&postcount=390 -- A-4E-C Skyhawk parameters from https://forums.eagle.ru/showpost.php?p=3703467&postcount=390
-- Note that these are arbitrary UNITS and not degrees. We need a conversion formula! -- Note that these are arbitrary UNITS and not degrees. We need a conversion formula!
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+24 -12
View File
@@ -1058,9 +1058,12 @@ function GROUP:GetTypeName()
local DCSGroup = self:GetDCSObject() local DCSGroup = self:GetDCSObject()
if DCSGroup then if DCSGroup then
local GroupTypeName = DCSGroup:getUnit(1):getTypeName() local unit = DCSGroup:getUnit(1)
--self:T3( GroupTypeName ) if unit then
return( GroupTypeName ) local GroupTypeName = unit:getTypeName()
--self:T3( GroupTypeName )
return( GroupTypeName )
end
end end
return nil return nil
@@ -1075,9 +1078,12 @@ function GROUP:GetNatoReportingName()
local DCSGroup = self:GetDCSObject() local DCSGroup = self:GetDCSObject()
if DCSGroup then if DCSGroup then
local GroupTypeName = DCSGroup:getUnit(1):getTypeName() local unit = DCSGroup:getUnit(1)
--self:T3( GroupTypeName ) if unit then
return UTILS.GetReportingName(GroupTypeName) local GroupTypeName = unit:getTypeName()
--self:T3( GroupTypeName )
return UTILS.GetReportingName(GroupTypeName)
end
end end
return "Bogey" return "Bogey"
@@ -1093,9 +1099,12 @@ function GROUP:GetPlayerName()
local DCSGroup = self:GetDCSObject() local DCSGroup = self:GetDCSObject()
if DCSGroup then if DCSGroup then
local PlayerName = DCSGroup:getUnit(1):getPlayerName() local unit = DCSGroup:getUnit(1)
--self:T3( PlayerName ) if unit then
return( PlayerName ) local PlayerName = unit:getPlayerName()
--self:T3( PlayerName )
return( PlayerName )
end
end end
return nil return nil
@@ -1111,9 +1120,12 @@ function GROUP:GetCallsign()
local DCSGroup = self:GetDCSObject() local DCSGroup = self:GetDCSObject()
if DCSGroup then if DCSGroup then
local GroupCallSign = DCSGroup:getUnit(1):getCallsign() local unit = DCSGroup:getUnit(1)
--self:T3( GroupCallSign ) if unit then
return GroupCallSign local GroupCallSign = unit:getCallsign()
--self:T3( GroupCallSign )
return GroupCallSign
end
end end
BASE:E( { "Cannot GetCallsign", Positionable = self, Alive = self:IsAlive() } ) BASE:E( { "Cannot GetCallsign", Positionable = self, Alive = self:IsAlive() } )
@@ -170,6 +170,27 @@ function IDENTIFIABLE:GetCoalition()
return nil return nil
end end
--- Returns true if identifiable is of RED coalition.
-- @param #IDENTIFIABLE self
-- @return #boolean If the identifiable is red.
function IDENTIFIABLE:IsRed()
return self:GetCoalition() == coalition.side.RED
end
--- Returns true if identifiable is of BLUE coalition.
-- @param #IDENTIFIABLE self
-- @return #boolean If the identifiable is blue.
function IDENTIFIABLE:IsBlue()
return self:GetCoalition() == coalition.side.BLUE
end
--- Returns true if identifiable is of NEUTRAL coalition.
-- @param #IDENTIFIABLE self
-- @return #boolean If the identifiable is neutral.
function IDENTIFIABLE:IsNeutral()
return self:GetCoalition() == coalition.side.NEUTRAL
end
--- Returns the name of the coalition of the Identifiable. --- Returns the name of the coalition of the Identifiable.
-- @param #IDENTIFIABLE self -- @param #IDENTIFIABLE self
-- @return #string The name of the coalition. -- @return #string The name of the coalition.