mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2025-08-15 10:37:46 +00:00
Next step of folder restructure
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
|
||||
-- ATIS Batumi Airport on 143.00 MHz AM.
|
||||
atisBatumi=ATIS:New(AIRBASE.Caucasus.Batumi, 143.00)
|
||||
atisBatumi:SetRadioRelayUnitName("Radio Relay Batumi")
|
||||
atisBatumi:SetTowerFrequencies({260, 131})
|
||||
atisBatumi:Start()
|
||||
|
||||
-- ATIS Vaziani Airport on 144.00 MHz AM.
|
||||
atisVaziani=ATIS:New(AIRBASE.Caucasus.Vaziani, 144.00)
|
||||
atisVaziani:SetRadioRelayUnitName("Radio Relay Vaziani")
|
||||
atisVaziani:SetTowerFrequencies({269, 140})
|
||||
atisVaziani:Start()
|
||||
|
||||
local airbases=AIRBASE.GetAllAirbases()
|
||||
for _,_airbase in pairs(airbases) do
|
||||
local airbase=_airbase --Wrapper.Airbase#AIRBASE
|
||||
airbase:GetRunwayData(nil, true)
|
||||
end
|
||||
Binary file not shown.
@@ -0,0 +1,37 @@
|
||||
|
||||
|
||||
-- ATIS Nellis AFB on 270.10 MHz AM.
|
||||
atisNellis=ATIS:New(AIRBASE.Nevada.Nellis_AFB, 270.1)
|
||||
atisNellis:SetRadioRelayUnitName("Radio Relay Nellis")
|
||||
atisNellis:SetActiveRunway("21L")
|
||||
atisNellis:SetTowerFrequencies({327.000, 132.550})
|
||||
atisNellis:SetTACAN(12)
|
||||
atisNellis:AddILS(109.1, "21")
|
||||
atisNellis:Start()
|
||||
|
||||
-- For debugging: Mark runway info on F10 map.
|
||||
--atisNellis:MarkRunways(true)
|
||||
|
||||
|
||||
-- ATIS Creech AFB on 290.45 MHz AM
|
||||
atisCreech=ATIS:New(AIRBASE.Nevada.Creech_AFB, 290.45)
|
||||
atisCreech:SetRadioRelayUnitName("Radio Relay Creech")
|
||||
atisCreech:SetTowerFrequencies({360.6, 118.3})
|
||||
atisCreech:AddILS(108.7, "08")
|
||||
atisCreech:SetTACAN(87)
|
||||
atisCreech:Start()
|
||||
|
||||
|
||||
-- ATIS Creech AFB on 290.45 MHz AM.
|
||||
atisMcCarran=ATIS:New(AIRBASE.Nevada.McCarran_International_Airport, 132.4)
|
||||
atisMcCarran:SetRadioRelayUnitName("Radio Relay McCarran")
|
||||
atisMcCarran:SetTowerFrequencies({257.8, 119.9})
|
||||
atisMcCarran:SetRunwayHeadingsMagnetic({"25L", "25R"})
|
||||
atisMcCarran:SetActiveRunway("R")
|
||||
atisMcCarran:AddILS(110.3, "25R")
|
||||
atisMcCarran:AddILS(111.75, "25L")
|
||||
atisMcCarran:SetVOR(116.9)
|
||||
atisMcCarran:SetTACAN(116)
|
||||
atisMcCarran:SetElevation()
|
||||
atisMcCarran:SetRunwayLength()
|
||||
atisMcCarran:Start()
|
||||
Binary file not shown.
@@ -0,0 +1,26 @@
|
||||
|
||||
atisDubai=ATIS:New(AIRBASE.PersianGulf.Dubai_Intl, 131.7)
|
||||
atisDubai:SetRadioRelayUnitName("Radio Relay Dubai Intl")
|
||||
atisDubai:SetMetricUnits()
|
||||
atisDubai:SetActiveRunway("R")
|
||||
atisDubai:SetTowerFrequencies({251.05, 118.75})
|
||||
atisDubai:AddILS(110.9, "30")
|
||||
atisDubai:AddILS(110.1, "12")
|
||||
atisDubai:Start()
|
||||
|
||||
atisAbuDhabi=ATIS:New(AIRBASE.PersianGulf.Abu_Dhabi_International_Airport, 125.1)
|
||||
atisAbuDhabi:SetRadioRelayUnitName("Radio Relay Abu Dhabi International Airport")
|
||||
atisAbuDhabi:SetMetricUnits()
|
||||
atisAbuDhabi:SetActiveRunway("L")
|
||||
atisAbuDhabi:SetTowerFrequencies({250.5, 119.2})
|
||||
atisAbuDhabi:SetVOR(114.25)
|
||||
atisAbuDhabi:Start()
|
||||
|
||||
-- For debug only! Mark Runway info on F10 map.
|
||||
--atisAbuDhabi:MarkRunways(true)
|
||||
|
||||
-- Jiroft Airport. No radio relay unit ==> No subtitles.
|
||||
atisJiroft=ATIS:New(AIRBASE.PersianGulf.Jiroft_Airport, 130)
|
||||
atisJiroft:SetMetricUnits()
|
||||
atisJiroft:SetTowerFrequencies({250.75, 136})
|
||||
atisJiroft:Start()
|
||||
Binary file not shown.
44
Ops/ATIS/ATIS - 500 - Syria/ATIS - 500 - Syria.lua
Normal file
44
Ops/ATIS/ATIS - 500 - Syria/ATIS - 500 - Syria.lua
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
--[[
|
||||
|
||||
-- Beirut Rafic Hariri Airport
|
||||
atisBeirut=ATIS:New(AIRBASE.Syria.Beirut_Rafic_Hariri, 130.0)
|
||||
atisBeirut:SetRadioRelayUnitName("Radio Relay "..AIRBASE.Syria.Beirut_Rafic_Hariri)
|
||||
atisBeirut:SetTowerFrequencies({251.450, 118.900, 39.850, 4.475})
|
||||
atisBeirut:SetVOR(112.60)
|
||||
atisBeirut:AddILS(109.5, "17")
|
||||
atisBeirut:SetMapMarks()
|
||||
atisBeirut:Start()
|
||||
|
||||
-- Damascus Airport
|
||||
atisDamascus=ATIS:New(AIRBASE.Syria.Damascus, 131.0)
|
||||
atisDamascus:SetRadioRelayUnitName("Radio Relay "..AIRBASE.Syria.Damascus)
|
||||
atisDamascus:SetTowerFrequencies({251.500, 118.500, 39.900, 4.500})
|
||||
atisDamascus:SetActiveRunway("R")
|
||||
atisDamascus:SetVOR(116.00)
|
||||
atisDamascus:AddILS(109.9, "23")
|
||||
atisDamascus:SetMapMarks()
|
||||
atisDamascus:Start()
|
||||
|
||||
-- Ramat David Airport
|
||||
atisRamatDavid=ATIS:New(AIRBASE.Syria.Ramat_David, 132.0)
|
||||
atisRamatDavid:SetRadioRelayUnitName("Radio Relay "..AIRBASE.Syria.Ramat_David)
|
||||
atisRamatDavid:SetTowerFrequencies({251.000, 118.600, 39.400, 4.250})
|
||||
atisRamatDavid:ReportQNHOnly() -- More realitic as only QNH not QFE is reported.
|
||||
atisRamatDavid:ReportZuluTimeOnly() -- More realistic as
|
||||
atisRamatDavid:SetMapMarks()
|
||||
atisRamatDavid:Start()
|
||||
|
||||
]]
|
||||
|
||||
PROFILER.Start()
|
||||
|
||||
-- Incirlik
|
||||
atisIncirlik=ATIS:New(AIRBASE.Syria.Incirlik, 250.40)
|
||||
atisIncirlik:SetRadioRelayUnitName("Radio Relay "..AIRBASE.Syria.Incirlik)
|
||||
atisIncirlik:SetImperialUnits()
|
||||
atisIncirlik:SetTACAN(21)
|
||||
atisIncirlik:SetTowerFrequencies({250.350})
|
||||
atisIncirlik:AddILS(109.30, "5")
|
||||
atisIncirlik:AddILS(111.70, "23")
|
||||
atisIncirlik:Start()
|
||||
BIN
Ops/ATIS/ATIS - 500 - Syria/ATIS - 500 - Syria.miz
Normal file
BIN
Ops/ATIS/ATIS - 500 - Syria/ATIS - 500 - Syria.miz
Normal file
Binary file not shown.
29
Ops/ATIS/ATIS - 510 - Syria SRS/ATIS - 510 - Syria SRS.lua
Normal file
29
Ops/ATIS/ATIS - 510 - Syria SRS/ATIS - 510 - Syria SRS.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
-- SRS:
|
||||
-- SRS version 1.9.6.0+ required. See https://github.com/ciribob/DCS-SimpleRadioStandalone
|
||||
-- SRS is installed in the D:\DCS\_SRS directory. NOTE that backslashes need to be escaped and you have to adjust the directory for you personal install path.
|
||||
---
|
||||
|
||||
|
||||
-- Damascus Airport: Use male voice with en-US culture (accent)
|
||||
atisDamascus=ATIS:New(AIRBASE.Syria.Damascus, 250.00)
|
||||
atisDamascus:SetSRS("D:\\DCS\\_SRS", "male", "en-US")
|
||||
atisDamascus:SetTowerFrequencies({251.500, 118.500, 39.900, 4.500})
|
||||
atisDamascus:SetActiveRunway("R")
|
||||
atisDamascus:SetVOR(116.00)
|
||||
atisDamascus:AddILS(109.9, "23")
|
||||
atisDamascus:SetMapMarks()
|
||||
atisDamascus:Start()
|
||||
|
||||
|
||||
-- Incirlik: Use specific voice named "Microsoft Hedda Desktop", which is a female German adult. Hope you don't mind the accent too much ;)
|
||||
atisIncirlik=ATIS:New(AIRBASE.Syria.Incirlik, 251.50)
|
||||
atisIncirlik:SetSRS("D:\\DCS\\_SRS", nil, nil, "Microsoft Hedda Desktop")
|
||||
atisIncirlik:SetImperialUnits()
|
||||
atisIncirlik:SetTACAN(21)
|
||||
atisIncirlik:SetTowerFrequencies({250.350})
|
||||
atisIncirlik:AddILS(109.30, "5")
|
||||
atisIncirlik:AddILS(111.70, "23")
|
||||
atisIncirlik:Start()
|
||||
|
||||
|
||||
BIN
Ops/ATIS/ATIS - 510 - Syria SRS/ATIS - 510 - Syria SRS.miz
Normal file
BIN
Ops/ATIS/ATIS - 510 - Syria SRS/ATIS - 510 - Syria SRS.miz
Normal file
Binary file not shown.
@@ -0,0 +1,150 @@
|
||||
----------------------------------------------------------------------------------------
|
||||
---
|
||||
-- Name: BOS-100 - Stennis Hornet and Tomcat
|
||||
-- Author: funkyfranky
|
||||
-- Date Created: 17 August 2019
|
||||
--
|
||||
-- # Situation:
|
||||
--
|
||||
-- Practice Case I/II/III recovery using the F/A-18C Hornet or F-14B Tomcat.
|
||||
--
|
||||
-- See mission briefing for further details.
|
||||
--
|
||||
-- *** IMPORTANT ***
|
||||
-- If you run the mission in single player, hit ESC twice before entering a slot!
|
||||
-- Otherwise the script will not load due to a long standing DCS bug.
|
||||
--
|
||||
----------------------------------------------------------------------------------------
|
||||
|
||||
-- No MOOSE settings menu. Comment out this line if required.
|
||||
_SETTINGS:SetPlayerMenuOff()
|
||||
|
||||
-- S-3B Recovery Tanker spawning in air.
|
||||
local tanker=RECOVERYTANKER:New("USS Stennis", "Texaco Group")
|
||||
tanker:SetTakeoffAir()
|
||||
tanker:SetRadio(250)
|
||||
tanker:SetModex(511)
|
||||
tanker:SetTACAN(1, "TKR")
|
||||
tanker:__Start(1)
|
||||
|
||||
-- E-2D AWACS spawning on Stennis.
|
||||
local awacs=RECOVERYTANKER:New("USS Stennis", "E-2D Wizard Group")
|
||||
awacs:SetAWACS()
|
||||
awacs:SetRadio(260)
|
||||
awacs:SetAltitude(20000)
|
||||
awacs:SetCallsign(CALLSIGN.AWACS.Wizard)
|
||||
awacs:SetRacetrackDistances(30, 15)
|
||||
awacs:SetModex(611)
|
||||
awacs:SetTACAN(2, "WIZ")
|
||||
awacs:__Start(1)
|
||||
|
||||
-- Rescue Helo with home base Lake Erie. Has to be a global object!
|
||||
rescuehelo=RESCUEHELO:New("USS Stennis", "Rescue Helo")
|
||||
rescuehelo:SetHomeBase(AIRBASE:FindByName("Lake Erie"))
|
||||
rescuehelo:SetModex(42)
|
||||
rescuehelo:__Start(1)
|
||||
|
||||
-- Create AIRBOSS object.
|
||||
local AirbossStennis=AIRBOSS:New("USS Stennis")
|
||||
|
||||
-- Add recovery windows:
|
||||
-- Case I from 9 to 10 am.
|
||||
local window1=AirbossStennis:AddRecoveryWindow( "9:00", "10:00", 1, nil, true, 25)
|
||||
-- Case II with +15 degrees holding offset from 15:00 for 60 min.
|
||||
local window2=AirbossStennis:AddRecoveryWindow("15:00", "16:00", 2, 15, true, 23)
|
||||
-- Case III with +30 degrees holding offset from 2100 to 2200.
|
||||
local window3=AirbossStennis:AddRecoveryWindow("21:00", "22:00", 3, 30, true, 21)
|
||||
|
||||
-- Set folder of airboss sound files within miz file.
|
||||
AirbossStennis:SetSoundfilesFolder("Airboss Soundfiles/")
|
||||
|
||||
-- Single carrier menu optimization.
|
||||
AirbossStennis:SetMenuSingleCarrier()
|
||||
|
||||
-- Skipper menu.
|
||||
AirbossStennis:SetMenuRecovery(30, 20, false)
|
||||
|
||||
-- Remove landed AI planes from flight deck.
|
||||
AirbossStennis:SetDespawnOnEngineShutdown()
|
||||
|
||||
-- Load all saved player grades from your "Saved Games\DCS" folder (if lfs was desanitized).
|
||||
AirbossStennis:Load()
|
||||
|
||||
-- Automatically save player results to your "Saved Games\DCS" folder each time a player get a final grade from the LSO.
|
||||
AirbossStennis:SetAutoSave()
|
||||
|
||||
-- Enable trap sheet.
|
||||
AirbossStennis:SetTrapSheet()
|
||||
|
||||
-- Start airboss class.
|
||||
AirbossStennis:Start()
|
||||
|
||||
|
||||
--- Function called when recovery tanker is started.
|
||||
function tanker:OnAfterStart(From,Event,To)
|
||||
|
||||
-- Set recovery tanker.
|
||||
AirbossStennis:SetRecoveryTanker(tanker)
|
||||
|
||||
|
||||
-- Use tanker as radio relay unit for LSO transmissions.
|
||||
AirbossStennis:SetRadioRelayLSO(self:GetUnitName())
|
||||
|
||||
end
|
||||
|
||||
--- Function called when AWACS is started.
|
||||
function awacs:OnAfterStart(From,Event,To)
|
||||
-- Set AWACS.
|
||||
AirbossStennis:SetRecoveryTanker(tanker)
|
||||
end
|
||||
|
||||
|
||||
--- Function called when rescue helo is started.
|
||||
function rescuehelo:OnAfterStart(From,Event,To)
|
||||
-- Use rescue helo as radio relay for Marshal.
|
||||
AirbossStennis:SetRadioRelayMarshal(self:GetUnitName())
|
||||
end
|
||||
|
||||
--- Function called when a player gets graded by the LSO.
|
||||
function AirbossStennis:OnAfterLSOGrade(From, Event, To, playerData, grade)
|
||||
local PlayerData=playerData --Ops.Airboss#AIRBOSS.PlayerData
|
||||
local Grade=grade --Ops.Airboss#AIRBOSS.LSOgrade
|
||||
|
||||
----------------------------------------
|
||||
--- Interface your Discord bot here! ---
|
||||
----------------------------------------
|
||||
|
||||
local score=tonumber(Grade.points)
|
||||
local name=tostring(PlayerData.name)
|
||||
|
||||
-- Report LSO grade to dcs.log file.
|
||||
env.info(string.format("Player %s scored %.1f", name, score))
|
||||
end
|
||||
|
||||
|
||||
---------------------------
|
||||
--- Generate AI Traffic ---
|
||||
---------------------------
|
||||
|
||||
-- Spawn some AI flights as additional traffic.
|
||||
local F181=SPAWN:New("FA-18C Group 1"):InitModex(111) -- Coming in from NW after ~ 6 min
|
||||
local F182=SPAWN:New("FA-18C Group 2"):InitModex(112) -- Coming in from NW after ~20 min
|
||||
local F183=SPAWN:New("FA-18C Group 3"):InitModex(113) -- Coming in from W after ~18 min
|
||||
local F14=SPAWN:New("F-14B 2ship"):InitModex(211) -- Coming in from SW after ~ 4 min
|
||||
local E2D=SPAWN:New("E-2D Group"):InitModex(311) -- Coming in from NE after ~10 min
|
||||
local S3B=SPAWN:New("S-3B Group"):InitModex(411) -- Coming in from S after ~16 min
|
||||
|
||||
-- Spawn always 9 min before the recovery window opens.
|
||||
local spawntimes={"8:51", "14:51", "20:51"}
|
||||
for _,spawntime in pairs(spawntimes) do
|
||||
local _time=UTILS.ClockToSeconds(spawntime)-timer.getAbsTime()
|
||||
if _time>0 then
|
||||
SCHEDULER:New(nil, F181.Spawn, {F181}, _time)
|
||||
SCHEDULER:New(nil, F182.Spawn, {F182}, _time)
|
||||
SCHEDULER:New(nil, F183.Spawn, {F183}, _time)
|
||||
SCHEDULER:New(nil, F14.Spawn, {F14}, _time)
|
||||
SCHEDULER:New(nil, E2D.Spawn, {E2D}, _time)
|
||||
SCHEDULER:New(nil, S3B.Spawn, {S3B}, _time)
|
||||
end
|
||||
end
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,54 @@
|
||||
-------------------------------------------------------------------------
|
||||
-- BOS-110 - Airboss launch tanker from ramp
|
||||
-------------------------------------------------------------------------
|
||||
-- Documentation
|
||||
--
|
||||
-- AIRBOSS: https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/Ops.Airboss.html
|
||||
--
|
||||
-------------------------------------------------------------------------
|
||||
-- Simple Recovery tanker script demonstrating the use of the RECOVERYTANKER.uncontrolledac method.
|
||||
-- or RECOVERYTANKER:SetUseUncontrolledAircraft(). Both are shown below.
|
||||
-- You will require an AI skill S-3B tanker group placed in the mission editor,
|
||||
-- Set to "Takeoff from Ramp" and ensure "Uncontrolled" is ticked.
|
||||
-- Ensure "Late activation" is not ticked.
|
||||
--
|
||||
-- 2 S-3B Tankers will be spawned on the USS Stennis as a visible objects (not late activation) but without crew.
|
||||
-- After 30 seconds, the first S-3B will spawn crew, start up go on station overhead at angels 6 with 274 knots TAS (~250 KIAS).
|
||||
-- After 1 minute, the second S-3B will spawn crew, start up and go on station overhead at angels 12 with 300 knots TAS (~249 KIAS)
|
||||
-- Radio frequencies, callsign, Alt and Speed are set below and overrule the settings of the AI group.
|
||||
-------------------------------------------------------------------------
|
||||
-- Date: 29 Dec 2020
|
||||
-- Author: Azza276
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
-- S-3B at USS Stennis spawning on deck, Start with Delay in Moose.
|
||||
local tankerStennis=RECOVERYTANKER:New("USS Stennis", "Texaco Group")
|
||||
|
||||
-- Custom settings for radio frequency, TACAN and callsign.
|
||||
tankerStennis:SetRadio(261)
|
||||
tankerStennis:SetTACAN(37, "SHL")
|
||||
tankerStennis:SetCallsign(CALLSIGN.Tanker.Shell, 3)
|
||||
|
||||
--RECOVERYTANKER.uncontrolledac if true, use an uncontrolled tanker group already present in the mission.
|
||||
tankerStennis.uncontrolledac = true
|
||||
|
||||
-- Start recovery tanker.
|
||||
-- NOTE: Delay to show Aircraft visible on deck then starts later (30 seconds after mission start).
|
||||
tankerStennis:__Start(30)
|
||||
|
||||
-------------------------------------------------------------------------------------------------
|
||||
|
||||
-- S-3B at USS Stennis spawning on deck, Start with Delay in Mission Editor Trigger. Variable is a global.
|
||||
tankerStennis2=RECOVERYTANKER:New( "USS Stennis", "Texaco Group-1")
|
||||
tankerStennis2:SetRadio(271)
|
||||
tankerStennis2:SetTACAN(38, "SHE")
|
||||
tankerStennis2:SetCallsign(3, 2) --First parameter is Callsign name (1=Texaco, 2=Arco, 3=Shell)
|
||||
tankerStennis2:SetAltitude(12000) --Sets Orbit Altitude
|
||||
tankerStennis2:SetSpeed(300) --Sets speed to 300 knots TAS (~249 KIAS at 12000ft)
|
||||
|
||||
--RECOVERYTANKER:SetUseUncontrolledAircraft() to use an uncontrolled tanker group already present in the mission.
|
||||
tankerStennis2:SetUseUncontrolledAircraft()
|
||||
|
||||
--- tankerStennis2:Start()
|
||||
-- The above without "--" is loaded to the Mission editor trigger "Do Script" action after 60 seconds condition.
|
||||
-- NOTE: Delay to show Aircraft visible on deck then starts later (60 seconds after mission start)..
|
||||
Binary file not shown.
@@ -0,0 +1,52 @@
|
||||
---
|
||||
-- RECOVERYTANKER: Uncontrolled_AI
|
||||
--
|
||||
-- Created by Azza276.
|
||||
--
|
||||
-- DateTime: 29/12/2020 20:47
|
||||
--
|
||||
-- Simple Recovery tanker script demonstrating the use of the RECOVERYTANKER.uncontrolledac method.
|
||||
-- or RECOVERYTANKER:SetUseUncontrolledAircraft(). Both are shown below.
|
||||
-- You will require an AI skill S-3B tanker group placed in the mission editor,
|
||||
-- Set to "Takeoff from Ramp" and ensure "Uncontrolled" is ticked.
|
||||
-- Ensure "Late activation" is not ticked.
|
||||
--
|
||||
-- 2 S-3B Tankers will be spawned on the USS Stennis as a visible objects (not late activation) but without crew.
|
||||
-- After 30 seconds, the first S-3B will start up go on station overhead at angels 6 with 274 knots TAS (~250 KIAS).
|
||||
-- After 1 minute, the second S-3B will start up and go on station overhead at angels 12 with 300 knots TAS (~250 KIAS)
|
||||
-- Radio frequencies, callsign are set below and overrule the settings of the AI group.
|
||||
---
|
||||
|
||||
-- S-3B at USS Stennis spawning on deck, Start with Delay in Moose.
|
||||
local tankerStennis=RECOVERYTANKER:New("USS Stennis", "Texaco Group")
|
||||
|
||||
-- Custom settings for radio frequency, TACAN and callsign.
|
||||
tankerStennis:SetRadio(261)
|
||||
tankerStennis:SetTACAN(37, "SHL")
|
||||
tankerStennis:SetCallsign(CALLSIGN.Tanker.Shell, 3)
|
||||
|
||||
--tankerStennis:SetTakeoffCold() --This is not required as they will always start cold from uncontrolled state.
|
||||
|
||||
--RECOVERYTANKER.uncontrolledac if true, use an uncontrolled tanker group already present in the mission.
|
||||
tankerStennis.uncontrolledac = true
|
||||
|
||||
-- Start recovery tanker.
|
||||
-- NOTE: Delay to show Aircraft visible on deck then starts later (30 seconds after mission start).
|
||||
tankerStennis:__Start(30)
|
||||
|
||||
|
||||
|
||||
-- S-3B at USS Stennis spawning on deck, Start with Delay in Mission Editor Trigger.
|
||||
tankerStennis2=RECOVERYTANKER:New( "USS Stennis", "Texaco Group-1")
|
||||
tankerStennis2:SetRadio(271)
|
||||
tankerStennis2:SetTACAN(38, "SHE")
|
||||
tankerStennis2:SetCallsign(3, 2) --First parameter is Callsign name (1=Texaco, 2=Arco, 3=Shell)
|
||||
tankerStennis2:SetAltitude(12000) --Sets Orbit Altitude
|
||||
tankerStennis2:SetSpeed(300) --Sets speed to 300 knots TAS (~250 KIAS at 12000ft)
|
||||
|
||||
--RECOVERYTANKER:SetUseUncontrolledAircraft() to use an uncontrolled tanker group already present in the mission.
|
||||
tankerStennis2:SetUseUncontrolledAircraft()
|
||||
|
||||
-- tankerStennis2:Start()
|
||||
-- The above without "--" is loaded to the Mission editor trigger "Do Script" action after 60 seconds condition.
|
||||
-- NOTE: Delay to show Aircraft visible on deck then starts later (60 seconds after mission start)..
|
||||
@@ -0,0 +1,124 @@
|
||||
----------------------------------------------------------------------------------------
|
||||
---
|
||||
-- Name: BOS-200 - Tarawa Harrier
|
||||
-- Author: funkyfranky
|
||||
-- Date Created: 18 August 2019
|
||||
--
|
||||
-- # Situation:
|
||||
--
|
||||
-- Practice Case I/II/III recovery using the AV-8B Harrier on the USS Tarawa.
|
||||
--
|
||||
-- See mission briefing for further details.
|
||||
--
|
||||
-- *** IMPORTANT ***
|
||||
-- If you run the mission in single player, hit ESC twice before entering a slot!
|
||||
-- Otherwise the script will not load due to a long standing DCS bug.
|
||||
--
|
||||
----------------------------------------------------------------------------------------
|
||||
|
||||
-- No MOOSE settings menu. Comment out this line if required.
|
||||
_SETTINGS:SetPlayerMenuOff()
|
||||
|
||||
-- Rescue Helo with home base USS Viksburg. Has to be a global object!
|
||||
rescuehelo=RESCUEHELO:New("USS Tarawa", "Rescue Helo")
|
||||
rescuehelo:SetHomeBase(AIRBASE:FindByName("USS Viksburg"))
|
||||
rescuehelo:SetModex(42)
|
||||
|
||||
-- Create AIRBOSS object.
|
||||
local AirbossTarawa=AIRBOSS:New("USS Tarawa")
|
||||
|
||||
-- Add recovery windows:
|
||||
-- Case I from 9:00 to 10:00 am.
|
||||
local window1=AirbossTarawa:AddRecoveryWindow( "9:00", "10:00", 1, nil, true, 25)
|
||||
-- Case II with +15 degrees holding offset from 15:00 for 60 min.
|
||||
local window2=AirbossTarawa:AddRecoveryWindow("15:00", "16:00", 2, 15, true, 20)
|
||||
-- Case III with +30 degrees holding offset from 2100 to 2200.
|
||||
local window3=AirbossTarawa:AddRecoveryWindow("21:00", "22:00", 3, 30, true, 20)
|
||||
|
||||
-- Set TACAN.
|
||||
AirbossTarawa:SetTACAN(73, "X", "LHA")
|
||||
|
||||
-- Not sure if Tarawa has ICLS?
|
||||
--AirbossTarawa:SetICLSoff()
|
||||
|
||||
-- Load all saved player grades from your "Saved Games\DCS" folder (if lfs was desanitized).
|
||||
AirbossTarawa:Load()
|
||||
|
||||
-- Automatically save player results to your "Saved Games\DCS" folder each time a player get a final grade from the LSO.
|
||||
AirbossTarawa:SetAutoSave()
|
||||
|
||||
-- Set radio relay units in order to properly send transmissions with subtitles only visible if correct frequency is tuned in.
|
||||
AirbossTarawa:SetRadioRelayLSO("CH-53E Radio Relay")
|
||||
AirbossTarawa:SetRadioRelayMarshal("SH-60B Radio Relay")
|
||||
|
||||
-- Radios.
|
||||
AirbossTarawa:SetMarshalRadio(243)
|
||||
AirbossTarawa:SetLSORadio(265)
|
||||
|
||||
--Set folder of airboss sound files within miz file.
|
||||
AirbossTarawa:SetSoundfilesFolder("Airboss Soundfiles/")
|
||||
|
||||
-- Remove landed AI planes from flight deck.
|
||||
AirbossTarawa:SetDespawnOnEngineShutdown()
|
||||
|
||||
-- Single carrier menu optimization.
|
||||
AirbossTarawa:SetMenuSingleCarrier()
|
||||
|
||||
-- Add Skipper menu to start recovery via F10 radio menu.
|
||||
AirbossTarawa:SetMenuRecovery(30, 20, true)
|
||||
|
||||
-- Start Airboss.
|
||||
AirbossTarawa:Start()
|
||||
|
||||
|
||||
--- Function called when a recovery starts.
|
||||
function AirbossTarawa:OnAfterRecoveryStart(From, Event, To, Case, Offset)
|
||||
-- Start helo.
|
||||
rescuehelo:Start()
|
||||
end
|
||||
|
||||
--- Function called when a recovery ends.
|
||||
function AirbossTarawa:OnAfterRecoveryStop(From,Event,To)
|
||||
-- Send helo RTB.
|
||||
rescuehelo:RTB()
|
||||
end
|
||||
|
||||
--- Function called when the rescue helo has returned to base.
|
||||
function rescuehelo:OnAfterReturned(From, Event, To, airbase)
|
||||
-- Stop helo.
|
||||
self:__Stop(3)
|
||||
end
|
||||
|
||||
--- Function called when a player gets graded by the LSO.
|
||||
function AirbossTarawa:OnAfterLSOGrade(From, Event, To, playerData, grade)
|
||||
local PlayerData=playerData --Ops.Airboss#AIRBOSS.PlayerData
|
||||
local Grade=grade --Ops.Airboss#AIRBOSS.LSOgrade
|
||||
|
||||
----------------------------------------
|
||||
--- Interface your Discord bot here! ---
|
||||
----------------------------------------
|
||||
|
||||
local score=tonumber(Grade.points)
|
||||
local name=tostring(PlayerData.name)
|
||||
|
||||
-- Report LSO grade to dcs.log file.
|
||||
env.info(self.lid..string.format("Player %s scored %.1f", name, score))
|
||||
end
|
||||
|
||||
|
||||
---------------------------
|
||||
--- Generate AI Traffic ---
|
||||
---------------------------
|
||||
|
||||
local AV8B1=SPAWN:New("Harrier Group 1"):InitModex(70)
|
||||
local AV8B2=SPAWN:New("Harrier Group 2"):InitModex(80)
|
||||
|
||||
-- Spawn always 9 min before the recovery window opens.
|
||||
local spawntimes={"9:06", "14:51", "20:51"}
|
||||
for _,spawntime in pairs(spawntimes) do
|
||||
local _time=UTILS.ClockToSeconds(spawntime)-timer.getAbsTime()
|
||||
if _time>0 then
|
||||
SCHEDULER:New(nil, AV8B1.Spawn, {AV8B1}, _time)
|
||||
SCHEDULER:New(nil, AV8B2.Spawn, {AV8B2}, _time)
|
||||
end
|
||||
end
|
||||
Binary file not shown.
@@ -0,0 +1,83 @@
|
||||
-------------------------
|
||||
-- AIRBOSS Test Script --
|
||||
-------------------------
|
||||
|
||||
-- Set mission menu.
|
||||
AIRBOSS.MenuF10Root=MENU_MISSION:New("Airboss").MenuPath
|
||||
|
||||
-- No MOOSE settings menu.
|
||||
_SETTINGS:SetPlayerMenuOff()
|
||||
|
||||
-- S-3B Recovery Tanker spawning in air.
|
||||
local tanker=RECOVERYTANKER:New("CVN-74", "- Texaco Tanker")
|
||||
tanker:SetTakeoffAir()
|
||||
tanker:SetRadio(256)
|
||||
tanker:SetModex(511)
|
||||
tanker:SetTACAN(1, "TKR")
|
||||
tanker:Start()
|
||||
|
||||
-- E-2D AWACS spawning in air
|
||||
local awacs=RECOVERYTANKER:New("CVN-74", "AWACS")
|
||||
awacs:SetAWACS()
|
||||
awacs:SetTakeoffAir()
|
||||
awacs:SetRadio(264)
|
||||
awacs:SetAltitude(20000)
|
||||
awacs:SetCallsign(CALLSIGN.AWACS.Overloard)
|
||||
awacs:SetRacetrackDistances(20, 8)
|
||||
awacs:SetModex(611)
|
||||
awacs:SetTACAN(2, "OLV")
|
||||
awacs:Start()
|
||||
|
||||
-- Rescue Helo spawned in air with home base USS Perry. Has to be a global object!
|
||||
rescuehelo=RESCUEHELO:New("CVN-74", "CV Helo")
|
||||
rescuehelo:SetHomeBase(AIRBASE:FindByName("CG-67"))
|
||||
rescuehelo:SetTakeoffAir()
|
||||
rescuehelo:SetModex(42)
|
||||
rescuehelo:Start()
|
||||
|
||||
-- Create AIRBOSS object.
|
||||
local AirbossStennis=AIRBOSS:New("CVN-74")
|
||||
|
||||
-- Add recovery windows:
|
||||
local window1=AirbossStennis:AddRecoveryWindow("18:30", "21:00", 1, nil, true, 20)
|
||||
|
||||
-- Radio freqs.
|
||||
AirbossStennis:SetMarshalRadio(305)
|
||||
AirbossStennis:SetLSORadio(265)
|
||||
|
||||
-- Radio relay units.
|
||||
AirbossStennis:SetRadioRelayLSO(rescuehelo:GetUnitName())
|
||||
AirbossStennis:SetRadioRelayMarshal(tanker:GetUnitName())
|
||||
|
||||
-- Set folder of airboss sound files within miz file.
|
||||
AirbossStennis:SetSoundfilesFolder("Airboss Soundfiles/")
|
||||
|
||||
-- Single carrier menu optimization.
|
||||
AirbossStennis:SetMenuSingleCarrier()
|
||||
|
||||
-- Enable skipper menu.
|
||||
AirbossStennis:SetMenuRecovery(15, 30, true)
|
||||
|
||||
-- AI groups explicitly excluded from handling by the Airboss
|
||||
AirbossStennis:SetHandleAIOFF()
|
||||
|
||||
-- Remove landed AI planes from flight deck.
|
||||
AirbossStennis:SetDespawnOnEngineShutdown()
|
||||
|
||||
-- Load all saved player grades from your "Saved Games\DCS" folder (if lfs was desanitized).
|
||||
AirbossStennis:Load()
|
||||
|
||||
-- Automatically save player results to your "Saved Games\DCS" folder each time a player get a final grade from the LSO.
|
||||
AirbossStennis:SetAutoSave()
|
||||
|
||||
-- Enable trap sheet.
|
||||
AirbossStennis:SetTrapSheet()
|
||||
|
||||
-- Set recovery tanker
|
||||
AirbossStennis:SetRecoveryTanker(tanker)
|
||||
|
||||
-- Set AWACS.
|
||||
AirbossStennis:SetAWACS(awacs)
|
||||
|
||||
-- Start airboss class.
|
||||
AirbossStennis:Start()
|
||||
@@ -0,0 +1,83 @@
|
||||
-------------------------
|
||||
-- AIRBOSS Test Script --
|
||||
-------------------------
|
||||
|
||||
-- Set mission menu.
|
||||
AIRBOSS.MenuF10Root=MENU_MISSION:New("Airboss").MenuPath
|
||||
|
||||
-- No MOOSE settings menu.
|
||||
_SETTINGS:SetPlayerMenuOff()
|
||||
|
||||
-- S-3B Recovery Tanker spawning in air.
|
||||
local tanker=RECOVERYTANKER:New("CVN-74", "- Texaco Tanker")
|
||||
tanker:SetTakeoffAir()
|
||||
tanker:SetRadio(256)
|
||||
tanker:SetModex(511)
|
||||
tanker:SetTACAN(1, "TKR")
|
||||
tanker:Start()
|
||||
|
||||
-- E-2D AWACS spawning in air
|
||||
local awacs=RECOVERYTANKER:New("CVN-74", "AWACS")
|
||||
awacs:SetAWACS()
|
||||
awacs:SetTakeoffAir()
|
||||
awacs:SetRadio(264)
|
||||
awacs:SetAltitude(20000)
|
||||
awacs:SetCallsign(CALLSIGN.AWACS.Overloard)
|
||||
awacs:SetRacetrackDistances(20, 8)
|
||||
awacs:SetModex(611)
|
||||
awacs:SetTACAN(2, "OLV")
|
||||
awacs:Start()
|
||||
|
||||
-- Rescue Helo spawned in air with home base USS Perry. Has to be a global object!
|
||||
rescuehelo=RESCUEHELO:New("CVN-74", "CV Helo")
|
||||
rescuehelo:SetHomeBase(AIRBASE:FindByName("CG-67"))
|
||||
rescuehelo:SetTakeoffAir()
|
||||
rescuehelo:SetModex(42)
|
||||
rescuehelo:Start()
|
||||
|
||||
-- Create AIRBOSS object.
|
||||
local AirbossStennis=AIRBOSS:New("CVN-74")
|
||||
|
||||
-- Add recovery windows:
|
||||
local window1=AirbossStennis:AddRecoveryWindow("18:30", "21:00", 1, nil, true, 20)
|
||||
|
||||
-- Radio freqs.
|
||||
AirbossStennis:SetMarshalRadio(305)
|
||||
AirbossStennis:SetLSORadio(265)
|
||||
|
||||
-- Radio relay units.
|
||||
AirbossStennis:SetRadioRelayLSO(rescuehelo:GetUnitName())
|
||||
AirbossStennis:SetRadioRelayMarshal(tanker:GetUnitName())
|
||||
|
||||
-- Set folder of airboss sound files within miz file.
|
||||
AirbossStennis:SetSoundfilesFolder("Airboss Soundfiles/")
|
||||
|
||||
-- Single carrier menu optimization.
|
||||
AirbossStennis:SetMenuSingleCarrier()
|
||||
|
||||
-- Enable skipper menu.
|
||||
AirbossStennis:SetMenuRecovery(15, 30, true)
|
||||
|
||||
-- AI groups explicitly excluded from handling by the Airboss
|
||||
AirbossStennis:SetHandleAIOFF()
|
||||
|
||||
-- Remove landed AI planes from flight deck.
|
||||
AirbossStennis:SetDespawnOnEngineShutdown()
|
||||
|
||||
-- Load all saved player grades from your "Saved Games\DCS" folder (if lfs was desanitized).
|
||||
AirbossStennis:Load()
|
||||
|
||||
-- Automatically save player results to your "Saved Games\DCS" folder each time a player get a final grade from the LSO.
|
||||
AirbossStennis:SetAutoSave()
|
||||
|
||||
-- Enable trap sheet.
|
||||
AirbossStennis:SetTrapSheet()
|
||||
|
||||
-- Set recovery tanker
|
||||
AirbossStennis:SetRecoveryTanker(tanker)
|
||||
|
||||
-- Set AWACS.
|
||||
AirbossStennis:SetAWACS(awacs)
|
||||
|
||||
-- Start airboss class.
|
||||
AirbossStennis:Start()
|
||||
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
---
|
||||
-- RECOVERYTANKER: Simple
|
||||
--
|
||||
-- Simple Recovery tanker script using default settings.
|
||||
--
|
||||
-- Tanker will be spawned on the USS Stennis and go on station overhead at angels 6 with 274 knots TAS (~250 KIAS).
|
||||
--
|
||||
-- Radio frequencies, callsign are taken from the settings of the late activated template group in the mission editor.
|
||||
---
|
||||
|
||||
-- S-3B at USS Stennis spawning on deck. First Parameter is the UNIT name of the Carrier, second the GROUP name of the tanker template.
|
||||
local tankerStennis=RECOVERYTANKER:New("USS Stennis", "Texaco Group")
|
||||
|
||||
-- Start recovery tanker.
|
||||
-- NOTE: If you spawn on deck, it seems prudent to delay the spawn a bit after the mission starts.
|
||||
tankerStennis:__Start(1)
|
||||
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
---
|
||||
-- RECOVERYTANKER: Custom
|
||||
--
|
||||
-- Simple Recovery tanker script using some customized settings.
|
||||
--
|
||||
-- Tanker will be spawned on the USS Stennis and go on station overhead at angels 6 with 274 knots TAS (~250 KIAS).
|
||||
--
|
||||
-- Radio frequencies, callsign are set below and overrule the settings of the late activated template group.
|
||||
---
|
||||
|
||||
-- S-3B at USS Stennis spawning on deck.
|
||||
local tankerStennis=RECOVERYTANKER:New("USS Stennis", "Texaco Group")
|
||||
|
||||
-- Custom settings for radio frequency, TACAN, callsign and modex.
|
||||
tankerStennis:SetRadio(261)
|
||||
tankerStennis:SetTACAN(37, "SHL")
|
||||
tankerStennis:SetCallsign(CALLSIGN.Tanker.Arco, 3)
|
||||
tankerStennis:SetModex(0) -- "Triple nuts"
|
||||
|
||||
-- Start recovery tanker.
|
||||
-- NOTE: If you spawn on deck, it seems prudent to delay the spawn a bit after the mission starts.
|
||||
tankerStennis:__Start(1)
|
||||
Binary file not shown.
Reference in New Issue
Block a user