mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2026-08-27 05:22:01 +00:00
Updated Moose.lua
This commit is contained in:
+52
@@ -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)..
|
||||
+83
@@ -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()
|
||||
Reference in New Issue
Block a user