Updated Moose.lua

This commit is contained in:
funkyfranky
2022-10-14 22:15:48 +00:00
parent be74d407dd
commit fedc630abc
16 changed files with 96 additions and 96 deletions
@@ -15,7 +15,7 @@
---- These are set in ME trigger ---- These are set in ME trigger
local hereSRSPath = mySRSPath or "C:\\Program Files\\DCS-SimpleRadio-Standalone" local hereSRSPath = mySRSPath or "C:\\Program Files\\DCS-SimpleRadio-Standalone"
local hereSRSPort = mySRSPort or 5002 local hereSRSPort = mySRSPort or 5002
local hereSRSGoogle = mySRSGKey --or "C:\\Program Files\\DCS-SimpleRadio-Standalone\\yourkey.json" local hereSRSGoogle = mySRSGKey or "C:\\Program Files\\DCS-SimpleRadio-Standalone\\yourkey.json"
--- SETTINGS --- SETTINGS
_SETTINGS:SetLocale("en") _SETTINGS:SetLocale("en")
Binary file not shown.
@@ -1,96 +1,96 @@
--- ---
-- CHIEF: A2A Intercept Response -- CHIEF: A2A Intercept Response
-- --
-- The blue chief controls one airwing located at Kutaisi. -- The blue chief controls one airwing located at Kutaisi.
-- --
-- The airwing has two squadrons -- The airwing has two squadrons
-- * F-16CMs for INTERCEPT missions -- * F-16CMs for INTERCEPT missions
-- * A-10C for BAI and CAS missions -- * A-10C for BAI and CAS missions
-- --
-- The airwing has a limited number of payloads for A2A and A2G missions. -- The airwing has a limited number of payloads for A2A and A2G missions.
-- --
-- Intel is provided from and AN/FPS 117 early warning radar and a Reaper drone. -- Intel is provided from and AN/FPS 117 early warning radar and a Reaper drone.
-- --
-- The strategy of the chief is DEFENSIVE, i.e. he will only engage detected enemies -- The strategy of the chief is DEFENSIVE, i.e. he will only engage detected enemies
-- that are within his own territory. -- that are within his own territory.
-- --
-- The Reaper will -- The Reaper will
--- ---
--- F-16 Fighter Squadron. --- F-16 Fighter Squadron.
local SquadFSQ13=SQUADRON:New("F-16CM Template", 5, "13th Fighter Squadron") --Ops.Squadron#SQUADRON local SquadFSQ13=SQUADRON:New("F-16CM Template", 5, "13th Fighter Squadron") --Ops.Squadron#SQUADRON
SquadFSQ13:SetGrouping(1) -- One aircraft per group. SquadFSQ13:SetGrouping(1) -- One aircraft per group.
SquadFSQ13:SetModex(130) -- Tail number of the sqaud start with 130, 131,... SquadFSQ13:SetModex(130) -- Tail number of the sqaud start with 130, 131,...
SquadFSQ13:AddMissionCapability({AUFTRAG.Type.INTERCEPT}, 90) -- Squad can do intercept missions. SquadFSQ13:AddMissionCapability({AUFTRAG.Type.INTERCEPT}, 90) -- Squad can do intercept missions.
SquadFSQ13:AddMissionCapability({AUFTRAG.Type.ALERT5}) -- Squad can be spawned at the airfield in uncontrolled state. SquadFSQ13:AddMissionCapability({AUFTRAG.Type.ALERT5}) -- Squad can be spawned at the airfield in uncontrolled state.
SquadFSQ13:SetMissionRange(200) -- Squad will be considered for targets within 200 NM of its airwing location. SquadFSQ13:SetMissionRange(200) -- Squad will be considered for targets within 200 NM of its airwing location.
--- A-10C Fighter Squadron. --- A-10C Fighter Squadron.
local SquadFSQ14=SQUADRON:New("A-10C Template", 5, "14th Fighter Squadron") --Ops.Squadron#SQUADRON local SquadFSQ14=SQUADRON:New("A-10C Template", 5, "14th Fighter Squadron") --Ops.Squadron#SQUADRON
SquadFSQ14:SetGrouping(1) -- One aircraft per group. SquadFSQ14:SetGrouping(1) -- One aircraft per group.
SquadFSQ14:SetModex(140) -- Tail number of the sqaud start with 140, 141,... SquadFSQ14:SetModex(140) -- Tail number of the sqaud start with 140, 141,...
SquadFSQ14:AddMissionCapability({AUFTRAG.Type.BAI, AUFTRAG.Type.CAS, AUFTRAG.Type.CASENHANCED}, 90) -- Squad can do BAI and CAS missions SquadFSQ14:AddMissionCapability({AUFTRAG.Type.BAI, AUFTRAG.Type.CAS, AUFTRAG.Type.CASENHANCED}, 90) -- Squad can do BAI and CAS missions
SquadFSQ14:AddMissionCapability({AUFTRAG.Type.ALERT5}) -- Squad can be spawned at the airfield in uncontrolled state. SquadFSQ14:AddMissionCapability({AUFTRAG.Type.ALERT5}) -- Squad can be spawned at the airfield in uncontrolled state.
SquadFSQ14:SetMissionRange(200) -- Squad will be considered for targets within 200 NM of its airwing location. SquadFSQ14:SetMissionRange(200) -- Squad will be considered for targets within 200 NM of its airwing location.
--- AIRWING Kutaisi --- AIRWING Kutaisi
local WingFW35=AIRWING:New("Warehouse Kutaisi", "35th Air Wing (Kutaisi)") --Ops.AirWing#AIRWING local WingFW35=AIRWING:New("Warehouse Kutaisi", "35th Air Wing (Kutaisi)") --Ops.AirWing#AIRWING
-- Add squadrons to airwing. -- Add squadrons to airwing.
WingFW35:AddSquadron(SquadFSQ13) WingFW35:AddSquadron(SquadFSQ13)
WingFW35:AddSquadron(SquadFSQ14) WingFW35:AddSquadron(SquadFSQ14)
-- Payload F-16CM for GCICAP, INTERCEPT and CAP missions. -- Payload F-16CM for GCICAP, INTERCEPT and CAP missions.
WingFW35:NewPayload("F-16CM Payload AIM-120C*4, AIM-9X*2, FUEL*2, ECM", 2, {AUFTRAG.Type.GCICAP, AUFTRAG.Type.INTERCEPT, AUFTRAG.Type.CAP}, 80) WingFW35:NewPayload("F-16CM Payload AIM-120C*4, AIM-9X*2, FUEL*2, ECM", 2, {AUFTRAG.Type.GCICAP, AUFTRAG.Type.INTERCEPT, AUFTRAG.Type.CAP}, 80)
-- Payload A-10C for BAI, CAS, CASENHANCED. -- Payload A-10C for BAI, CAS, CASENHANCED.
WingFW35:NewPayload("A-10C Payload AGM-65G,AGM-65K,GBU-10*2,AIM-9*2,TGP,ECM", 2, {AUFTRAG.Type.BAI, AUFTRAG.Type.CAS, AUFTRAG.Type.CASENHANCED}, 80) WingFW35:NewPayload("A-10C Payload AGM-65G,AGM-65K,GBU-10*2,AIM-9*2,TGP,ECM", 2, {AUFTRAG.Type.BAI, AUFTRAG.Type.CAS, AUFTRAG.Type.CASENHANCED}, 80)
--- ---
-- CHIEF OF STAFF -- CHIEF OF STAFF
--- ---
-- Zone defining the border of the blue territory. -- Zone defining the border of the blue territory.
local ZoneBlueBorder=ZONE:New("Blue Border"):DrawZone() local ZoneBlueBorder=ZONE:New("Blue Border"):DrawZone()
-- Blue agents. -- Blue agents.
local Agents=SET_GROUP:New():FilterPrefixes("US EWR"):FilterPrefixes("US Reaper"):FilterOnce() local Agents=SET_GROUP:New():FilterPrefixes("US EWR"):FilterPrefixes("US Reaper"):FilterOnce()
-- Define CHIEF. -- Define CHIEF.
local Chief=CHIEF:New(coalition.side.BLUE, Agents) local Chief=CHIEF:New(coalition.side.BLUE, Agents)
-- Add border zone. -- Add border zone.
Chief:AddBorderZone(ZoneBlueBorder) Chief:AddBorderZone(ZoneBlueBorder)
-- Enable tactical overview. -- Enable tactical overview.
Chief:SetTacticalOverviewOn() Chief:SetTacticalOverviewOn()
-- Add airwing(s) to the chief. -- Add airwing(s) to the chief.
Chief:AddAirwing(WingFW35) Chief:AddAirwing(WingFW35)
-- Set strategy to DEFENSIVE: Only targets within the border of the chief's territory are attacked. -- Set strategy to DEFENSIVE: Only targets within the border of the chief's territory are attacked.
Chief:SetStrategy(CHIEF.Strategy.DEFENSIVE) Chief:SetStrategy(CHIEF.Strategy.DEFENSIVE)
-- Start Chief after one second. -- Start Chief after one second.
Chief:__Start(1) Chief:__Start(1)
--- Function called each time Chief Agents detect a new contact. --- Function called each time Chief Agents detect a new contact.
function Chief:OnAfterNewContact(From, Event, To, Contact) function Chief:OnAfterNewContact(From, Event, To, Contact)
-- Gather info of contact. -- Gather info of contact.
local ContactName=Chief:GetContactName(Contact) local ContactName=Chief:GetContactName(Contact)
local ContactType=Chief:GetContactTypeName(Contact) local ContactType=Chief:GetContactTypeName(Contact)
local ContactThreat=Chief:GetContactThreatlevel(Contact) local ContactThreat=Chief:GetContactThreatlevel(Contact)
-- Text message. -- Text message.
local text=string.format("Detected NEW contact: Name=%s, Type=%s, Threat Level=%d", ContactName, ContactType, ContactThreat) local text=string.format("Detected NEW contact: Name=%s, Type=%s, Threat Level=%d", ContactName, ContactType, ContactThreat)
-- Show message in log file. -- Show message in log file.
env.info(text) env.info(text)
end end