mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-20 07:43:07 +00:00
Merge remote-tracking branch 'origin/master' into branch
This commit is contained in:
@@ -1637,6 +1637,7 @@ do -- COORDINATE
|
|||||||
if AirbaseCategory == Airbase.Category.SHIP or AirbaseCategory == Airbase.Category.HELIPAD then
|
if AirbaseCategory == Airbase.Category.SHIP or AirbaseCategory == Airbase.Category.HELIPAD then
|
||||||
RoutePoint.linkUnit = AirbaseID
|
RoutePoint.linkUnit = AirbaseID
|
||||||
RoutePoint.helipadId = AirbaseID
|
RoutePoint.helipadId = AirbaseID
|
||||||
|
RoutePoint.airdromeId = airbase:IsAirdrome() and AirbaseID or nil
|
||||||
elseif AirbaseCategory == Airbase.Category.AIRDROME then
|
elseif AirbaseCategory == Airbase.Category.AIRDROME then
|
||||||
RoutePoint.airdromeId = AirbaseID
|
RoutePoint.airdromeId = AirbaseID
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -12229,8 +12229,8 @@ function AIRBOSS:GetHeadingIntoWind_new( vdeck, magnetic, coord )
|
|||||||
local magvar= magnetic and self.magvar or 0
|
local magvar= magnetic and self.magvar or 0
|
||||||
|
|
||||||
-- Ship heading so cross wind is min for the given wind.
|
-- Ship heading so cross wind is min for the given wind.
|
||||||
-- local intowind = (540 + (windto - magvar + math.deg(theta) )) % 360 -- VNAO Edit: Using old heading into wind algorithm
|
local intowind = (540 + (windto - magvar + math.deg(theta) )) % 360
|
||||||
local intowind = self:GetHeadingIntoWind_old(vdeck,magnetic) -- VNAO Edit: Using old heading into wind algorithm
|
|
||||||
|
|
||||||
return intowind, v
|
return intowind, v
|
||||||
end
|
end
|
||||||
@@ -12682,7 +12682,8 @@ function AIRBOSS:_LSOgrade( playerData )
|
|||||||
local nL=count(G, '_')/2
|
local nL=count(G, '_')/2
|
||||||
local nS=count(G, '%(')
|
local nS=count(G, '%(')
|
||||||
local nN=N-nS-nL
|
local nN=N-nS-nL
|
||||||
|
|
||||||
|
if TIG=="_OK_" then nL = nL -1 end --Circuit added to prevent grade deduction for perfect groove
|
||||||
|
|
||||||
-- Groove time 15-18.99 sec for a unicorn. Or 60-65 for V/STOL unicorn.
|
-- Groove time 15-18.99 sec for a unicorn. Or 60-65 for V/STOL unicorn.
|
||||||
local Tgroove=playerData.Tgroove
|
local Tgroove=playerData.Tgroove
|
||||||
@@ -12712,7 +12713,6 @@ function AIRBOSS:_LSOgrade( playerData )
|
|||||||
else
|
else
|
||||||
|
|
||||||
if vtol then
|
if vtol then
|
||||||
|
|
||||||
-- Add AV-8B Harrier devation allowances due to lower groundspeed and 3x conventional groove time, this allows to maintain LSO tolerances while respecting the deviations are not unsafe.--Pene testing
|
-- Add AV-8B Harrier devation allowances due to lower groundspeed and 3x conventional groove time, this allows to maintain LSO tolerances while respecting the deviations are not unsafe.--Pene testing
|
||||||
-- Large devaitions still result in a No Grade, A Unicorn still requires a clean pass with no deviation.
|
-- Large devaitions still result in a No Grade, A Unicorn still requires a clean pass with no deviation.
|
||||||
|
|
||||||
|
|||||||
@@ -4281,20 +4281,10 @@ function UTILS.SpawnFARPAndFunctionalStatics(Name,Coordinate,FARPType,Coalition,
|
|||||||
}
|
}
|
||||||
for id,gridpoint in ipairs(Grid) do
|
for id,gridpoint in ipairs(Grid) do
|
||||||
-- Spawn FARP
|
-- Spawn FARP
|
||||||
--[[
|
|
||||||
local location = COORDINATE:NewFromVec2(gridpoint)
|
|
||||||
local newfarp = SPAWNSTATIC:NewFromType(STypeName,"Heliports",Country) -- "Invisible FARP" "FARP"
|
|
||||||
newfarp:InitShape(SShapeName) -- "invisiblefarp" "FARPS"
|
|
||||||
newfarp:InitFARP(callsign,freq,mod,DynamicSpawns,HotStart)
|
|
||||||
local spawnedfarp = newfarp:SpawnFromCoordinate(location,0,Name.."-"..id)
|
|
||||||
table.insert(ReturnObjects,spawnedfarp)
|
|
||||||
|
|
||||||
PopulateStorage(Name.."-"..id,liquids,equip,airframes)
|
|
||||||
--]]
|
|
||||||
local UnitTemplate = UTILS.DeepCopy(unitData)
|
local UnitTemplate = UTILS.DeepCopy(unitData)
|
||||||
UnitTemplate.x = gridpoint.x
|
UnitTemplate.x = gridpoint.x
|
||||||
UnitTemplate.y = gridpoint.y
|
UnitTemplate.y = gridpoint.y
|
||||||
UnitTemplate.name = Name.."-"..id
|
if id > 1 then UnitTemplate.name = Name.."-"..id end
|
||||||
table.insert(groupData.units,UnitTemplate)
|
table.insert(groupData.units,UnitTemplate)
|
||||||
if id==1 then
|
if id==1 then
|
||||||
groupData.x = gridpoint.x
|
groupData.x = gridpoint.x
|
||||||
|
|||||||
Reference in New Issue
Block a user