mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-18 21:25:58 +00:00
Merge remote-tracking branch 'origin/master' into branch
This commit is contained in:
@@ -1667,6 +1667,9 @@ function SPAWN:SpawnWithIndex( SpawnIndex, NoBirth )
|
|||||||
|
|
||||||
-- If RandomizeUnits, then Randomize the formation at the start point.
|
-- If RandomizeUnits, then Randomize the formation at the start point.
|
||||||
if self.SpawnRandomizeUnits then
|
if self.SpawnRandomizeUnits then
|
||||||
|
if self.SpawnRandomizePosition then
|
||||||
|
PointVec3 = COORDINATE:New( SpawnTemplate.x, SpawnTemplate.route.points[1].alt, SpawnTemplate.y )
|
||||||
|
end
|
||||||
for UnitID = 1, #SpawnTemplate.units do
|
for UnitID = 1, #SpawnTemplate.units do
|
||||||
local RandomVec2 = PointVec3:GetRandomVec2InRadius( self.SpawnOuterRadius, self.SpawnInnerRadius )
|
local RandomVec2 = PointVec3:GetRandomVec2InRadius( self.SpawnOuterRadius, self.SpawnInnerRadius )
|
||||||
if (SpawnZone) then
|
if (SpawnZone) then
|
||||||
|
|||||||
@@ -109,7 +109,6 @@
|
|||||||
-- @field Core.Menu#MENU_MISSION menuF10root Specific user defined root F10 menu.
|
-- @field Core.Menu#MENU_MISSION menuF10root Specific user defined root F10 menu.
|
||||||
-- @field #number ceilingaltitude Range ceiling altitude in ft MSL. Aircraft above this altitude are not considered to be in the range. Default is 20000 ft.
|
-- @field #number ceilingaltitude Range ceiling altitude in ft MSL. Aircraft above this altitude are not considered to be in the range. Default is 20000 ft.
|
||||||
-- @field #boolean ceilingenabled Range has a ceiling and is not unlimited. Default is false.
|
-- @field #boolean ceilingenabled Range has a ceiling and is not unlimited. Default is false.
|
||||||
|
|
||||||
-- @extends Core.Fsm#FSM
|
-- @extends Core.Fsm#FSM
|
||||||
|
|
||||||
--- *Don't only practice your art, but force your way into its secrets; art deserves that, for it and knowledge can raise man to the Divine.* - Ludwig van Beethoven
|
--- *Don't only practice your art, but force your way into its secrets; art deserves that, for it and knowledge can raise man to the Divine.* - Ludwig van Beethoven
|
||||||
@@ -1271,6 +1270,9 @@ function RANGE:SetSRS(PathToSRS, Port, Coalition, Frequency, Modulation, Volume,
|
|||||||
self.controlmsrs:SetCoalition(Coalition or coalition.side.BLUE)
|
self.controlmsrs:SetCoalition(Coalition or coalition.side.BLUE)
|
||||||
self.controlmsrs:SetLabel("RANGEC")
|
self.controlmsrs:SetLabel("RANGEC")
|
||||||
self.controlmsrs:SetVolume(Volume or 1.0)
|
self.controlmsrs:SetVolume(Volume or 1.0)
|
||||||
|
if self.rangezone then
|
||||||
|
self.controlmsrs:SetCoordinate(self.rangezone:GetCoordinate())
|
||||||
|
end
|
||||||
self.controlsrsQ = MSRSQUEUE:New("CONTROL")
|
self.controlsrsQ = MSRSQUEUE:New("CONTROL")
|
||||||
|
|
||||||
self.instructmsrs=MSRS:New(PathToSRS or MSRS.path, Frequency or 305, Modulation or radio.modulation.AM)
|
self.instructmsrs=MSRS:New(PathToSRS or MSRS.path, Frequency or 305, Modulation or radio.modulation.AM)
|
||||||
@@ -1278,6 +1280,9 @@ function RANGE:SetSRS(PathToSRS, Port, Coalition, Frequency, Modulation, Volume,
|
|||||||
self.instructmsrs:SetCoalition(Coalition or coalition.side.BLUE)
|
self.instructmsrs:SetCoalition(Coalition or coalition.side.BLUE)
|
||||||
self.instructmsrs:SetLabel("RANGEI")
|
self.instructmsrs:SetLabel("RANGEI")
|
||||||
self.instructmsrs:SetVolume(Volume or 1.0)
|
self.instructmsrs:SetVolume(Volume or 1.0)
|
||||||
|
if self.rangezone then
|
||||||
|
self.instructmsrs:SetCoordinate(self.rangezone:GetCoordinate())
|
||||||
|
end
|
||||||
self.instructsrsQ = MSRSQUEUE:New("INSTRUCT")
|
self.instructsrsQ = MSRSQUEUE:New("INSTRUCT")
|
||||||
|
|
||||||
if PathToGoogleKey then
|
if PathToGoogleKey then
|
||||||
@@ -1316,8 +1321,13 @@ function RANGE:SetSRSRangeControl( frequency, modulation, voice, culture, gender
|
|||||||
self.rangecontrol = true
|
self.rangecontrol = true
|
||||||
if relayunitname then
|
if relayunitname then
|
||||||
local unit = UNIT:FindByName(relayunitname)
|
local unit = UNIT:FindByName(relayunitname)
|
||||||
local Coordinate = unit:GetCoordinate()
|
if unit then
|
||||||
self.rangecontrolrelayname = relayunitname
|
local Coordinate = unit:GetCoordinate()
|
||||||
|
self.rangecontrolrelayname = relayunitname
|
||||||
|
self.controlmsrs:SetCoordinate(Coordinate)
|
||||||
|
else
|
||||||
|
MESSAGE:New("RANGE: Control Relay Unit "..relayunitname.." not found!",15,"ERROR"):ToAllIf(self.Debug):ToLog()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
@@ -1345,9 +1355,13 @@ function RANGE:SetSRSRangeInstructor( frequency, modulation, voice, culture, gen
|
|||||||
self.instructor = true
|
self.instructor = true
|
||||||
if relayunitname then
|
if relayunitname then
|
||||||
local unit = UNIT:FindByName(relayunitname)
|
local unit = UNIT:FindByName(relayunitname)
|
||||||
local Coordinate = unit:GetCoordinate()
|
if unit then
|
||||||
self.instructmsrs:SetCoordinate(Coordinate)
|
local Coordinate = unit:GetCoordinate()
|
||||||
self.instructorrelayname = relayunitname
|
self.instructmsrs:SetCoordinate(Coordinate)
|
||||||
|
self.instructorrelayname = relayunitname
|
||||||
|
else
|
||||||
|
MESSAGE:New("RANGE: Instructor Relay Unit "..relayunitname.." not found!",15,"ERROR"):ToAllIf(self.Debug):ToLog()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -515,7 +515,8 @@ ENUMS.ReportingName =
|
|||||||
Atlas = "A400",
|
Atlas = "A400",
|
||||||
Lancer = "B1-B",
|
Lancer = "B1-B",
|
||||||
Stratofortress = "B-52H",
|
Stratofortress = "B-52H",
|
||||||
Hercules = "C-130",
|
Herc = "C-130",
|
||||||
|
Hercules = "C-130J-30",
|
||||||
Super_Hercules = "Hercules",
|
Super_Hercules = "Hercules",
|
||||||
Globemaster = "C-17",
|
Globemaster = "C-17",
|
||||||
Greyhound = "C-2A",
|
Greyhound = "C-2A",
|
||||||
|
|||||||
@@ -2300,6 +2300,21 @@ function UTILS.IsLoadingDoorOpen( unit_name )
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if type_name=="C-130J-30" and (unit:getDrawArgumentValue(86)==1)then
|
||||||
|
BASE:T(unit_name.." rear doors are open")
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
if type_name=="C-130J-30" and (unit:getDrawArgumentValue(87)==1)then
|
||||||
|
BASE:T(unit_name.." Side door(s) are open")
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
if type_name=="C-130J-30" and (unit:getDrawArgumentValue(88)==1)then
|
||||||
|
BASE:T(unit_name.." Paratroop door(s) are open")
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
if string.find(type_name, "Hercules") and (unit:getDrawArgumentValue(1215) == 1 and unit:getDrawArgumentValue(1216) == 1) then
|
if string.find(type_name, "Hercules") and (unit:getDrawArgumentValue(1215) == 1 and unit:getDrawArgumentValue(1216) == 1) then
|
||||||
BASE:T(unit_name .. " rear doors are open")
|
BASE:T(unit_name .. " rear doors are open")
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user