Skip to content

Commit 07a14bc

Browse files
Merge pull request #2425 from nasgroup94/master
added Tomcat AA grading adjustments and T45 AOA adjustments
2 parents 2047e81 + 4a1b23c commit 07a14bc

File tree

1 file changed

+37
-11
lines changed

1 file changed

+37
-11
lines changed

Moose Development/Moose/Ops/Airboss.lua

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5498,15 +5498,11 @@ function AIRBOSS:_GetAircraftAoA( playerData )
54985498
aoa.OnSpeedMin = self:_AoAUnit2Deg( playerData, 14.0 ) -- 14.17 --14.5 units -- VNAO Edit - Original value 14.5
54995499
aoa.Fast = self:_AoAUnit2Deg( playerData, 13.5 ) -- 13.33 --14.0 units -- VNAO Edit - Original value 14
55005500
aoa.FAST = self:_AoAUnit2Deg( playerData, 12.5 ) -- 11.67 --13.0 units -- VNAO Edit - Original value 13
5501-
elseif goshawk then
5502-
-- T-45C Goshawk parameters.
5503-
aoa.SLOW = 8.00 -- 19
5504-
aoa.Slow = 7.75 -- 18
5505-
aoa.OnSpeedMax = 7.25 -- 17.5
5506-
aoa.OnSpeed = 7.00 -- 17
5507-
aoa.OnSpeedMin = 6.75 -- 16.5
5508-
aoa.Fast = 6.25 -- 16
5509-
aoa.FAST = 6.00 -- 15
5501+
local hornet = playerData.actype == AIRBOSS.AircraftCarrier.HORNET
5502+
or playerData.actype == AIRBOSS.AircraftCarrier.RHINOE
5503+
or playerData.actype == AIRBOSS.AircraftCarrier.RHINOF
5504+
or playerData.actype == AIRBOSS.AircraftCarrier.GROWLER
5505+
local tomcat = playerData.actype == AIRBOSS.AircraftCarrier.F14A or playerData.actype == AIRBOSS.AircraftCarrier.F14B
55105506
elseif skyhawk then
55115507
-- A-4E-C Skyhawk parameters from https://forums.eagle.ru/showpost.php?p=3703467&postcount=390
55125508
-- Note that these are arbitrary UNITS and not degrees. We need a conversion formula!
@@ -8161,8 +8157,14 @@ function AIRBOSS:_CheckPlayerStatus()
81618157
-- TODO: This might cause problems if the CCA is set to be very small!
81628158
if unit:IsInZone( self.zoneCCA ) then
81638159

8164-
-- VNAO Edit - Added wrapped up call to LSO grading
8165-
if playerData.step==AIRBOSS.PatternStep.WAKE then-- VNAO Edit - Added
8160+
local hornet = playerData.actype == AIRBOSS.AircraftCarrier.HORNET
8161+
or playerData.actype == AIRBOSS.AircraftCarrier.RHINOE
8162+
or playerData.actype == AIRBOSS.AircraftCarrier.RHINOF
8163+
or playerData.actype == AIRBOSS.AircraftCarrier.GROWLER
8164+
local tomcat = playerData.actype == AIRBOSS.AircraftCarrier.F14A or playerData.actype == AIRBOSS.AircraftCarrier.F14B
8165+
8166+
-- VNAO Edit - Added wrapped up call to LSO grading Hornet
8167+
if playerData.step==AIRBOSS.PatternStep.WAKE and hornet then-- VNAO Edit - Added
81668168
if math.abs(playerData.unit:GetRoll())>35 and math.abs(playerData.unit:GetRoll())<=40 then-- VNAO Edit - Added
81678169
playerData.wrappedUpAtWakeLittle = true -- VNAO Edit - Added
81688170
elseif math.abs(playerData.unit:GetRoll()) >40 and math.abs(playerData.unit:GetRoll())<=45 then-- VNAO Edit - Added
@@ -8186,6 +8188,30 @@ function AIRBOSS:_CheckPlayerStatus()
81868188
end -- VNAO Edit - Added
81878189
end-- VNAO Edit - Added
81888190

8191+
-- VNAO Edit - Added wrapped up call to LSO grading Tomcat
8192+
if playerData.step==AIRBOSS.PatternStep.WAKE and tomcat then-- VNAO Edit - Added
8193+
if math.abs(playerData.unit:GetRoll())>35 and math.abs(playerData.unit:GetRoll())<=40 then-- VNAO Edit - Added
8194+
playerData.wrappedUpAtWakeLittle = true -- VNAO Edit - Added
8195+
elseif math.abs(playerData.unit:GetRoll()) >40 and math.abs(playerData.unit:GetRoll())<=45 then-- VNAO Edit - Added
8196+
playerData.wrappedUpAtWakeFull = true-- VNAO Edit - Added
8197+
elseif math.abs(playerData.unit:GetRoll()) >45 then-- VNAO Edit - Added
8198+
playerData.wrappedUpAtWakeUnderline = true -- VNAO Edit - Added
8199+
elseif math.abs(playerData.unit:GetRoll()) <12 and math.abs(playerData.unit:GetRoll()) >=5 then -- VNAO Edit - Added a new AA comment based on discussion with Lipps today, and going to replace the AA at the X with the original LUL comments
8200+
playerData.AAatWakeLittle = true -- VNAO Edit - Added
8201+
elseif math.abs(playerData.unit:GetRoll()) <5 and math.abs(playerData.unit:GetRoll()) >=2 then -- VNAO Edit - Added a new AA comment based on discussion with Lipps today, and going to replace the AA at the X with the original LUL comments
8202+
playerData.AAatWakeFull = true -- VNAO Edit - Added
8203+
elseif math.abs(playerData.unit:GetRoll()) <2 then -- VNAO Edit - Added a new AA comment based on discussion with Lipps today, and going to replace the AA at the X with the original LUL comments
8204+
playerData.AAatWakeUnderline = true -- VNAO Edit - Added
8205+
else -- VNAO Edit - Added
8206+
end -- VNAO Edit - Added
8207+
8208+
if math.abs(playerData.unit:GetAoA())>= 15 then -- VNAO Edit - Added
8209+
playerData.AFU = true -- VNAO Edit - Added
8210+
elseif math.abs(playerData.unit:GetAoA())<= 5 then -- VNAO Edit - Added
8211+
playerData.AFU = true -- VNAO Edit - Added
8212+
else -- VNAO Edit - Added
8213+
end -- VNAO Edit - Added
8214+
end-- VNAO Edit - Added
81898215

81908216
-- Display aircraft attitude and other parameters as message text.
81918217
if playerData.attitudemonitor then

0 commit comments

Comments
 (0)