Banner Image

Module Functional.Mantis

Functional -- Modular, Automatic and Network capable Targeting and Interception System for Air Defenses


MANTIS - Moose derived Modular, Automatic and Network capable Targeting and Interception System Controls a network of SAM sites.

Use detection to switch on the AA site closest to the enemy Leverage evasiveness from SEAD Leverage attack range setup added by DCS in 11/20


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

Simple Class for a more intelligent Air Defense System

MANTIS

Moose derived Modular, Automatic and Network capable Targeting and Interception System.

#MANTIS 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

Simple 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. Use detection to switch on the AA site closest to the enemy. Leverage evasiveness from Functional.Sead#SEAD. Leverage attack range setup added by DCS in 11/20.

Set up your SAM sites in the mission editor. Name the groups with common prefix like "Red SAM". Set up your EWR system in the mission editor. Name the groups with common prefix like "Red EWR". Can be e.g. AWACS or a combination of AWACS and Search Radars like e.g. EWR 1L13 etc. [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 importantance 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.

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-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 to RED, 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 missione 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()

[optional] Use

  • MANTIS:SetEWRGrouping(radius)
  • MANTIS:SetEWRRange(radius)
  • MANTIS:SetSAMRadius(radius)
  • MANTIS:SetDetectInterval(interval)
  • MANTIS: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()

3. Default settings

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
  • 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)
  • acceptrange = 80000 (meters) - Detection (EWR) will on consider flights inside a 80km radius - MANTIS:SetEWRRange(radius)
  • detectinterval = 30 (seconds) - MANTIS will decide every 30 seconds which SAM to activate - MANTIS:SetDetectInterval(interval)
  • engagerange = 75 (percent) - SAMs will only fire if flights are inside of a 75% 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,coaltion,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.

Global _MANTISAwacs

_MANTISAwacs

[internal] Grouping detected objects to 5000m zones

Global _MANTISdetection

_MANTISdetection

[internal] Grouping detected objects to 5000m zones

Type(s)

Fields and Methods inherited from MANTIS Description

MANTIS.@

Functional.Detection#DETECTION_AREAS} AWACS_Detection The #DETECTION_AREAS object for AWACS

MANTIS.AWACS_Detection

MANTIS.AWACS_Prefix

MANTIS.Adv_EWR_Group

MANTIS:CheckObjectInZone(dectset, samcoordinate)

(Internal) Function to check if any object is in the given SAM zone

MANTIS.Classname

MANTIS.Coalition

MANTIS:Debug(onoff)

Function to set switch-on/off the debug state

MANTIS.Detection

MANTIS.EWR_Group

MANTIS.EWR_Templates_Prefix

Prefix to build the #GROUP_SET for EWR group

MANTIS:GetCommandCenter()

Function to get the HQ object for further use

MANTIS.HQ_CC

MANTIS.HQ_Template_CC

The ME name of the HQ object

MANTIS.MantisATimer

MANTIS.MantisAdvTimer

MANTIS.MantisReloTimer

MANTIS.MantisTimer

MANTIS:New(name, samprefix, ewrprefix, hq, coaltion, dynamic, awacs)

Function to instantiate a new object of class MANTIS

MANTIS.SAM_Group

MANTIS.SAM_Table

Table of SAM sites

MANTIS.SAM_Templates_Prefix

Prefix to build the #GROUP_SET for SAM sites

MANTIS:SetAdvancedMode(onoff, ratio)

Function to set Advanded Mode

MANTIS:SetAutoRelocate(hq, ewr)

Function to set autorelocation for HQ and EWR objects.

MANTIS:SetAwacs(prefix)

Function to set separate AWACS detection instance

MANTIS:SetCommandCenter(The, group)

Function to set the HQ object for further use

MANTIS:SetDetectInterval(interval)

Function to set the detection interval

MANTIS:SetEWRGrouping(radius)

Function to set the grouping radius of the detection in meters

MANTIS:SetEWRRange(radius)

Function to set the detection radius of the EWR in meters

MANTIS:SetNewSAMRangeWhileRunning(range)

Function to set a new SAM firing engage range, use this method to adjust range while running MANTIS, e.g.

MANTIS:SetSAMRadius(radius)

Function to set switch-on/off zone for the SAM sites in meters

MANTIS:SetSAMRange(range)

Function to set SAM firing engage range, 0-100 percent, e.g.

MANTIS:SetSAMStartState()

(Internal) Function to set the SAM start state

MANTIS:Start()

Function to set the SAM start state

MANTIS:StartAwacsDetection()

(Internal) Function to start the detection via AWACS if defined as separate

MANTIS:StartDetection()

(Internal) Function to start the detection via EWR groups

MANTIS:Stop()

Function to stop MANTIS

MANTIS:_CheckAdvState()

[Internal] Function to determine state of the advanced mode

MANTIS:_CheckEWRState()

[Internal] Function to check if EWR is (at least partially) alive

MANTIS:_CheckHQState()

[Internal] Function to check if HQ is alive

MANTIS:_GetSAMTable()

[internal] Function to get the self.SAM_Table

MANTIS:_RefreshSAMTable()

(Internal) Function to update SAM table and SEAD state

MANTIS:_RelocateGroups()

[Internal] Function to execute the relocation

MANTIS:_SetSAMTable(table)

[internal] Function to set the self.SAM_Table

MANTIS.acceptrange

Radius of the EWR detection

MANTIS.advAwacs

Boolean switch to use Awacs as a separate detection stream

MANTIS.adv_ratio

Percentage to use for advanced mode, defaults to 100%

MANTIS.adv_state

Advanced mode state tracker

MANTIS.advanced

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

MANTIS.autorelocate

Relocate HQ and EWR groups in random intervals. Note: You need to select units for this which are actually mobile

MANTIS.autorelocateunits

MANTIS.awacsrange

Detection range of an optional Awacs unit

MANTIS.checkradius

Radius of the SAM sites

MANTIS.debug

Switch on extra messages

MANTIS.detectinterval

Interval in seconds for the target detection

MANTIS.dynamic

MANTIS.engagerange

Firing engage range of the SAMs, see [https://wiki.hoggitworld.com/view/DCS_option_engagementRange]

MANTIS.grouping

Radius to group detected objects

MANTIS.lid

Prefix for logging

MANTIS.mysead

MANTIS.name

Name of this Mantis

MANTIS.verbose

Switch on extra logging

MANTIS.version

Field(s)

MANTIS.EWR_Group

Set EWR SET_GROUP

#string MANTIS.EWR_Templates_Prefix

Prefix to build the #GROUP_SET for EWR group

#string MANTIS.HQ_Template_CC

The ME name of the HQ object

MANTIS.SAM_Group

Set SAM SET_GROUP

#table MANTIS.SAM_Table

Table of SAM sites

#string MANTIS.SAM_Templates_Prefix

Prefix to build the #GROUP_SET for SAM sites

#number MANTIS.acceptrange

Radius of the EWR detection

#boolean MANTIS.advAwacs

Boolean switch to use Awacs as a separate detection stream

#number MANTIS.adv_ratio

Percentage to use for advanced mode, defaults to 100%

#number MANTIS.adv_state

Advanced mode state tracker

#boolean MANTIS.advanced

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

#boolean MANTIS.autorelocate

Relocate HQ and EWR groups in random intervals. Note: You need to select units for this which are actually mobile

#number MANTIS.awacsrange

Detection range of an optional Awacs unit

#number MANTIS.checkradius

Radius of the SAM sites

#boolean MANTIS.debug

Switch on extra messages

#number MANTIS.detectinterval

Interval in seconds for the target detection

#number MANTIS.engagerange

Firing engage range of the SAMs, see [https://wiki.hoggitworld.com/view/DCS_option_engagementRange]

#number MANTIS.grouping

Radius to group detected objects

#string MANTIS.lid

Prefix for logging

#string MANTIS.name

Name of this Mantis

#boolean MANTIS.verbose

Switch on extra logging

#string MANTIS.version

@field #string version

Function(s)

(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

samcoordinate

Core.Point#COORDINATE Coordinate object.

Return value:

#boolean:

True if in any zone, else false

Function to set switch-on/off the debug state

Defined in:

MANTIS

Parameter:

#boolean onoff

Set true to switch on

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

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 coaltion

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)

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  
 
  * `MANTIS:SetEWRGrouping(radius)`  
  * `MANTIS:SetEWRRange(radius)`  
  * `MANTIS:SetSAMRadius(radius)`  
  * `MANTIS:SetDetectInterval(interval)`
  * `MANTIS: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()`
    

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 the HQ object for further use

Defined in:

MANTIS

Parameters:

HQ #GROUP object to be set as HQ

group

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

Defined in:

MANTIS

Parameter:

#number radius

Radius of the EWR detection zone

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

Defined in:

MANTIS

Parameter:

#number radius

Radius of the firing zone

Function to set SAM firing engage range, 0-100 percent, e.g.

75

Defined in:

MANTIS

Parameter:

#number range

Percent of the max fire range

(Internal) Function to set the SAM start state

Defined in:

MANTIS

Return value:

self

Function to set the SAM start state

Defined in:

MANTIS

Return value:

self

(Internal) Function to start the detection via AWACS if defined as separate

Defined in:

MANTIS

Return value:

The running detection set

(Internal) Function to start the detection via EWR groups

Defined in:

MANTIS

Return value:

The running detection set

Function to stop MANTIS

Defined in:

MANTIS

Return value:

self

[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] 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] Function to get the self.SAM_Table

Defined in:

MANTIS

Return value:

#table:

table

(Internal) Function to update SAM table and SEAD state

Defined in:

MANTIS

Return value:

self

[Internal] Function to execute the relocation

Defined in:

MANTIS

[internal] Function to set the self.SAM_Table

Defined in:

MANTIS

Parameter:

table

Return value:

self