Module Functional.Mantis
Functional - Modular, Automatic and Network capable Targeting and Interception System for Air Defenses.
Features:
- Moose derived Modular, Automatic and Network capable Targeting and Interception System.
- Controls a network of SAM sites. Uses detection to switch on the AA site closest to the enemy.
- Automatic mode (default since 0.8) can set-up your SAM site network automatically for you.
- Leverage evasiveness from SEAD, leverage attack range setting.
- Naval air defense: ships and Ops.NavyGroup#NAVYGROUP as managed shooters or radiating pickets, with sensor-gated missile defense.
Missions:
MANTIS - Modular, Automatic and Network capable Targeting and Interception System
Author : *applevangelist *
Global(s)
Global MANTIS |
The worst thing that can happen to a good cause is, not to be skillfully attacked, but to be ineptly defended. - Frédéric Bastiat Moose class for a more intelligent Air Defense System MANTIS
|
The worst thing that can happen to a good cause is, not to be skillfully attacked, but to be ineptly defended. - Frédéric Bastiat
Moose class for a more intelligent Air Defense System
MANTIS
- Moose derived Modular, Automatic and Network capable Targeting and Interception System.
- Controls a network of SAM sites. Uses detection to switch on the SAM site closest to the enemy.
- Automatic mode (default) will set-up your SAM site network automatically for you.
- Leverage evasiveness from SEAD, leverage attack range setting.
- Automatic setup of SHORAD based on groups of the class "short-range".
0. Base considerations and naming conventions
Before you start to set up your SAM sites in the mission editor, please think of naming conventions. This is especially critical to make eveything work as intended, also if you have both a blue and a red installation!
You need three non-overlapping "name spaces" for everything to work properly:
- SAM sites, e.g. each group name begins with "Red SAM"
- EWR network and AWACS, e.g. each group name begins with "Red EWR" and not e.g. "Red SAM EWR" (overlap with "Red SAM"), "Red EWR Awacs" will be found by "Red EWR"
- SHORAD, e.g. each group name begins with "Red SHORAD" and *not" e.g. just "SHORAD" because you might also have "Blue SHORAD"
- Point Defense, e.g. each group name begins with "Red AAA" and *not" e.g. just "AAA" because you might also have "Blue AAA"
It's important to get this right because of the nature of the filter-system in Core.Set#SET_GROUP. Filters are "greedy", that is they will match any string that contains the search string - hence we need to avoid that SAMs, EWR and SHORAD step on each other's toes.
Second, for auto-mode to work, the SAMs need the SAM Type Name in their group name, as MANTIS will determine their capabilities from this. This is case-sensitive, so "sa-11" is not equal to "SA-11" is not equal to "Sa-11"!
Known SAM types at the time of writing are:
Avenger
Chaparral
Hawk
Linebacker
NASAMS
Patriot
Rapier
Roland
IRIS-T SLM
Pantsir S1
TOR M2
C-RAM
Silkworm (though strictly speaking this is a surface to ship missile)
SA-2, SA-3, SA-5, SA-6, SA-7, SA-8, SA-9, SA-10, SA-11, SA-13, SA-15, SA-19, S-300VM, S-300V4, S-400 (SA-21)
From IDF mod: STUNNER IDFA, TAMIR IDFA (Note all caps!)
From HDS (see note on HDS below): SA-2, SA-3, SA-10B, SA-10C, SA-12, SA-17, SA-20A, SA-20B, SA-23, HQ-2, SAMP/T Block 1, SAMP/T Block 1INT, SAMP/T Block2
Other Mods: Nike
From USLANTCOM: HQ-11, Mistral Unimog No extra keyword is needed for these - they are matched by unit type name, so the group name does not have to carry a designation at all.
From SMA: RBS98M, RBS70, RBS90, RBS90M, RBS103A, RBS103B, RBS103AM, RBS103BM, Lvkv9040M NOTE If you are using the Swedish Military Assets (SMA), please note that the group name for RBS-SAM types also needs to contain the keyword "SMA"
From CH: 2S38, PantsirS1, PantsirS2, PGL-625, HQ-17A, M903PAC2, M903PAC3, TorM2, TorM2K, TorM2M, NASAMS3-AMRAAMER, NASAMS3-AIM9X2, C-RAM, PGZ-09, S350-9M100, S350-9M96D NOTE If you are using the Military Assets by Currenthill (CH), please note that the group name for CH-SAM types also needs to contain the keyword "CHM"
Following the example started above, an SA-6 site group name should start with "Red SAM SA-6" then, or a blue Patriot installation with e.g. "Blue SAM Patriot". NOTE If you are using the High-Digit-Sam Mod, please note that the group name for the following SAM types also needs to contain the keyword "HDS":
- SA-2 (with V759 missile, e.g. "Red SAM SA-2 HDS")
- SA-2 (with HQ-2 launcher, use HQ-2 in the group name, e.g. "Red SAM HQ-2" )
- SA-3 (with V601P missile, e.g. "Red SAM SA-3 HDS")
- SA-10B (overlap with other SA-10 types, e.g. "Red SAM SA-10B HDS" with 5P85CE launcher)
- SA-10C (overlap with other SA-10 types, e.g. "Red SAM SA-10C HDS" with 5P85SE launcher)
- SA-12 (e.g. "Red SAM SA-12 HDS")
- SA-23 (e.g. "Red SAM SA-23 HDS")
- SAMP/T (launcher dependent range, e.g. "Blue SAM SAMPT Block 1 HDS" for Block 1, "Blue SAM SAMPT Block 1INT HDS", "Blue SAM SAMPT Block 2 HDS")
The other HDS types work like the rest of the known SAM systems.
0.1 Set-up in the mission editor
Set up your SAM sites in the mission editor. Name the groups using a systematic approach like above.Can be e.g. AWACS or a combination of AWACS and Search Radars like e.g. EWR 1L13 etc. Search Radars usually have "SR" or "STR" in their names. Use the encyclopedia in the mission editor to inform yourself. Set up your SHORAD systems. They need to be close to (i.e. around) the SAM sites to be effective. Use *one unit * per group (multiple groups) for the SAM location. Else, evasive manoevers might club up all defenders in one place. Red SA-15 TOR systems offer a good missile defense.
[optional] Set up your HQ. Can be any group, e.g. a command vehicle.
1. Basic tactical considerations when setting up your SAM sites
1.1 Radar systems and AWACS
Typically, your setup should consist of EWR (early warning) radars to detect and track targets, accompanied by AWACS if your scenario forsees that. Ensure that your EWR radars have a good coverage of the area you want to track. Location is of highest importance here. Whilst AWACS in DCS has almost the "all seeing eye", EWR don't have that. Choose your location wisely, against a mountain backdrop or inside a valley even the best EWR system doesn't work well. Prefer higher-up locations with a good view; use F7 in-game to check where you actually placed your EWR and have a look around. Apart from the obvious choice, do also consider other radar units for this role, most have "SR" (search radar) or "STR" (search and track radar) in their names, use the encyclopedia to see what they actually do. HINT Set at least one EWR on invisible and immortal so MANTIS doesn't stop working.
1.2 SAM sites
Typically your SAM should cover all attack ranges. The closer the enemy gets, the more systems you will need to deploy to defend your location. Use a combination of long-range systems like the SA-5/10/11, midrange like SA-6 and short-range like SA-2 for defense (Patriot, Hawk, Gepard, Blindfire for the blue side). For close-up defense and defense against HARMs or low-flying aircraft, helicopters it is also advisable to deploy SA-15 TOR systems, Shilka, Strela and Tunguska units, as well as manpads (Think Gepard, Avenger, Chaparral, Linebacker, Roland systems for the blue side). If possible, overlap ranges for mutual coverage.
1.3 Typical problems
Often times, people complain because the detection cannot "see" oncoming targets and/or Mantis switches on too late. Three typial problems here are
- bad placement of radar units,
- overestimation how far units can "see" and
- not taking into account that a SAM site will take (e.g for a SA-6) 30-40 seconds between switching on, acquiring the target and firing.
An attacker doing 350knots will cover ca 180meters/second or thus more than 6km until the SA-6 fires. Use triggers zones and the ruler in the mission editor to understand distances and zones. Take into account that the ranges given by the circles in the mission editor are absolute maximum ranges; in-game this is rather 50-75% of that depending on the system. Fiddle with placement and options to see what works best for your scenario, and remember everything in here is in meters.
2. Start up your MANTIS with a basic setting
myredmantis = MANTIS:New("myredmantis","Red SAM","Red EWR",nil,"red",false)
myredmantis:Start()
Use
- MANTIS:SetEWRGrouping(radius) [classic mode]
- MANTIS:SetSAMRadius(radius) [classic mode]
- MANTIS:SetDetectInterval(interval) [classic & auto modes]
- MANTIS:SetAutoRelocate(hq, ewr) [classic & auto modes]
before starting #MANTIS to fine-tune your setup.
If you want to use a separate AWACS unit to support your EWR system, use e.g. the following setup:
mybluemantis = MANTIS:New("bluemantis","Blue SAM","Blue EWR",nil,"blue",false,"Blue Awacs")
mybluemantis:Start()
2.1 Auto mode features
2.1.1 You can add Accept-, Reject- and Conflict-Zones to your setup, e.g. to consider borders or de-militarized zones:
-- Parameters are tables of Core.Zone#ZONE objects!
-- This is effectively a 3-stage filter allowing for zone overlap. A coordinate is accepted first when
-- it is inside any AcceptZone. Then RejectZones are checked, which enforces both borders, but also overlaps of
-- Accept- and RejectZones. Last, if it is inside a conflict zone, it is accepted.
mybluemantis:AddZones(AcceptZones,RejectZones,ConflictZones)
2.1.2 Change the number of long-, mid- and short-range, point defense systems going live on a detected target:
-- parameters are numbers. Defaults are 1,2,2,6,6 respectively
mybluemantis:SetMaxActiveSAMs(Short,Mid,Long,Classic,Point)
2.1.3 SHORAD/Point defense will automatically be added from SAM sites of type "point" or if the range is less than 5km or if the type is AAA.
2.1.4 Advanced features
-- Option to set the scale of the activation range, i.e. don't activate at the fringes of max range, defaults below.
-- also see engagerange below.
self.radiusscale[MANTIS.SamType.LONG] = 1.1
self.radiusscale[MANTIS.SamType.MEDIUM] = 1.2
self.radiusscale[MANTIS.SamType.SHORT] = 1.3
self.radiusscale[MANTIS.SamType.POINT] = 1.4
2.1.5 Friendlies check in firing range
-- For some scenarios, like Cold War, it might be useful not to activate SAMs if friendly aircraft are around to avoid death by friendly fire.
mybluemantis.checkforfriendlies = true
2.1.6 Shoot & Scoot
-- Option to make the (driveable) SHORAD units drive around and shuffle positions
-- We use a SET_ZONE for that, number of zones to consider defaults to three, Random is true for random coordinates and Formation is e.g. "Vee".
mybluemantis:AddScootZones(ZoneSet, Number, Random, Formation)
3. Default settings [both modes unless stated otherwise]
By default, the following settings are active:
- SAM_Templates_Prefix = "Red SAM" - SAM site group names in the mission editor begin with "Red SAM"
- EWR_Templates_Prefix = "Red EWR" - EWR group names in the mission editor begin with "Red EWR" - can also be combined with an AWACS unit
- [classic mode] checkradius = 25000 (meters) - SAMs will engage enemy flights, if they are within a 25km around each SAM site -
MANTIS:SetSAMRadius(radius) - grouping = 5000 (meters) - Detection (EWR) will group enemy flights to areas of 5km for tracking -
MANTIS:SetEWRGrouping(radius) - detectinterval = 30 (seconds) - MANTIS will decide every 30 seconds which SAM to activate -
MANTIS:SetDetectInterval(interval) - engagerange = 95 (percent) - SAMs will only fire if flights are inside of a 95% radius of their max firerange -
MANTIS:SetSAMRange(range) - dynamic = false - Group filtering is set to once, i.e. newly added groups will not be part of the setup by default -
MANTIS:New(name,samprefix,ewrprefix,hq,coalition,dynamic) - autorelocate = false - HQ and (mobile) EWR system will not relocate in random intervals between 30mins and 1 hour -
MANTIS:SetAutoRelocate(hq, ewr) - debug = false - Debugging reports on screen are set to off -
MANTIS:Debug(onoff)
4. Advanced Mode
Advanced mode will decrease reactivity of MANTIS, if HQ and/or EWR network dies. Awacs is counted as one EWR unit. It will set SAMs to RED state if both are dead. Requires usage of an HQ object and the dynamic option.
E.g. mymantis:SetAdvancedMode( true, 90 )
Use this option if you want to make use of or allow advanced SEAD tactics.
5. Integrated SEAD
MANTIS is using Functional.Sead#SEAD internally to both detect and evade HARM attacks. No extra efforts needed to set this up! Once a HARM attack is detected, MANTIS (via SEAD) will shut down the radars of the attacked SAM site and take evasive action by moving the SAM vehicles around (if they are drivable, that is). There's a component of randomness in detection and evasion, which is based on the skill set of the SAM set (the higher the skill, the more likely). When a missile is fired from far away, the SAM will stay active for a period of time to stay defensive, before it takes evasive actions.
You can link into the SEAD driven events of MANTIS like so:
function mymantis:OnAfterSeadSuppressionPlanned(From, Event, To, Group, Name, SuppressionStartTime, SuppressionEndTime)
-- your code here - SAM site shutdown and evasion planned, but not yet executed
-- Time entries relate to timer.getTime() - see https://wiki.hoggitworld.com/view/DCS_func_getTime
end
function mymantis:OnAfterSeadSuppressionStart(From, Event, To, Group, Name)
-- your code here - SAM site is emissions off and possibly moving
end
function mymantis:OnAfterSeadSuppressionEnd(From, Event, To, Group, Name)
-- your code here - SAM site is back online
end
6. Naval air defense (ships and NAVYGROUP)
Ships can be MANTIS shooters (SAM role) or always-radiating pickets (EWR role). Ship groups whose names match the SAM/EWR prefixes are picked up automatically; an Ops.NavyGroup#NAVYGROUP of any name is added explicitly:
local cvn = NAVYGROUP:New("CVN Group")
mymantis:AddNavyGroup(cvn, "SAM") -- managed shooter (or: cvn:SetMANTIS(mymantis, "SAM"))
mymantis:AddNavyGroup(pickets, "EWR") -- radiating picket, a sensor for the fleet
Call AddNavyGroup after the NAVYGROUP is alive (late-activated groups: after activation). "BOTH" is deprecated and treated as SAM - a managed ship is dark while GREEN and cannot double as a sensor; use a separate EWR-role group.
6.1 How ships are switched
Every hull matching MANTIS.SamDataNaval is its own SAM entry (per-unit, see MANTIS.SetNavalPerUnit), but DCS only
honors the alarm state per GROUP, so a ship group goes RED when any of its managed units wants to be active and GREEN
otherwise. Ships always use the alarm state, also with UseEmOnOff. A ship group is RED when:
- a detected aircraft is inside one of its units' engagement envelopes,
- an enemy surface combatant closes within range - MANTIS.SetNavalSurfaceWakeup,
- an inbound enemy missile threatens it - MANTIS.SetNavalMissileDefense (6.3),
- it is hit or loses a unit,
- it is held: own missile in flight, or the minimum RED dwell after the last trigger - MANTIS.SetNavalRedHold (6.4),
- it is outside EWR coverage and searches autonomously - MANTIS.SetNavalAutonomy,
- its NAVYGROUP is executing EngageTarget, or MANTIS is in advanced state 2.
Jamming overrides all of these and holds the ship GREEN. Ships are not SEAD-evasive by default (MANTIS.SetNavalSEAD).
6.2 NAVYGROUP: what MANTIS takes over
Once added, MANTIS owns the NAVYGROUP's alarm state, emissions and ROE. It switches them through the NAVYGROUP (SwitchAlarmstate, SwitchEmission, SwitchROE), so respawns, mission end and the EngageTarget restore come back to MANTIS's values.
- AUFTRAG options
optionAlarm/optionEmissionare overridden at the next MANTIS check (detection cycle, or within ~1 s while missiles are tracked). A RED ship always radiates. - ROE: NAVYGROUP defaults to Return Fire, which would leave a RED ship radiating but not shooting. MANTIS makes Open Fire
the NAVYGROUP's default ROE and re-asserts it while RED. An explicit Weapon Hold is never overridden. Change or
disable with MANTIS.SetNavalROE. For ships only OpenFire, ReturnFire and WeaponHold are valid -
ENUMS.ROE.WeaponFreeis an air-only value. Open Fire also lets ships with anti-ship missiles engage enemy ships they detect. - During EngageTarget MANTIS holds the ship RED.
- Groups that fall out of the SAM/EWR sets (e.g. respawn with
dynamic=true) are re-attached automatically. - MANTIS registers its own handler for
EVENTS.Shot. Do not callmymantis:HandleEvent(EVENTS.Shot, ...)in your mission - it would replace MANTIS's handler. Use a separate object for your own shot handling.
6.3 Missile defense
Aircraft-based wake-up only fires when the launcher is inside a ship's envelope, so a stand-off missile would arrive at a dark ship. MANTIS therefore tracks enemy missiles from launch and wakes the ships they threaten by time to impact:
mymantis:SetNavalMissileDefense(true, 60, 60) -- on, wake 60 s before impact, hold 60 s after the last alert
- Missiles with target data wake the targeted ship plus every managed ship whose envelope covers it (escorts).
- Missiles without target data wake each managed ship they fly at (within ~25 degrees).
- Ignored: friendly missiles, missiles aimed at aircraft or other non-ship targets, anti-radiation missiles, bombs, rockets and torpedoes.
DCS detection reports units, not weapons, so the launch event is the only source of a missile track. By default MANTIS only acts on it once a plausible sensor could hold the missile (SENSOR mode, MANTIS.SetNavalMissileSensorMode):
- the threatened ship itself, out to its radar horizon against the missile's altitude (4/3 earth; 25 m antenna vs. a 10 m sea-skimmer is about 34 km), or
- an unmanaged emitter - land EWR, AWACS, EWR-role ship - within its range (
acceptrangefor surface sensors,awacsrangefor airborne ones), radar horizon and terrain line of sight. A network track is shared with every ship.
Fast sea-skimmers with no picket or AWACS nearby will therefore arrive with little warning - deploy pickets. CUED mode skips the sensor check and wakes purely on time to impact:
mymantis:SetNavalMissileSensorMode("CUED")
mymantis:SetNavalMissileSensorMode("SENSOR", 30, 20) -- ship antenna 30 m, land EWR antenna 20 m above ground
6.4 When ships go back GREEN
A ship goes GREEN at the first detection cycle in which no trigger from 6.1 holds it. After the last real trigger (contact
in range, surface contact, hit) it stays RED for at least NavalRedHold seconds (default 60). A ship that fired a missile
stays RED while the missile flies and NavalRedHold seconds after, so semi-active and command-guided shots keep guidance.
Note that with INTEL/DLINK detection an air contact counts for DLinkCacheTime (default 120 s) after it was last seen.
mymantis:SetNavalRedHold(90) -- 0 disables the dwell and the own-shot hold
6.5 Naval defaults
- NavalPerUnit = true - MANTIS.SetNavalPerUnit
- NavalAutonomy = true, 150 km coverage radius - MANTIS.SetNavalAutonomy
- NavalSurfaceWakeup = true, radius = each ship's envelope - MANTIS.SetNavalSurfaceWakeup
- SEADNaval = false - MANTIS.SetNavalSEAD
- NavalMissileDefense = true, lead 60 s, hold 60 s - MANTIS.SetNavalMissileDefense
- NavalMissileMode = "SENSOR", ship antenna 25 m, land EWR antenna 15 m - MANTIS.SetNavalMissileSensorMode
- NavalRedHold = 60 s - MANTIS.SetNavalRedHold
- NavalROE = ENUMS.ROE.OpenFire (NAVYGROUP only) - MANTIS.SetNavalROE
- NavalMissileStep = 1 s missile tracking interval (read at Start)
Type(s)
| Fields and Methods inherited from MANTIS | Description |
|---|---|
|
The #DETECTION_AREAS object for AWACS |
|
|
Add a single accept zone to MANTIS. |
|
|
Add a single conflict zone to MANTIS. |
|
|
Function to add one corridor zone. |
|
|
Add client jammer aircraft support. |
|
|
Add AI jammer aircraft. |
|
|
Add a NAVYGROUP to this MANTIS as SAM shooter and/or EWR picket. |
|
|
Add a single reject zone to MANTIS. |
|
|
Add a SET_ZONE of zones for Shoot&Scoot - SHORAD units will move around |
|
|
Function to link up #MANTIS with a #SHORAD installation |
|
|
Function to set accept and reject zones. |
|
|
The EWR #SET_GROUP used for advanced mode |
|
|
Seconds after which cached contacts in DLink will decay. |
|
|
Function to set switch-on/off the debug state |
|
|
Set if we can also detect units accousticly. |
|
|
We can hear these categories. |
|
|
We can hear in this range. |
|
|
The #DETECTION_AREAS object for EWR |
|
|
The EWR #SET_GROUP |
|
|
Prefix to build the #SET_GROUP for EWR group |
|
|
Table of Core.Zone#ZONE Zones Consider SAM groups in this zone(s) only for this MANTIS instance, must be handed as #table of Zone objects. |
|
|
Get number of active jammer aircraft. |
|
|
Function to get the HQ object for further use |
|
|
Get table of currently jammed SAM group names. |
|
|
The #GROUP object of the HQ |
|
|
The ME name of the HQ object |
|
|
Print a debug report of the jammer system to dcs.log and screen. |
|
|
Test the SAM resolver against a hypothetical group name. |
|
MANTIS:New(name, samprefix, ewrprefix, hq, Coalition, dynamic, awacs, EmOnOff, Padding, Zones) |
Function to instantiate a new object of class MANTIS |
MANTIS:OnAfterAdvStateChange(From, Event, To, Oldstate, Newstate, Interval) |
On After "AdvStateChange" event. |
|
On After "GreenState" event. |
|
|
On After "RedState" event. |
|
|
On After "Relocating" event. |
|
MANTIS:OnAfterSeadSuppressionEnd(From, Event, To, Group, Name) |
On After "SAMUnitLoast" event. |
|
On After "SeadSuppressionPlanned" event. |
|
MANTIS:OnAfterSeadSuppressionStart(From, Event, To, Group, Name, Attacker) |
On After "SeadSuppressionStart" event. |
MANTIS:OnAfterShoradActivated(From, Event, To, Name, Radius, Ontime) |
On After "ShoradActivated" event. |
|
Function to unlink #MANTIS from a #SHORAD installation |
|
|
The SAM #SET_GROUP |
|
|
Table of SAM sites |
|
|
Prefix to build the #SET_GROUP for SAM sites |
|
|
[Internal] Check if a system can and should defend for HARMs itself |
|
|
Switch off accoustic detection. |
|
MANTIS:SetAccousticDetectionOn(Radius, UnitCategories, PlayersOnly, PlayerSnapshotProvider) |
Set to accept accoustic detection. |
|
Function to set Advanded Mode |
|
|
Function to set autorelocation for HQ and EWR objects. |
|
|
Function to set separate AWACS detection instance |
|
|
Function to set AWACS detection range. |
|
|
Function to set the HQ object for further use |
|
|
Function to set corridor zone floor and ceiling in FEET. |
|
|
Function to set corridor zone floor and ceiling in METERS. |
|
|
Function to set corridor zones. |
|
|
Function to set how long INTEL DLINK remembers contacts. |
|
|
Function to set the detection interval |
|
|
Function to set the grouping radius of the detection in meters |
|
|
Function to set the detection radius of the EWR in meters. |
|
|
Manually activate/deactivate a jammer aircraft (AI scripted control). |
|
|
Manually set a jammer aircraft loadout (AI scripted control). |
|
|
Function to set number of SAMs going active on a valid, detected thread |
|
|
Configure naval AUTONOMY outside EWR coverage. |
|
MANTIS:SetNavalMissileDefense(onoff, leadseconds, holdseconds) |
Configure naval MISSILE defense. |
MANTIS:SetNavalMissileSensorMode(mode, shipantenna, ewrantenna) |
Choose how much the naval missile defense may "know". |
|
Enable/disable PER-UNIT classification and switching for naval groups. |
|
|
Set the ROE MANTIS gives managed NAVYGROUPs. |
|
|
Set the minimum time a ship stays active after its last trigger. |
|
|
Include or exclude naval SAMs from SEAD emission-shutdown evasion. |
|
|
Enable/disable the naval surface wake-up and optionally set a fixed trigger radius. |
|
|
Function to set a new SAM firing engage range, use this method to adjust range while running MANTIS, e.g. |
|
|
Function to set switch-on/off zone for the SAM sites in meters. |
|
|
Function to set SAM firing engage range, 0-100 percent, e.g. |
|
|
[Internal] Function to set the SAM start state |
|
|
Function to set Short Range SAMs to spit out smoke as decoy, if an enemy plane is in range. |
|
|
Set using your own #INTEL_DLINK object instead of #DETECTION |
|
|
Set using Emissions on/off instead of changing alarm state |
|
|
SHORAD Object, if available |
|
|
Distance of an attacker in meters from a Mantis SAM site, on which Shorad will be switched on. Useful to not give away Shorad sites too early. Default 15km. Should be smaller than checkradius. |
|
|
If true, #MANTIS has #SHORAD enabled |
|
|
Timer in seconds, how long #SHORAD will be active after a detection inside of the defense range |
|
|
If true, smoke short range SAM units as decoy if a plane is in firing range. |
|
|
Color to use, defaults to SMOKECOLOR.White. |
|
|
Triggers the FSM event "Start". |
|
|
[Internal] Function to start the detection via AWACS if defined as separate (classic) |
|
|
[Internal] Function to start the detection via EWR groups - if INTEL isn't available |
|
|
[Internal] Function to start the detection with INTEL via EWR groups |
|
|
Triggers the FSM event "Status". |
|
|
Decide if we are using Emissions on/off (true) or AlarmState red/green (default) |
|
|
[Internal] Group ALARM-STATE arbiter for per-unit naval control. |
|
|
[Internal] Build cached sorted key lists for the resolver. |
|
|
[Internal] Classify a naval group PER UNIT. |
|
|
[Internal] Function to determine state of the advanced mode |
|
|
[Internal] Check detection function |
|
|
[Internal] Check advanced state |
|
|
[Internal] Check if any EWR or AWACS is still alive |
|
|
[Internal] Function to check accept and reject zones |
|
|
[Internal] Check DLink state |
|
|
[Internal] Function to check if EWR is (at least partially) alive |
|
|
[Internal] Function to check if HQ is alive |
|
MANTIS:_CheckLoop(samset, detset, dlink, limit, contactSnapshot, zoneResults) |
[Internal] Check detection function |
|
[Internal] Function to check if any object is in the given SAM zone |
|
|
[Internal] Compute which SAMs are jammed this cycle. |
|
|
[Internal] Count table entries |
|
|
[Internal] Check if any enemy surface combatant is within radius of a coordinate. |
|
|
[Internal] Function to manage hits on SAM units |
|
|
[Internal] Function to get SAM firing data for naval (ship) groups. |
|
MANTIS:_GetSAMDataFromUnits(grpname, mod, sma, chm, group, DCSGroup, Units) |
[Internal] Function to get SAM firing data from units types. |
MANTIS:_GetSAMRange(grpname, group, isship, DCSGroup, Units) |
[Internal] Function to get SAM firing data |
|
[Internal] Function to get the self.SAM_Table |
|
|
[Internal, static] Inject NAVYGROUP:SetMANTIS. |
|
|
[Internal] Iterate any supported SET type, calling fn(unit, group) for each alive unit. |
|
|
[Internal] Core jamming probability curve (v9 / v8.1 engine). |
|
MANTIS:_JammerMenuSetLoadout(unitName, loadoutKey, group, rootMenu) |
[Internal] F10 callback: Set loadout and show Music toggle |
|
[Internal] Hold a naval entry active because of an inbound missile, and switch it RED right now (do not wait for the next detection cycle, the missile may arrive before it). |
|
|
[Internal] Is a missile alert currently holding this entry active? |
|
|
[Internal, static] Approach geometry of a missile relative to a point. |
|
|
[Internal] Live list of managed naval SAM entries with CURRENT positions (SAM_Table coordinates are only refreshed every third detection cycle). |
|
|
[Internal] Extend a naval hold: keep this entry active until at least now + seconds. |
|
|
[Internal] DCS shot event: pick out enemy missiles that can threaten managed ships. |
|
|
[Internal] Track inbound missiles; wake the ships they threaten when time-to-impact is short. |
|
|
[Internal] Unmanaged emitters that can share a missile track: EWR set members that are not managed naval SAMs (land EWR, EWR-role ships, AWACS in the set) plus the separate AWACS. |
|
MANTIS:_PreFilterHeight(height, SamCoordinate, contactSnapshot) |
[Internal] Function to prefilter height based and check for Helo activity. |
|
[Internal, static] Radar horizon (4/3 earth) between two heights above sea level. |
|
|
[Internal] Re-add registered NAVYGROUPs that dropped out of the SAM/EWR sets. |
|
MANTIS:_RefreshSAMAmmo(group, grpname, reset, samType, DCSGroup, Units) |
[Internal] Refresh the ground group's ammunition and tracking state in MANTIS_AMMO. |
|
[Internal] Function to update SAM table and SEAD state |
|
MANTIS:_RefreshSAMTracking(group, grpname, ammo, lostUnitName, Units) |
[Internal] Check tracking radar availability and switch off sites without a working TR. |
|
[Internal] Relocation relay function |
|
|
[Internal] Function to execute the relocation |
|
|
[Internal] Resolve a SAM group name to its jammer parameters. |
|
|
[Internal, static] Could a sensor plausibly hold a missile? |
|
|
[Internal] Function to set the self.SAM_Table |
|
|
[Internal] Set up tiered F10 jammer menu for a player unit. |
|
|
[Internal] Show "Music Off" menu entry (jammer is ON, click to turn OFF) |
|
|
[Internal] Show "Music On" menu entry (jammer is OFF, click to turn ON) |
|
|
[Internal] Function to smoke a group in decoy. |
|
|
[Internal] Switch a SAM group on or off. |
|
|
[Internal] Update jammer aircraft states and build snapshot. |
|
|
Triggers the FSM event "Start" after a delay. |
|
|
Triggers the FSM event "Status" after a delay. |
|
|
Triggers the FSM event "Stop" after a delay. |
|
|
Radius of the EWR detection |
|
|
Boolean switch to use Awacs as a separate detection stream |
|
|
Percentage to use for advanced mode, defaults to 100% |
|
|
Advanced mode state tracker |
|
|
Use advanced mode, will decrease reactivity of MANTIS, if HQ and/or EWR network dies. Set SAMs to RED state if both are dead. Requires usage of an HQ object |
|
|
Relocate HQ and EWR groups in random intervals. Note: You need to select units for this which are actually mobile |
|
|
Detection range of an optional Awacs unit |
|
|
Counter for SAM Table refreshes. |
|
|
If true, do not activate a SAM installation if a friendly aircraft is in firing range. |
|
|
Radius of the SAM sites |
|
|
Switch on extra messages |
|
|
Interval in seconds for the target detection |
|
|
Firing engage range of the SAMs, see [https://wiki.hoggitworld.com/view/DCS_option_engagementRange] |
|
|
Radius to group detected objects |
|
|
Prefix for logging |
|
|
Log SAM status in dcs.log every cycle if true. |
|
|
Name of this Mantis |
|
MANTIS:onafterAdvStateChange(From, Event, To, Oldstate, Newstate, Interval) |
[Internal] Function triggered by Event AdvStateChange |
|
[Internal] Function triggered by Event GreenState |
|
MANTIS:onafterJammerActivated(From, Event, To, UnitName, Loadout) |
On After "JammerActivated" event |
|
On After "JammerDeactivated" event |
|
MANTIS:onafterJammerSuppression(From, Event, To, Group, Name, Probability) |
On After "JammerSuppression" event |
|
[Internal] Function triggered by Event RedState |
|
|
[Internal] Function triggered by Event Relocating |
|
MANTIS:onafterSeadSuppressionEnd(From, Event, To, Group, Name) |
[Internal] Function triggered by Event SeadSuppressionEnd |
|
[Internal] Function triggered by Event SeadSuppressionPlanned |
|
MANTIS:onafterSeadSuppressionStart(From, Event, To, Group, Name, Attacker) |
[Internal] Function triggered by Event SeadSuppressionStart |
MANTIS:onafterShoradActivated(From, Event, To, Name, Radius, Ontime) |
[Internal] Function triggered by Event ShoradActivated |
|
[Internal] Function to set start state |
|
|
[Internal] Status function for MANTIS |
|
|
[Internal] Function to stop MANTIS and its INTEL detectors. |
|
|
[Internal] Before status function for MANTIS |
|
|
Switch on extra logging |
| Fields and Methods inherited from BASE | Description |
|---|---|
|
The ID number of the object. Each object created with BASE.New() gets the next number. |
|
|
The name of the class. |
|
|
Clear a state value that was set for an object. |
|
MANTIS:CreateEventBirth(EventTime, Initiator, IniUnitName, place, subplace) |
Creation of a Birth Event. |
MANTIS:CreateEventCrash(EventTime, Initiator, IniObjectCategory) |
Creation of a Crash Event. |
MANTIS:CreateEventDead(EventTime, Initiator, IniObjectCategory) |
Creation of a Dead Event. |
|
Creation of a S_EVENT_DYNAMIC_CARGO_LOADED event. |
|
|
Creation of a S_EVENT_DYNAMIC_CARGO_REMOVED event. |
|
|
Creation of a S_EVENT_DYNAMIC_CARGO_UNLOADED event. |
|
|
Creation of a |
|
|
Creation of a S_EVENT_NEW_DYNAMIC_CARGO event. |
|
|
Creation of a |
|
|
Creation of a Remove Unit Event. |
|
|
Creation of a Takeoff Event. |
|
|
Creation of a Unit Lost Event. |
|
|
Log an exception which will be traced always. |
|
|
Returns the event dispatcher |
|
|
Remove all subscribed events |
|
|
Trace a function call. |
|
|
Trace a function call level 2. |
|
|
Trace a function call level 3. |
|
|
Get the ClassID of the class instance. |
|
|
Get the ClassName of the class instance. |
|
|
Get the ClassName + ClassID of the class instance. |
|
|
Get the object's configured event priority. |
|
|
Get the parent object from the inheritance chain. |
|
|
Get all of the properties of an object in a table. |
|
|
Get one property of an object by the key. |
|
|
Get a Value given a Key from the Object. |
|
|
Subscribe to a DCS Event. |
|
|
Log an information which will be traced always. |
|
|
This is the worker method to inherit from a parent class. |
|
|
This is the worker method to check if an object is an (sub)instance of a class. |
|
|
Check whether tracing is enabled for the object. |
|
|
BASE constructor. |
|
|
Occurs when an Event for an object is triggered. |
|
|
BDA. |
|
|
Occurs when a ground unit captures either an airbase or a farp. |
|
|
Occurs when any object is spawned into the mission. |
|
|
Occurs when any aircraft crashes into the ground and is completely destroyed. |
|
|
Occurs when an object is dead. |
|
|
Unknown precisely what creates this event, likely tied into newer damage model. |
|
|
Discard chair after ejection. |
|
|
Occurs when a player loads a dynamic cargo object with the F8 ground crew menu into a helo. |
|
|
Occurs when a dynamic cargo crate is removed. |
|
|
Occurs when a player unloads a dynamic cargo object with the F8 ground crew menu from a helo. |
|
|
Occurs when a pilot ejects from an aircraft Have a look at the class Core.Event#EVENT as these are just the prototypes. |
|
|
Occurs when any aircraft shuts down its engines. |
|
|
Occurs when any aircraft starts its engines. |
|
|
Occurs when an option is changed for an AI group. |
|
|
Occurs whenever an object is hit by a weapon. |
|
|
Occurs when any system fails on a human controlled aircraft. |
|
|
Occurs on the death of a unit. |
|
|
Occurs when an aircraft lands at an airbase, farp or ship Have a look at the class Core.Event#EVENT as these are just the prototypes. |
|
|
Occurs shortly after the landing animation of an ejected pilot touching the ground and standing up. |
|
|
Landing quality mark. |
|
|
Occurs when a new mark was added. |
|
|
Occurs when a mark text was changed. |
|
|
Occurs when a mark was removed. |
|
|
Occurs when a mission ends Have a look at the class Core.Event#EVENT as these are just the prototypes. |
|
|
Occurs when a mission starts Have a look at the class Core.Event#EVENT as these are just the prototypes. |
|
|
Occurs when a player creates a dynamic cargo object from the F8 ground crew menu. |
|
|
Paratrooper landing. |
|
|
Occurs when the pilot of an aircraft is killed. |
|
|
Occurs when a player enters a slot and takes control of an aircraft. |
|
|
Occurs when any player assumes direct control of a unit. |
|
|
Occurs when any player relieves control of a unit to the AI. |
|
|
Occurs when an aircraft connects with a tanker and begins taking on fuel. |
|
|
Occurs when an aircraft is finished taking fuel. |
|
|
Occurs when any modification to the "Score" as seen on the debrief menu would occur. |
|
|
Occurs when any unit stops firing its weapon. |
|
|
Occurs when any unit begins firing a weapon that has a high rate of fire. |
|
|
Occurs whenever any unit in a mission fires a weapon. |
|
|
Occurs when an aircraft takes off from an airbase, farp, or ship. |
|
|
Trigger zone. |
|
|
Occurs when the game thinks an object is destroyed. |
|
|
Weapon add. |
|
|
Properties stored with BASE.SetProperty(). |
|
|
Schedule a function call once after a delay. |
|
MANTIS:ScheduleRepeat(Start, Repeat, RandomizeFactor, Stop, SchedulerFunction, ...) |
Schedule a repeated function call. |
|
Stops the Schedule. |
|
|
The scheduler object used by BASE.ScheduleOnce() and BASE.ScheduleRepeat(). Created on first use. |
|
|
Set the object's event priority for subsequent subscriptions. |
|
|
Set one property of an object. |
|
|
Set a state or property of the Object given a Key and a Value. |
|
|
States stored with BASE.SetState(), indexed by the class name and ID of the given object. |
|
|
Trace a function logic level 1. |
|
|
Trace a function logic level 2. |
|
|
Trace a function logic level 3. |
|
|
Trace all methods in MOOSE |
|
|
Set tracing for all methods of a class. |
|
|
Set tracing for a specific method of a class. |
|
|
Set the highest trace level. |
|
|
Set trace off. |
|
|
Set trace on. |
|
|
Switch F and T tracing on or off. |
|
|
UnSubscribe to a DCS event. |
|
MANTIS:_F(Arguments, DebugInfoCurrentParam, DebugInfoFromParam) |
Trace a function call. |
|
(Internal) Serialize arguments |
|
MANTIS:_T(Arguments, DebugInfoCurrentParam, DebugInfoFromParam) |
Trace a function logic. |
|
The main event handling function... |
| Fields and Methods inherited from MANTIS.AdvancedState | Description |
|---|---|
| Fields and Methods inherited from MANTIS.JammerLoadoutTiers | Description |
|---|---|
| Fields and Methods inherited from MANTIS.JammerLoadouts | Description |
|---|---|
| Fields and Methods inherited from MANTIS.JammerSAMParams | Description |
|---|---|
| Fields and Methods inherited from MANTIS.JammerSAMParamsNaval | Description |
|---|---|
MANTIS.JammerSAMParamsNaval.Udaloy II DDG Admiral Chabanenko |
|
| Fields and Methods inherited from MANTIS.SamData | Description |
|---|---|
|
ARMCapacity ie how many (H)ARMs the system can defend at the same time |
|
|
no-firing range (green circle) |
|
|
Max firing height in km |
|
|
Point defense capable |
|
|
Radar typename on unit level (used as key) |
|
|
Max firing range in km |
|
MANTIS.SamType of SAM, i.e. SHORT, MEDIUM or LONG (range) |
| Fields and Methods inherited from MANTIS.SamDataCH | Description |
|---|---|
|
no-firing range (green circle) |
|
|
Max firing height in km |
|
|
Point defense capable |
|
|
Radar typename on unit level (used as key) |
|
|
Max firing range in km |
|
MANTIS.SamType of SAM, i.e. SHORT, MEDIUM or LONG (range) |
|
| Fields and Methods inherited from MANTIS.SamDataHDS | Description |
|---|---|
|
no-firing range (green circle) |
|
|
Max firing height in km |
|
|
Point defense capable |
|
|
Radar typename on unit level (used as key) |
|
|
Max firing range in km |
|
MANTIS.SamType of SAM, i.e. SHORT, MEDIUM or LONG (range) |
| Fields and Methods inherited from MANTIS.SamDataNaval | Description |
|---|---|
| Fields and Methods inherited from MANTIS.SamDataSMA | Description |
|---|---|
|
no-firing range (green circle) |
|
|
Max firing height in km |
|
|
Point defense capable |
|
|
Radar typename on unit level (used as key) |
|
|
Max firing range in km |
|
MANTIS.SamType of SAM, i.e. SHORT, MEDIUM or LONG (range) |
| Fields and Methods inherited from MANTIS.SamType | Description |
|---|---|
- MANTIS class, extends Core.Base#BASE
Field(s)
Seconds after which cached contacts in DLink will decay.
Set if we can also detect units accousticly.
We can hear these categories.
We can hear in this range.
meters above ground; land EWR antenna height used for the radar-horizon calculation
Prefix to build the #SET_GROUP for EWR group
Table of Core.Zone#ZONE Zones Consider SAM groups in this zone(s) only for this MANTIS instance, must be handed as #table of Zone objects.
The ME name of the HQ object
meters; ship search-radar height used for the radar-horizon calculation
ship groups outside EWR radar coverage go alarm RED and search autonomously (see SetNavalAutonomy)
meters; a ship group within this distance of an alive EWR group counts as covered
ships wake up for inbound enemy missiles even if the launcher was never inside their radius (see SetNavalMissileDefense)
seconds; a ship stays active this long after the last missile alert
seconds; wake a ship when a tracked missile is predicted to reach it within this time
"SENSOR" = wake only once a plausible sensor could see the missile; "CUED" = launch cueing, no sensor check (see SetNavalMissileSensorMode)
seconds; missile tracking interval
classify & switch every ship unit individually (see SetNavalPerUnit)
ENUMS.ROE.OpenFire; ROE MANTIS gives managed NAVYGROUPs (false = do not touch ROE) -- see SetNavalROE
seconds; minimum time a ship stays active after its last trigger (contact, surface, hit, own missile) -- see SetNavalRedHold
quiet ships go active when enemy surface combatants close (see SetNavalSurfaceWakeup)
Table of SAM sites
Prefix to build the #SET_GROUP for SAM sites
ships hard-kill inbound missiles; they do not go EMCON under SEAD (see SetNavalSEAD)
table to hold alert states, so we don't trigger state changes twice in adv mode
Distance of an attacker in meters from a Mantis SAM site, on which Shorad will be switched on. Useful to not give away Shorad sites too early. Default 15km. Should be smaller than checkradius.
If true, #MANTIS has #SHORAD enabled
Timer in seconds, how long #SHORAD will be active after a detection inside of the defense range
If true, smoke short range SAM units as decoy if a plane is in firing range.
Color to use, defaults to SMOKECOLOR.White.
Decide if we are using Emissions on/off (true) or AlarmState red/green (default)
start in 2s, repeat every 5s
[unit or group name] = mission time until which a hold (missile alert, own shot, hit, dwell) keeps the ship active
inbound missiles currently being tracked
missiles in flight fired BY managed ships (held RED until they are gone)
Radius of the EWR detection
Boolean switch to use Awacs as a separate detection stream
Percentage to use for advanced mode, defaults to 100%
Advanced mode state tracker
Use advanced mode, will decrease reactivity of MANTIS, if HQ and/or EWR network dies. Set SAMs to RED state if both are dead. Requires usage of an HQ object
0.8 additions
Relocate HQ and EWR groups in random intervals. Note: You need to select units for this which are actually mobile
Detection range of an optional Awacs unit
Counter for SAM Table refreshes.
If true, do not activate a SAM installation if a friendly aircraft is in firing range.
Radius of the SAM sites
Switch on extra messages
Interval in seconds for the target detection
Firing engage range of the SAMs, see [https://wiki.hoggitworld.com/view/DCS_option_engagementRange]
Radius to group detected objects
Prefix for logging
Log SAM status in dcs.log every cycle if true.
Name of this Mantis
random between 30 and 60 mins
switch alarm state RED
self.SAMCheckRanges = {}
Switch on extra logging
Function(s)
Add a single accept zone to MANTIS.
Add a single conflict zone to MANTIS.
Function to add one corridor zone.
Defined in:
MANTIS
Parameter:
Core.Zone#ZONE CorridorZone
The ZONE object to be added.
Return value:
self
Add client jammer aircraft support.
Call BEFORE :Start().
Defined in:
MANTIS
Parameters:
Core.Set#SET_GROUP clientSet
SET_GROUP of client jammer aircraft, or a prefix string
#string defaultLoadout
Default loadout key (default "1xALQ99_2xALQ249")
Return value:
self
Add AI jammer aircraft.
Call BEFORE :Start(). Can be called multiple times. AI jammers start OFF; use SetJammerActive(unitName, true) to activate via script.
Defined in:
MANTIS
Parameters:
Core.Set#SET_GROUP aiSet
SET_GROUP or prefix string for AI jammer aircraft
#string loadout
Loadout key for these AI aircraft (default "1xALQ99_2xALQ249")
Return value:
self
Add a NAVYGROUP to this MANTIS as SAM shooter and/or EWR picket.
MANTIS takes over the NAVYGROUP's alarm state, emissions and (see #MANTIS.SetNavalROE) ROE: by default the ship is given Open Fire so it engages what its radars find when RED.
Add a single reject zone to MANTIS.
Add a SET_ZONE of zones for Shoot&Scoot - SHORAD units will move around
Defined in:
MANTIS
Parameters:
Core.Set#SET_ZONE ZoneSet
Set of zones to be used. Units will move around to the next (random) zone between 100m and 3000m away.
#number Number
(Optional) Number of closest zones to be considered, defaults to 3.
#boolean Random
If true, use a random coordinate inside the next zone to scoot to.
#string Formation
(Optional) Formation to use, defaults to "Cone". See mission editor dropdown for options.
Return value:
self
Function to link up #MANTIS with a #SHORAD installation
Defined in:
MANTIS
Parameters:
Functional.Shorad#SHORAD Shorad
The #SHORAD object
#number Shoradtime
Number of seconds #SHORAD stays active post wake-up
Function to set accept and reject zones.
Defined in:
MANTIS
Parameters:
#table AcceptZones
Table of Core.Zone#ZONE objects
#table RejectZones
Table of Core.Zone#ZONE objects
#table ConflictZones
Table of Core.Zone#ZONE objects
Return value:
self
Usage:
Parameters are **tables of Core.Zone#ZONE** objects!
This is effectively a 3-stage filter allowing for zone overlap. A coordinate is accepted first when
it is inside any AcceptZone. Then RejectZones are checked, which enforces both borders, but also overlaps of
Accept- and RejectZones. Last, if it is inside a conflict zone, it is accepted.
Function to set switch-on/off the debug state
Defined in:
MANTIS
Parameter:
#boolean onoff
Set true to switch on
Get number of active jammer aircraft.
Defined in:
MANTIS
Return value:
#number:
Function to get the HQ object for further use
Defined in:
MANTIS
Return value:
The HQ #GROUP object or nil if it doesn't exist
Get table of currently jammed SAM group names.
Defined in:
MANTIS
Return value:
#table:
{samName = probability}
Print a debug report of the jammer system to dcs.log and screen.
Lists registered aircraft, their states, snapshot count, and currently jammed SAMs with their probabilities. Use this to diagnose menu issues, missing aircraft, or unexpected SAM matching.
Defined in:
MANTIS
Parameter:
#boolean toScreen
If true, also display report on screen (default false)
Return value:
self
Test the SAM resolver against a hypothetical group name.
Useful for verifying naming convention before mission start.
Defined in:
MANTIS
Parameter:
#string testName
The hypothetical SAM group name to test
Return value:
#string:
Matched JammerSAMParams key, or "NO MATCH"
Function to instantiate a new object of class MANTIS
Defined in:
MANTIS
Parameters:
#string name
Name of this MANTIS for reporting
#string samprefix
Prefixes for the SAM groups from the ME, e.g. all groups starting with "Red Sam..."
#string ewrprefix
Prefixes for the EWR groups from the ME, e.g. all groups starting with "Red EWR..."
#string hq
Group name of your HQ (optional)
#string Coalition
Coalition side of your setup, e.g. "blue", "red" or "neutral"
#boolean dynamic
Use constant (true) filtering or just filter once (false, default) (optional)
#string awacs
Group name of your Awacs (optional)
#boolean EmOnOff
Make MANTIS switch Emissions on and off instead of changing the alarm state between RED and GREEN (optional)
#number Padding
For #SEAD - Extra number of seconds to add to radar switch-back-on time (optional)
#table Zones
Table of Core.Zone#ZONE Zones Consider SAM groups in this zone(s) only for this MANTIS instance, must be handed as #table of Zone objects
Return value:
self
Usage:
Start up your MANTIS with a basic setting
myredmantis = MANTIS:New("myredmantis","Red SAM","Red EWR",nil,"red",false)
myredmantis:Start()
[optional] Use
myredmantis:SetDetectInterval(interval)
myredmantis:SetAutoRelocate(hq, ewr)
before starting #MANTIS to fine-tune your setup.
If you want to use a separate AWACS unit (default detection range: 250km) to support your EWR system, use e.g. the following setup:
mybluemantis = MANTIS:New("bluemantis","Blue SAM","Blue EWR",nil,"blue",false,"Blue Awacs")
mybluemantis:Start()
On After "AdvStateChange" event.
Advanced state changed, influencing detection speed.
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
#number Oldstate
Old state - 0 = green, 1 = amber, 2 = red
#number Newstate
New state - 0 = green, 1 = amber, 2 = red
#number Interval
Calculated detection interval based on state and advanced feature setting
Return value:
self
On After "GreenState" event.
A SAM group was switched to GREEN alert.
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Wrapper.Group#GROUP Group
The GROUP object whose state was changed
Return value:
self
On After "RedState" event.
A SAM group was switched to RED alert.
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Wrapper.Group#GROUP Group
The GROUP object whose state was changed
Return value:
self
On After "Relocating" event.
HQ and/or EWR moved.
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Return value:
self
On After "SAMUnitLoast" event.
A SAM Unit was lost.
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Wrapper.Group#GROUP Group
The GROUP of the lost UNIT object
#string Name
Name of the suppressed group
On After "SeadSuppressionPlanned" event.
Mantis has planned to switch off a site to defend SEAD attack.
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Wrapper.Group#GROUP Group
The suppressed GROUP object
#string Name
Name of the suppressed group
#number SuppressionStartTime
Model start time of the suppression from timer.getTime()
#number SuppressionEndTime
Model end time of the suppression from timer.getTime()
Wrapper.Group#GROUP Attacker
The attacking GROUP object
On After "SeadSuppressionStart" event.
Mantis has switched off a site to defend a SEAD attack.
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Wrapper.Group#GROUP Group
The suppressed GROUP object
#string Name
Name of the suppressed group
Wrapper.Group#GROUP Attacker
The attacking GROUP object
On After "ShoradActivated" event.
Mantis has activated a SHORAD.
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
#string Name
Name of the GROUP which SHORAD shall protect
#number Radius
Radius around the named group to find SHORAD groups
#number Ontime
Seconds the SHORAD will stay active
[Internal] Check if a system can and should defend for HARMs itself
Defined in:
MANTIS
Parameters:
Wrapper.Group#GROUP targetGroup
#string targetName
Wrapper.Group#GROUP attackerGroup
#string weaponName
Wrapper.Weapon#WEAPON weaponWrapper
#number tti
#number delay
Return value:
#boolean:
Outcome
Switch off accoustic detection.
Set to accept accoustic detection.
Set this before MANTIS starts!
Defined in:
MANTIS
Parameters:
#number Radius
(Optional) Radius in which we can "hear" units. Defaults to 2000 meters.
#table UnitCategories
(Optional) Set what Unit Categories we can "hear". Defaults to {Unit.Category.HELICOPTER}
#boolean PlayersOnly
(Optional) Detect only players in the allowed unit categories. Defaults to false.
#function PlayerSnapshotProvider
(Optional) Function receiving the opposing coalition and returning {rows={{unit=nativeUnit,category=unitCategory,point=vec3},...}} for its players. Without a provider, use coalition.getPlayers.
Return value:
self
Function to set Advanded Mode
Defined in:
MANTIS
Parameters:
#boolean onoff
If true, will activate Advanced Mode
#number ratio
(Optional) Percentage to use for advanced mode, defaults to 100%
Usage:
Advanced mode will *decrease* reactivity of MANTIS, if HQ and/or EWR network dies. Set SAMs to RED state if both are dead. Requires usage of an **HQ** object and the **dynamic** option.
E.g. `mymantis:SetAdvancedMode(true, 90)`
Function to set autorelocation for HQ and EWR objects.
Note: Units must be actually mobile in DCS!
Defined in:
MANTIS
Parameters:
#boolean hq
If true, will relocate HQ object
#boolean ewr
If true, will relocate EWR objects
Function to set separate AWACS detection instance
Defined in:
MANTIS
Parameter:
#string prefix
Name of the AWACS group in the mission editor
Function to set AWACS detection range.
Defaults to 250.000m (250km) - use before starting your Mantis!
Defined in:
MANTIS
Parameter:
#number range
Detection range of the AWACS group
Function to set the HQ object for further use
Function to set corridor zone floor and ceiling in FEET.
Defined in:
MANTIS
Parameters:
#number Floor
Floor altitude ASL in feet.
#number Ceiling
Ceiling altitude ASL in feet.
Return value:
self
Function to set corridor zone floor and ceiling in METERS.
Defined in:
MANTIS
Parameters:
#number Floor
Floor altitude ASL in meters.
#number Ceiling
Ceiling altitude ASL in meters.
Return value:
self
Function to set corridor zones.
Defined in:
MANTIS
Parameter:
Core.Set#SET_ZONE CorridorZones
Can be handed in as SET_ZONE or single ZONE object.
Return value:
self
Function to set how long INTEL DLINK remembers contacts.
Defined in:
MANTIS
Parameter:
#number seconds
Remember this many seconds, at least 5 seconds.
Return value:
self
Function to set the detection interval
Defined in:
MANTIS
Parameter:
#number interval
The interval in seconds
Function to set the grouping radius of the detection in meters
Defined in:
MANTIS
Parameter:
#number radius
Radius upon which detected objects will be grouped
Function to set the detection radius of the EWR in meters.
(Deprecated, SAM range is used)
Defined in:
MANTIS
Parameter:
#number radius
Radius of the EWR detection zone
Manually activate/deactivate a jammer aircraft (AI scripted control).
Defined in:
MANTIS
Parameters:
#string unitName
DCS unit name
#boolean active
true=on, false=off
Return value:
self
Manually set a jammer aircraft loadout (AI scripted control).
Defined in:
MANTIS
Parameters:
#string unitName
DCS unit name
#string loadoutKey
Key into JammerLoadouts
Return value:
self
Function to set number of SAMs going active on a valid, detected thread
Defined in:
MANTIS
Parameters:
#number Short
(Optional) Number of short-range systems activated, defaults to 2.
#number Mid
(Optional) Number of mid-range systems activated, defaults to 2.
#number Long
(Optional) Number of long-range systems activated, defaults to 1.
#number Classic
(Optional) (non-automode) Number of overall systems activated, defaults to 6.
#number Point
(Optional) Number of point defense and AAA systems activated, defaults to 6.
Return value:
self
Configure naval AUTONOMY outside EWR coverage.
Default: ENABLED, 150km. Ships mirror the ground-SAM umbrella concept: a ship group within CoverageKM of any alive EWR group (including EWR-role ships or AWACS ships in the EWR set) is managed normally -- alarm GREEN until MANTIS detects a threat inside one of its units' envelopes. A group OUTSIDE coverage goes alarm RED and searches/engages autonomously on its own radars until coverage is restored. Full jamming suppression overrides autonomy and forces the group GREEN.
Configure naval MISSILE defense.
Default: ENABLED, lead 60s, hold 60s. Aircraft-based wake-up only fires when a detected aircraft is inside a ship's radius, so a missile launched from OUTSIDE that radius would reach a GREEN (radars dark) ship unopposed. With this enabled MANTIS also tracks every inbound enemy missile (DCS shot event) and wakes the ships it threatens when the missile is predicted to arrive within the lead time -- the ships stay EMCON-quiet while the missile is still far away. If the missile has target data (e.g. a locked Harpoon) the threatened ship and every managed ship whose radius covers it wake up; without target data (coordinate-targeted/INS shots) every managed ship the missile is flying towards wakes up. Anti-radiation missiles are ignored (they home on emitters). By default the wake-up is also SENSOR-GATED (see #MANTIS.SetNavalMissileSensorMode): the launch event only starts the track, a ship wakes only once the missile is inside its own radar horizon or inside the coverage of an unmanaged emitter (EWR, AWACS, picket ship).
Choose how much the naval missile defense may "know".
Default: SENSOR. DCS detection reports units, not weapons, so the launch event is the only way to learn of a missile. In SENSOR mode that knowledge is only acted on once a plausible sensor could hold the missile: * the threatened ship itself, limited by its radar horizon to the missile (models ESM,
lookouts and EMCON sweeps -- a sea-skimmer is seen late, a high diver early), or
* any UNMANAGED emitter of this MANTIS (land EWR, AWACS, EWR-role picket ships), limited
by its detection range (#MANTIS.acceptrange for surface sensors, #MANTIS.awacsrange for
airborne ones), its radar horizon, and terrain line of sight. A track held by the
network is shared with every ship (datalink).
CUED mode skips the sensor check and wakes purely on time-to-impact.
Enable/disable PER-UNIT classification and switching for naval groups.
Default: ENABLED. Mixed-hull ship groups (e.g. a carrier escorted by destroyers) get one SAM entry PER SHIP -- each hull with its own type, range, state and jamming curve, switched via UNIT:EnableEmission while the group stays alarm RED (weapons hot). Disable to revert to legacy group-level naval handling (first matched hull defines the whole group).
Set the ROE MANTIS gives managed NAVYGROUPs.
Default: ENUMS.ROE.OpenFire. NAVYGROUP (OPSGROUP) defaults to Return Fire, so a ship MANTIS switches RED would radiate but not engage -- not even an inbound missile. MANTIS therefore makes the ROE the NAVYGROUP's DEFAULT ROE at registration (so respawn, mission end and the EngageTarget restore all come back to it) and re-asserts it whenever the ship is RED and something else changed it. An explicit ENUMS.ROE.WeaponHold set by the mission is never overridden (cease-fire phases). Note: for ships only OpenFire (2), ReturnFire (3) and WeaponHold (4) are valid; OpenFire is the ship "engage what you detect" setting -- WeaponFree (0/1) is an AIR-only value. Open Fire is not air-only: ships with anti-ship missiles will also engage detected enemy ships. Plain (non-NAVYGROUP) ships keep their Mission Editor ROE.
Set the minimum time a ship stays active after its last trigger.
Default: 60 seconds. Applies to air contacts in range, surface wake-up, hits / unit losses and the ship's OWN missiles: a ship that fired is held RED while its missile is in flight and for this long after it is gone, so semi-active and command-guided shots keep their guidance. Without it a ship could go dark at the next detection cycle with its own missile still flying. Jamming still overrides the hold. 0 disables the dwell and the own-shot hold.
Include or exclude naval SAMs from SEAD emission-shutdown evasion.
Default: EXCLUDED. Surface combatants engage inbound ARMs/ASMs with hard-kill defenses (SAMs, CIWS); going emissions-dark would disable exactly those defenses. Ground SAM behavior is unchanged. Takes effect at the next SAM table refresh (every 3rd detection cycle).
Enable/disable the naval surface wake-up and optionally set a fixed trigger radius.
Default: ENABLED, radius = each ship's own engagement radius from SamDataNaval. When enabled, a MANTIS-quiet ship goes active (RED / emissions on) whenever an enemy surface combatant closes within the trigger radius, so anti-ship engagements are not blocked by EMCON. Jamming still wins: a jammed ship stays suppressed. Ships only -- ground SAM behavior is unchanged.
Function to set a new SAM firing engage range, use this method to adjust range while running MANTIS, e.g.
for different setups day and night
Defined in:
MANTIS
Parameter:
#number range
Percent of the max fire range
Function to set switch-on/off zone for the SAM sites in meters.
Overwritten per SAM in automode.
Defined in:
MANTIS
Parameter:
#number radius
Radius of the firing zone in classic mode
Function to set SAM firing engage range, 0-100 percent, e.g.
85
Defined in:
MANTIS
Parameter:
#number range
Percent of the max fire range
[Internal] Function to set the SAM start state
Function to set Short Range SAMs to spit out smoke as decoy, if an enemy plane is in range.
Defined in:
MANTIS
Parameters:
#boolean Onoff
Set to true for on and nil/false for off.
#number Color
(Optional) Color to use, defaults to SMOKECOLOR.White
Set using your own #INTEL_DLINK object instead of #DETECTION
Set using Emissions on/off instead of changing alarm state
Defined in:
MANTIS
Parameter:
#boolean switch
Decide if we are changing alarm state or Emission state
Triggers the FSM event "Start".
Starts the MANTIS. Initializes parameters and starts event handlers.
Defined in:
MANTIS
[Internal] Function to start the detection via AWACS if defined as separate (classic)
[Internal] Function to start the detection via EWR groups - if INTEL isn't available
[Internal] Function to start the detection with INTEL via EWR groups
[Internal] Group ALARM-STATE arbiter for per-unit naval control.
DCS reliably honors only GROUP-level alarm state on ships, so per-unit tracking decides intent and this function applies ONE alarm state per ship group as the final word of each cycle: RED if any managed unit is RED and not jammed (threat / hit / surface
wake), or the group is outside EWR radar coverage (autonomous
search, see SetNavalAutonomy) with at least one unjammed unit;
GREEN otherwise -- including full jamming suppression, which overrides
autonomy (a fully jammed group cannot search).
Re-assertion: NAVYGROUP missions (optionAlarm), mission end and respawns change the alarm state behind MANTIS's back. Registered NAVYGROUPs are checked for drift via GetAlarmstate() on every call; plain ship groups are re-asserted when Force is set (once per detection cycle). A NAVYGROUP that is executing EngageTarget is held RED so MANTIS does not blind its attack.
[Internal] Build cached sorted key lists for the resolver.
Called once on first use. Avoids re-scanning/re-sorting JammerSAMParams every cycle.
[Internal] Classify a naval group PER UNIT.
Each hull matching #MANTIS.SamDataNaval becomes its own SAM-table record keyed by UNIT name, record[8] = parent group name.
[Internal] Function to determine state of the advanced mode
Defined in:
MANTIS
Return values:
#number:
Newly calculated interval
#number:
Previous state for tracking 0, 1, or 2
[Internal] Check detection function
Defined in:
MANTIS
Parameters:
Functional.Detection#DETECTION_AREAS detection
Detection object
#boolean dlink
#boolean reporttolog
Return value:
self
[Internal] Check advanced state
[Internal] Check if any EWR or AWACS is still alive
Defined in:
MANTIS
Return value:
#boolean:
outcome
[Internal] Function to check accept and reject zones
Defined in:
MANTIS
Parameter:
Core.Point#COORDINATE coord
The coordinate to check
Return value:
#boolean:
outcome
[Internal] Check DLink state
[Internal] Function to check if EWR is (at least partially) alive
Defined in:
MANTIS
Return value:
#boolean:
True if EWR is alive, else false
[Internal] Function to check if HQ is alive
Defined in:
MANTIS
Return value:
#boolean:
True if HQ is alive, else false
[Internal] Check detection function
Defined in:
MANTIS
Parameters:
#table samset
Table of SAM data
#table detset
Table of COORDINATES
#boolean dlink
Using DLINK
#number limit
of SAM sites to go active on a contact
#table contactSnapshot
Contact facts captured once for the current check.
#table zoneResults
(Optional) Coordinate-zone results shared only within the current check.
Return values:
#number:
instatusred
#number:
instatusgreen
#number:
activeshorads
[Internal] Function to check if any object is in the given SAM zone
Defined in:
MANTIS
Parameters:
#table dectset
Table of coordinates of detected items
Core.Point#COORDINATE samcoordinate
Coordinate object.
#number radius
Radius to check.
#number height
Height to check.
#boolean dlink
Data from DLINK.
#table contactSnapshot
Contact facts captured once for the current check.
#number closeRadius
(Optional) Radius requiring a qualifying close threat.
#table zoneResults
(Optional) Coordinate-zone results shared only within the current check.
Return values:
#boolean:
True if in any zone, else false
#number:
Distance Target distance in meters or zero when no object is in zone
#boolean:
CloseThreat True if a qualifying target is within closeRadius; nil when no close check is requested or no target qualifies.
[Internal] Compute which SAMs are jammed this cycle.
[Internal] Check if any enemy surface combatant is within radius of a coordinate.
Builds a live enemy-ship SET_GROUP lazily on first use.
Defined in:
MANTIS
Parameters:
Core.Point#COORDINATE coord
Ship position.
#number radius
Trigger radius in meters.
Return value:
#boolean:
found
[Internal] Function to manage hits on SAM units
[Internal] Function to get SAM firing data for naval (ship) groups.
Matches the unit type name exactly against #MANTIS.SamDataNaval and, as a side effect, stashes the hull's jammer curve in self._samJammerParams[grpname] so the SOJ jammer extension can suppress it by type name (not group name).
[Internal] Function to get SAM firing data from units types.
Defined in:
MANTIS
Parameters:
#string grpname
Name of the group
#boolean mod
HDS mod flag
#boolean sma
SMA mod flag
#boolean chm
CH mod flag
Wrapper.Group#GROUP group
(Optional) Already resolved group.
DCS#Group DCSGroup
(Optional) Native group resolved for this wrapper during the current synchronous operation.
#table Units
(Optional) Current Wrapper.Unit#UNIT objects from this group, not native DCS units.
Return values:
#number:
range Max firing range
#number:
height Max firing height
#string:
type Long, medium or short range
#number:
blind "blind" spot
[Internal] Function to get SAM firing data
Defined in:
MANTIS
Parameters:
#string grpname
Name of the group
Wrapper.Group#GROUP group
(Optional) Already resolved group.
#boolean isship
(Optional) Already resolved ship classification.
DCS#Group DCSGroup
(Optional) Native group resolved for this wrapper during the current synchronous operation.
#table Units
(Optional) Current Wrapper.Unit#UNIT objects from this group, not native DCS units.
Return values:
#number:
range Max firing range
#number:
height Max firing height
#string:
type Long, medium or short range
#number:
blind "blind" spot
[Internal] Function to get the self.SAM_Table
Defined in:
MANTIS
Return value:
#table:
table
[Internal, static] Inject NAVYGROUP:SetMANTIS.
Idempotent; safe if NAVYGROUP absent.
[Internal] Iterate any supported SET type, calling fn(unit, group) for each alive unit.
Supports SET_GROUP (via ForEachGroupAlive) and SET_CLIENT/SET_PLAYER (via ForEachClient). Note: callback receives ALL alive units — caller must check InAir() for snapshot logic. Menu setup happens for ground units too so clients see the menu before takeoff.
Defined in:
MANTIS
Parameters:
set
The SET object (SET_GROUP, SET_CLIENT, or SET_PLAYER)
#function fn
Callback receiving (unit, group)
Return value:
self
[Internal] Core jamming probability curve (v9 / v8.1 engine).
Features: decoupled bt_mod/range_mod, tapering residual floor, ±10% jitter.
Defined in:
MANTIS
Parameters:
#number d
Distance in nautical miles
#table params
{peak, mu, sigma_L, tail_dist, band, floor}
#string loadoutKey
Key into JammerLoadouts
Return value:
#number:
Jamming probability as fraction (0.0-0.95)
[Internal] F10 callback: Set loadout and show Music toggle
Defined in:
MANTIS
Parameters:
unitName
loadoutKey
group
rootMenu
[Internal] Hold a naval entry active because of an inbound missile, and switch it RED right now (do not wait for the next detection cycle, the missile may arrive before it).
[Internal] Is a missile alert currently holding this entry active?
Expired alerts are dropped.
[Internal, static] Approach geometry of a missile relative to a point.
[Internal] Live list of managed naval SAM entries with CURRENT positions (SAM_Table coordinates are only refreshed every third detection cycle).
[Internal] Extend a naval hold: keep this entry active until at least now + seconds.
Never shortens an existing hold. Seconds <= 0 does nothing.
[Internal] DCS shot event: pick out enemy missiles that can threaten managed ships.
[Internal] Track inbound missiles; wake the ships they threaten when time-to-impact is short.
Time-to-impact (not distance) is used so a slow cruise missile and a Mach 3 AShM both give the ship the same warning, and the ship stays EMCON-quiet while the missile is still far out.
[Internal] Unmanaged emitters that can share a missile track: EWR set members that are not managed naval SAMs (land EWR, EWR-role ships, AWACS in the set) plus the separate AWACS.
Managed ships are excluded -- their radars are dark while GREEN.
[Internal] Function to prefilter height based and check for Helo activity.
Defined in:
MANTIS
Parameters:
#number height
Core.Point#COORDINATE SamCoordinate
#table contactSnapshot
Contact facts captured once for the current check.
Return value:
#table:
set
[Internal, static] Radar horizon (4/3 earth) between two heights above sea level.
Defined in:
MANTIS
Parameters:
#number h1
Height of the sensor in meters ASL.
#number h2
Height of the target in meters ASL.
Return value:
#number:
distance Horizon distance in meters.
[Internal] Re-add registered NAVYGROUPs that dropped out of the SAM/EWR sets.
A dynamic (FilterStart) SET_GROUP removes a group on RemoveUnit/Dead and only re-adds it on Birth if it matches the prefix filter -- a respawned NAVYGROUP added via AddNavyGroup whose name does not match would otherwise be lost to MANTIS for the rest of the mission.
[Internal] Refresh the ground group's ammunition and tracking state in MANTIS_AMMO.
Cache fields: object is the native DCS group identity; units and template identify static-set replacements; isSAM records radar SAM classification; missiles is the latest missile count; empty requires two consecutive zero samples; canSleep enables the empty-ammo veto outside POINT; trUnits contains expected tracking radar names; trLost records loss of every required TR; advancedSleeping records a site held off in advanced state 2.
Defined in:
MANTIS
Parameters:
Wrapper.Group#GROUP group
The ground group.
#string grpname
The group name.
#boolean reset
Recreate the cache for startup.
#string samType
The classified #MANTIS.SamType.
DCS#Group DCSGroup
(Optional) Native group resolved for this wrapper during the current synchronous operation.
#table Units
(Optional) Current Wrapper.Unit#UNIT objects from this group, not native DCS units.
Return value:
self
[Internal] Function to update SAM table and SEAD state
[Internal] Check tracking radar availability and switch off sites without a working TR.
Defined in:
MANTIS
Parameters:
Wrapper.Group#GROUP group
The SAM group.
#string grpname
The group name.
#table ammo
The group's cached ammunition and tracking state.
#string lostUnitName
(Optional) Unit reported lost by the current event.
#table Units
(Optional) Current Wrapper.Unit#UNIT objects from this group, not native DCS units.
[Internal] Relocation relay function
[Internal] Function to execute the relocation
[Internal] Resolve a SAM group name to its jammer parameters.
Uses cached sorted key lists and per-name memoization for performance. Substring matching with digit-boundary protection prevents false matches (e.g. "SA-22 Pantsir" no longer matches "SA-2").
Defined in:
MANTIS
Parameter:
#string grpname
The SAM group name
Return value:
#table:
params or nil
[Internal, static] Could a sensor plausibly hold a missile?
Defined in:
MANTIS
Parameters:
#table s
Sensor position (DCS Vec3).
#number ha
Sensor antenna height in meters ASL.
#number range
(Optional) Maximum detection range in meters; nil = horizon-limited only.
#table p
Missile position (DCS Vec3).
Return value:
#boolean:
seen
[Internal] Function to set the self.SAM_Table
[Internal] Set up tiered F10 jammer menu for a player unit.
[Internal] Show "Music Off" menu entry (jammer is ON, click to turn OFF)
Defined in:
MANTIS
Parameters:
unitName
group
rootMenu
[Internal] Show "Music On" menu entry (jammer is OFF, click to turn ON)
Defined in:
MANTIS
Parameters:
unitName
group
rootMenu
[Internal] Function to smoke a group in decoy.
[Internal] Switch a SAM group on or off.
Single entry point for every switch that can hit a ship. Ground groups / plain ships: EnableEmission (UseEmOnOff) or alarm state RED/GREEN, as before. Registered NAVYGROUPs are switched THROUGH the NAVYGROUP (SwitchAlarmstate/SwitchEmission) so its option bookkeeping stays in sync: respawn, mission end and EngageTarget restore the value MANTIS set, and drift can be detected via GetAlarmstate().
Defined in:
MANTIS
Parameters:
Wrapper.Group#GROUP group
The group.
#boolean on
True = active (RED / emitting), false = quiet (GREEN / dark).
#boolean alarmonly
(Optional) Always use alarm state, ignoring UseEmOnOff (per-unit naval control).
DCS#Group DCSGroup
(Optional) Native group already resolved for this wrapper, passed to EnableEmission.
Return value:
self
[Internal] Update jammer aircraft states and build snapshot.
Triggers the FSM event "Start" after a delay.
Starts the MANTIS. Initializes parameters and starts event handlers.
Defined in:
MANTIS
Parameter:
#number delay
Delay in seconds.
Triggers the FSM event "Status" after a delay.
Defined in:
MANTIS
Parameter:
#number delay
Delay in seconds.
Triggers the FSM event "Stop" after a delay.
Stops the MANTIS and all its event handlers.
Defined in:
MANTIS
Parameter:
#number delay
Delay in seconds.
[Internal] Function triggered by Event AdvStateChange
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
#number Oldstate
Old state - 0 = green, 1 = amber, 2 = red
#number Newstate
New state - 0 = green, 1 = amber, 2 = red
#number Interval
Calculated detection interval based on state and advanced feature setting
Return value:
self
[Internal] Function triggered by Event GreenState
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Wrapper.Group#GROUP Group
The GROUP object whose state was changed
Return value:
self
On After "JammerActivated" event
Defined in:
MANTIS
Parameters:
From
Event
To
UnitName
Loadout
On After "JammerDeactivated" event
Defined in:
MANTIS
Parameters:
From
Event
To
UnitName
On After "JammerSuppression" event
Defined in:
MANTIS
Parameters:
From
Event
To
Group
Name
Probability
[Internal] Function triggered by Event RedState
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Wrapper.Group#GROUP Group
The GROUP object whose state was changed
Return value:
self
[Internal] Function triggered by Event Relocating
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Return value:
self
[Internal] Function triggered by Event SeadSuppressionEnd
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Wrapper.Group#GROUP Group
The suppressed GROUP object
#string Name
Name of the suppressed group
[Internal] Function triggered by Event SeadSuppressionPlanned
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Wrapper.Group#GROUP Group
The suppressed GROUP object
#string Name
Name of the suppressed group
#number SuppressionStartTime
Model start time of the suppression from timer.getTime()
#number SuppressionEndTime
Model end time of the suppression from timer.getTime()
Wrapper.Group#GROUP Attacker
The attacking GROUP object
[Internal] Function triggered by Event SeadSuppressionStart
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Wrapper.Group#GROUP Group
The suppressed GROUP object
#string Name
Name of the suppressed group
Wrapper.Group#GROUP Attacker
The attacking GROUP object
[Internal] Function triggered by Event ShoradActivated
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
#string Name
Name of the GROUP which SHORAD shall protect
#number Radius
Radius around the named group to find SHORAD groups
#number Ontime
Seconds the SHORAD will stay active
[Internal] Function to set start state
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Return value:
self
[Internal] Status function for MANTIS
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Return value:
self
[Internal] Function to stop MANTIS and its INTEL detectors.
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Return value:
self
[Internal] Before status function for MANTIS
Defined in:
MANTIS
Parameters:
#string From
The From State
#string Event
The Event
#string To
The To State
Return value:
self
Field(s)
Seconds after which cached contacts in DLink will decay.
Set if we can also detect units accousticly.
We can hear these categories.
We can hear in this range.
meters above ground; land EWR antenna height used for the radar-horizon calculation
Prefix to build the #SET_GROUP for EWR group
Table of Core.Zone#ZONE Zones Consider SAM groups in this zone(s) only for this MANTIS instance, must be handed as #table of Zone objects.
The ME name of the HQ object
meters; ship search-radar height used for the radar-horizon calculation
ship groups outside EWR radar coverage go alarm RED and search autonomously (see SetNavalAutonomy)
meters; a ship group within this distance of an alive EWR group counts as covered
ships wake up for inbound enemy missiles even if the launcher was never inside their radius (see SetNavalMissileDefense)
seconds; a ship stays active this long after the last missile alert
seconds; wake a ship when a tracked missile is predicted to reach it within this time
"SENSOR" = wake only once a plausible sensor could see the missile; "CUED" = launch cueing, no sensor check (see SetNavalMissileSensorMode)
seconds; missile tracking interval
classify & switch every ship unit individually (see SetNavalPerUnit)
ENUMS.ROE.OpenFire; ROE MANTIS gives managed NAVYGROUPs (false = do not touch ROE) -- see SetNavalROE
seconds; minimum time a ship stays active after its last trigger (contact, surface, hit, own missile) -- see SetNavalRedHold
quiet ships go active when enemy surface combatants close (see SetNavalSurfaceWakeup)
Table of SAM sites
Prefix to build the #SET_GROUP for SAM sites
ships hard-kill inbound missiles; they do not go EMCON under SEAD (see SetNavalSEAD)
table to hold alert states, so we don't trigger state changes twice in adv mode
Distance of an attacker in meters from a Mantis SAM site, on which Shorad will be switched on. Useful to not give away Shorad sites too early. Default 15km. Should be smaller than checkradius.
If true, #MANTIS has #SHORAD enabled
Timer in seconds, how long #SHORAD will be active after a detection inside of the defense range
If true, smoke short range SAM units as decoy if a plane is in firing range.
Color to use, defaults to SMOKECOLOR.White.
Decide if we are using Emissions on/off (true) or AlarmState red/green (default)
start in 2s, repeat every 5s
[unit or group name] = mission time until which a hold (missile alert, own shot, hit, dwell) keeps the ship active
inbound missiles currently being tracked
missiles in flight fired BY managed ships (held RED until they are gone)
Radius of the EWR detection
Boolean switch to use Awacs as a separate detection stream
Percentage to use for advanced mode, defaults to 100%
Advanced mode state tracker
Use advanced mode, will decrease reactivity of MANTIS, if HQ and/or EWR network dies. Set SAMs to RED state if both are dead. Requires usage of an HQ object
0.8 additions
Relocate HQ and EWR groups in random intervals. Note: You need to select units for this which are actually mobile
Detection range of an optional Awacs unit
Counter for SAM Table refreshes.
If true, do not activate a SAM installation if a friendly aircraft is in firing range.
Radius of the SAM sites
Switch on extra messages
Interval in seconds for the target detection
Firing engage range of the SAMs, see [https://wiki.hoggitworld.com/view/DCS_option_engagementRange]
Radius to group detected objects
Prefix for logging
Log SAM status in dcs.log every cycle if true.
Name of this Mantis
random between 30 and 60 mins
switch alarm state RED
self.SAMCheckRanges = {}
Switch on extra logging
Function(s)
Clear a state value that was set for an object.
Defined in:
Parameters:
Object
The object the state is about.
StateName
The key that should be cleared.
Creation of a Birth Event.
Defined in:
Parameters:
DCS#Time EventTime
The time stamp of the event.
DCS#Object Initiator
The initiating object of the event.
#string IniUnitName
The initiating unit name.
DCS#Airbase place
(Optional) The airbase, FARP or ship where the object was born.
#number subplace
(Optional) The subplace.
Creation of a Crash Event.
Defined in:
Parameters:
DCS#Time EventTime
The time stamp of the event.
DCS#Object Initiator
The initiating object of the event.
#number IniObjectCategory
(Optional) The object category of the initiator.
Creation of a Dead Event.
Defined in:
Parameters:
DCS#Time EventTime
The time stamp of the event.
DCS#Object Initiator
The initiating object of the event.
#number IniObjectCategory
(Optional) The object category of the initiator.
Creation of a S_EVENT_DYNAMIC_CARGO_LOADED event.
Creation of a S_EVENT_DYNAMIC_CARGO_REMOVED event.
Creation of a S_EVENT_DYNAMIC_CARGO_UNLOADED event.
Creation of a S_EVENT_GROUP_CHANGE_OPTION event.
Creation of a S_EVENT_NEW_DYNAMIC_CARGO event.
Creation of a S_EVENT_PLAYER_ENTER_AIRCRAFT event.
Creation of a Remove Unit Event.
Defined in:
Parameters:
DCS#Time EventTime
The time stamp of the event.
DCS#Object Initiator
The initiating object of the event.
Creation of a Takeoff Event.
Defined in:
Parameters:
DCS#Time EventTime
The time stamp of the event.
DCS#Object Initiator
The initiating object of the event.
Creation of a Unit Lost Event.
Defined in:
Parameters:
DCS#Time EventTime
The time stamp of the event.
DCS#Object Initiator
The initiating object of the event.
Log an exception which will be traced always.
Can be anywhere within the function logic.
Returns the event dispatcher
Remove all subscribed events
Trace a function call.
Must be at the beginning of the function logic.
Trace a function call level 2.
Must be at the beginning of the function logic.
Trace a function call level 3.
Must be at the beginning of the function logic.
Get the ClassID of the class instance.
Get the ClassName of the class instance.
Get the ClassName + ClassID of the class instance.
The ClassName + ClassID is formatted as '%s#%09d'.
Get the object's configured event priority.
Get the parent object from the inheritance chain.
To run a parent method on the current instance, call the function with self as its first argument.
local Parent = self:GetParent( self, MYCLASS )
Parent.ParentMethod( self )
Defined in:
Parameters:
#BASE Child
This is the Child class from which the Parent class needs to be retrieved.
#BASE FromClass
(Optional) Walk up the chain of Child to this class first and return its parent. Use this to call a parent method from a method of an intermediate class.
Return value:
The parent, or nil if there is none.
Get all of the properties of an object in a table.
Get one property of an object by the key.
Defined in:
Parameter:
Key
The key that is used as a reference of the value. Note that the key can be a #string, but it can also be any other type!
Return value:
Value The value that is stored. Note that the value can be a #string, but it can also be any other type! Nil if not found.
Get a Value given a Key from the Object.
The values are stored in the calling object, keyed by the class name and ID of the given Object. They are not removed when the given Object is destroyed or garbage collected. Use BASE.ClearState() to remove a value.
Defined in:
Parameters:
Object
The object the state is about.
Key
The key that is used to retrieve the value. Note that the key can be a #string, but it can also be any other type!
Return value:
The Value retrieved, or nil if no value is stored for the Key.
Subscribe to a DCS Event.
Defined in:
Parameters:
Core.Event#EVENTS EventID
Event ID.
#function EventFunction
(Optional) The function to be called as EventFunction( self, EventData ) when the event occurs. If not given, the method named after the event is called, e.g. self:OnEventDead( EventData ).
Return value:
self
Log an information which will be traced always.
Can be anywhere within the function logic.
This is the worker method to inherit from a parent class.
The Child class table is deep copied. The copy looks up missing fields and methods in Parent through its metatable.
Parent is usually a new object of the parent class, e.g. BASE:Inherit( self, BASE:New() ).
Defined in:
Parameters:
#table Child
The Child class that inherits.
#BASE Parent
The Parent object that the Child inherits from.
Return value:
The new Child object.
This is the worker method to check if an object is an (sub)instance of a class.
Examples:
ZONE:New( 'some zone' ):IsInstanceOf( ZONE ) will return true
ZONE:New( 'some zone' ):IsInstanceOf( 'ZONE' ) will return true
ZONE:New( 'some zone' ):IsInstanceOf( 'zone' ) will return true
ZONE:New( 'some zone' ):IsInstanceOf( 'BASE' ) will return true
ZONE:New( 'some zone' ):IsInstanceOf( 'GROUP' ) will return false
Defined in:
Parameter:
ClassName
The name of the class (#string, case insensitive) or the class itself to run the check against.
Return value:
#boolean:
True if the object is an instance of the class or of a class derived from it. False for an invalid parameter.
Check whether tracing is enabled for the object.
Defined in:
Return value:
#boolean:
true when the Lua debug library is available, tracing is on, and TraceAll, TraceClass, or TraceClassMethod selects the object.
BASE constructor.
Creates a new object as a deep copy of the table the method is called on and assigns the next ClassID. When the BASE class itself is copied, its class-level fields Debug (the Lua debug library) and Scheduler are left out. When the method is called on a derived class or instance, its own Debug and Scheduler fields are copied along with its other fields.
This is an example how to use the BASE:New() constructor in a new class definition when inheriting from BASE.
function EVENT:New()
local self = BASE:Inherit( self, BASE:New() ) -- #EVENT
return self
end
Occurs when an Event for an object is triggered.
Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that triggered the event.
Occurs when a ground unit captures either an airbase or a farp.
Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that captured the base place: The airbase that was captured, can be a FARP or Airbase. When calling place:getCoalition() the faction will already be the new owning faction.
Occurs when any object is spawned into the mission.
Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that was spawned
Occurs when any aircraft crashes into the ground and is completely destroyed.
Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that has crashed
Occurs when an object is dead.
Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that is dead.
Unknown precisely what creates this event, likely tied into newer damage model.
Will update this page when new information become available.
- initiator: The unit that had the failure.
Discard chair after ejection.
Have a look at the class Core.Event#EVENT as these are just the prototypes.
Occurs when a player loads a dynamic cargo object with the F8 ground crew menu into a helo.
* NOTE * this is a workaround for DCS not creating these events as of Aug 2024.
Occurs when a dynamic cargo crate is removed.
* NOTE * this is a workaround for DCS not creating these events as of Aug 2024.
Occurs when a player unloads a dynamic cargo object with the F8 ground crew menu from a helo.
* NOTE * this is a workaround for DCS not creating these events as of Aug 2024.
Occurs when a pilot ejects from an aircraft Have a look at the class Core.Event#EVENT as these are just the prototypes.
initiator : The unit that has ejected
Occurs when any aircraft shuts down its engines.
Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that is stopping its engines.
Occurs when any aircraft starts its engines.
Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that is starting its engines.
Occurs when an option is changed for an AI group.
The event identifies the initiating group, but does not provide the option ID or value.
Occurs whenever an object is hit by a weapon.
Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit object the fired the weapon weapon: Weapon object that hit the target target: The Object that was hit.
Occurs when any system fails on a human controlled aircraft.
Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that had the failure
Occurs on the death of a unit.
Contains more and different information. Similar to unit_lost it will occur for aircraft before the aircraft crash event occurs. Have a look at the class Core.Event#EVENT as these are just the prototypes.
- initiator: The unit that killed the target
- target: Target Object
- weapon: Weapon Object
Occurs when an aircraft lands at an airbase, farp or ship Have a look at the class Core.Event#EVENT as these are just the prototypes.
initiator : The unit that has landed place: Object that the unit landed on. Can be an Airbase Object, FARP, or Ships
Occurs shortly after the landing animation of an ejected pilot touching the ground and standing up.
Event does not occur if the pilot lands in the water and succumbs to Davy Jones' Locker. Have a look at the class Core.Event#EVENT as these are just the prototypes.
- initiator: Static object representing the ejected pilot. Place : Aircraft that the pilot ejected from.
- place: may not return as a valid object if the aircraft has crashed into the ground and no longer exists.
- subplace: is always 0 for unknown reasons.
Occurs when a new mark was added.
Have a look at the class Core.Event#EVENT as these are just the prototypes. MarkID: ID of the mark.
Occurs when a mark text was changed.
Have a look at the class Core.Event#EVENT as these are just the prototypes. MarkID: ID of the mark.
Occurs when a mark was removed.
Have a look at the class Core.Event#EVENT as these are just the prototypes. MarkID: ID of the mark.
Occurs when a mission ends Have a look at the class Core.Event#EVENT as these are just the prototypes.
Occurs when a mission starts Have a look at the class Core.Event#EVENT as these are just the prototypes.
Occurs when a player creates a dynamic cargo object from the F8 ground crew menu.
* NOTE * this is a workaround for DCS not creating these events as of Aug 2024.
Occurs when the pilot of an aircraft is killed.
Can occur either if the player is alive and crashes or if a weapon kills the pilot without completely destroying the plane. Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that the pilot has died in.
Occurs when a player enters a slot and takes control of an aircraft.
Have a look at the class Core.Event#EVENT as these are just the prototypes. NOTE: This is a workaround of a long standing DCS bug with the PLAYER_ENTER_UNIT event. initiator : The unit that is being taken control of.
Occurs when any player assumes direct control of a unit.
Note - not multiplayer safe. Use PlayerEnterAircraft. Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that is being taken control of.
Occurs when any player relieves control of a unit to the AI.
Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that the player left.
Occurs when an aircraft connects with a tanker and begins taking on fuel.
Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that is receiving fuel.
Occurs when an aircraft is finished taking fuel.
Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that was receiving fuel.
Occurs when any modification to the "Score" as seen on the debrief menu would occur.
There is no information on what values the score was changed to. Event is likely similar to player_comment in this regard. Have a look at the class Core.Event#EVENT as these are just the prototypes.
Occurs when any unit stops firing its weapon.
Event will always correspond with a shooting start event. Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that was doing the shooting.
Occurs when any unit begins firing a weapon that has a high rate of fire.
Most common with aircraft cannons (GAU-8), autocannons, and machine guns. Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that is doing the shooting. target: The unit that is being targeted.
Occurs whenever any unit in a mission fires a weapon.
But not any machine gun or autocannon based weapon, those are handled by EVENT.ShootingStart. Have a look at the class Core.Event#EVENT as these are just the prototypes.
Occurs when an aircraft takes off from an airbase, farp, or ship.
Have a look at the class Core.Event#EVENT as these are just the prototypes. initiator : The unit that tookoff place: Object from where the AI took-off from. Can be an Airbase Object, FARP, or Ships
Occurs when the game thinks an object is destroyed.
Have a look at the class Core.Event#EVENT as these are just the prototypes.
- initiator: The unit that is was destroyed.
Weapon add.
Fires when entering a mission per pylon with the name of the weapon (double pylons not counted, infinite weapon reload not counted). Have a look at the class Core.Event#EVENT as these are just the prototypes.
Schedule a function call once after a delay.
The schedule starts immediately.
The function is called without the object as first argument. Pass the object explicitly if needed, e.g. self:ScheduleOnce( 5, MYCLASS.Stop, self ).
Defined in:
Parameters:
#number Start
Delay in seconds before the function is called.
#function SchedulerFunction
The function to be called. It receives the optional arguments given after it.
...
(Optional) Arguments passed to the function.
Return value:
#string:
The Schedule ID of the planned schedule.
Schedule a repeated function call.
The schedule starts immediately. The function is called without the object as first argument. Pass the object explicitly if needed.
Defined in:
Parameters:
#number Start
Delay in seconds before the first call.
#number Repeat
Interval in seconds between the calls.
#number RandomizeFactor
Randomization factor between 0 and 1 to randomize the Repeat interval.
#number Stop
(Optional) Time limit in seconds from when the schedule starts. Omit it or use 0 for no time limit.
The dispatcher checks the limit after each call, so a call that was already scheduled can run after the limit expires.
#function SchedulerFunction
The function to be called. It receives the optional arguments given after it.
...
(Optional) Arguments passed to the function.
Return value:
#string:
The Schedule ID of the planned schedule.
Stops the Schedule.
Defined in:
Parameter:
#string SchedulerID
(Optional) Scheduler ID to be stopped. If nil, all pending schedules are stopped.
Set the object's event priority for subsequent subscriptions.
The Core.Event dispatcher processes priorities 1 through 10 (10 through 1 for events like Dead). Each subscription is stored under the priority in effect when it is registered.
Defined in:
Parameter:
#number EventPriority
Priority used when registering events.
Return value:
self
Set one property of an object.
Defined in:
Parameters:
Key
The key that is used as a reference of the value. Note that the key can be a #string, but it can also be any other type!
Value
The value that is stored. Note that the value can be a #string, but it can also be any other type!
Set a state or property of the Object given a Key and a Value.
The values are stored in the calling object, keyed by the class name and ID of the given Object. They are not removed when the given Object is destroyed or garbage collected. Use BASE.ClearState() to remove a value.
Defined in:
Parameters:
Object
The object the state is about. Its class name and ID are used as index.
Key
The key that is used as a reference of the value. Note that the key can be a #string, but it can also be any other type!
Value
The value to be stored.
Return value:
The Value set.
Trace a function logic level 1.
Can be anywhere within the function logic.
Trace a function logic level 2.
Can be anywhere within the function logic.
Trace a function logic level 3.
Can be anywhere within the function logic.
Trace all methods in MOOSE
Defined in:
Parameter:
#boolean TraceAll
(Optional) true or nil = trace all methods in MOOSE, false = switch it off.
Set the highest trace level.
F and T methods up to this level write to the log.
Defined in:
Parameter:
#number Level
(Optional) Trace level 1, 2, or 3. Defaults to 1.
Set trace off.
Set trace on.
Switch F and T tracing on or off.
Tracing starts disabled in BASE. BASE.E() and BASE.I() log independently of this switch.
Defined in:
Parameter:
#boolean TraceOnOff
(Optional) Use false to disable tracing. Defaults to true.
Usage:
-- Switch the tracing On
BASE:TraceOnOff( true )
-- Switch the tracing Off
BASE:TraceOnOff( false )
UnSubscribe to a DCS event.
Trace a function call.
This function is private.
Defined in:
Parameters:
Arguments
A #table or any field.
DebugInfoCurrentParam
DebugInfoFromParam
(Internal) Serialize arguments
Trace a function logic.
Defined in:
Parameters:
Arguments
A #table or any field.
DebugInfoCurrentParam
DebugInfoFromParam
The main event handling function...
This function captures all events generated for the class.
Advanced state enumerator
Field(s)
Function(s)
Tiered loadout keys for F10 menu (v8: 3/3/3)
Field(s)
Function(s)
Jammer Loadout Configurations (v8: Max 3 Pods)
Field(s)
Function(s)
Jammer SAM Parameters — v9 curves (v8.1) {peak%, mu_nm, sigma_L, tail_dist, band, floor%} v9 changes from v8: * Width rework: curves now track radar detection/track envelope (not just missile range) * Long-range systems widened (SA-5, SA-21, SA-23, Nike, PAC-2, S-300/400 family) * Short-range systems tightened (SA-19, SON-9, HQ-7, Rapier) * HAWK widened to match CW illuminator envelope (~90nm) floor: residual effectiveness inside burnthrough (now tapers past mu with R^2 falloff) 5 = legacy radar, no ECCM | 3 = moderate ECCM | 2 = advanced ECCM/AESA | 0 = optical/IR
Field(s)
USLANTCOM custom assets HQ-11 (export FM-3000, CASIC). Open sources: single rotating ACTIVE phased array (AESA) combining search and track, 70km detection, ~100 targets tracked, 8 engaged per vehicle (32 per 4-vehicle battery), 4s reaction, INS + datalink command + terminal active radar homing, "strong anti-jamming" claimed. Described as an analogue of the Russian S-350 Vityaz, which is why band follows the S350 entries. Frequency band is NOT published; IJ chosen for a multifunction track/uplink array (S is reserved here for the long-range search sets like HQ-22). peak 16: below HQ-22 (20) and IRIS-T/SkySabre (18) - AESA plus an active terminal seeker means jamming the ground array does not break a shot already handed off. mu 23: between the 16nm engagement ring and the 38nm (70km) detection ring, weighted toward engagement, same interpolation as SA-11 (19nm/46nm -> 28). floor 2: AESA / advanced ECCM per the legend above.
Mistral Unimog: passive IR, launcher ECM_K = -1. Listed for completeness with the same negligible curve as the other optical/IR launchers; jamming must not affect it.
Standard SamData (canonical entries — aliases below point to these)
SMA Mod (canonical for SMA-only keys)
HDS Mod (canonical for keys with no base equivalent)
IDF Mod
Function(s)
SAM data
Field(s)
no-firing range (green circle)
Max firing height in km
CH Added to DCS core 2.9.19.x
Point defense capable
Radar typename on unit level (used as key)
Max firing range in km
units from HDS Mod, multi launcher options is tricky
MANTIS.SamType of SAM, i.e. SHORT, MEDIUM or LONG (range)
Function(s)
SAM data CH
Field(s)
units from CH (Military Assets by Currenthill) https://www.currenthill.com/ group name MUST contain CHM to ID launcher type correctly!
no-firing range (green circle)
Max firing height in km
Point defense capable
Radar typename on unit level (used as key)
Max firing range in km
MANTIS.SamType of SAM, i.e. SHORT, MEDIUM or LONG (range)
Function(s)
SAM data HDS
Field(s)
no-firing range (green circle)
Max firing height in km
Point defense capable
Radar typename on unit level (used as key)
Max firing range in km
units from HDS Mod, multi launcher options is tricky group name MUST contain HDS to ID launcher type correctly!
MANTIS.SamType of SAM, i.e. SHORT, MEDIUM or LONG (range)
Function(s)
SAM data SMA
Field(s)
no-firing range (green circle)
Max firing height in km
Point defense capable
units from SMA Mod (Sweedish Military Assets) https://forum.dcs.world/topic/295202-swedish-military-assets-for-dcs-by-currenthill/ group name MUST contain SMA to ID launcher type correctly!
Radar typename on unit level (used as key)
Max firing range in km
MANTIS.SamType of SAM, i.e. SHORT, MEDIUM or LONG (range)
Function(s)
SAM Type