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 MANTISMoose derived Modular, Automatic and Network capable Targeting and Interception System. |
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. Start up your MANTIS
myredmantis = MANTIS:New("myredmantis","Red SAM","Red EWR",nil,"red",false)
[optional] Use
MANTIS:SetEWRGrouping(radius)MANTIS:SetEWRRange(radius)MANTIS:SetSAMRadius(radius)MANTIS:SetDetectInterval(interval)MANTIS:SetAutoRelocate(hq, ewr)
to fine-tune your setup.
myredmantis:Start()
2. 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 AWACS
- 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)
Global _MANTISdetection |
[internal] Grouping detected objects to 5000m zones
Type(s)
| Fields and Methods inherited from MANTIS | Description |
|---|---|
|
Functional.Detection#DETECTION_AREAS} Detection The #DETECTION_AREAS object |
|
|
Function to check if any object is in the given SAM zone |
|
|
Function to set switch-on/off the debug state |
|
|
Prefix to build the #GROUP_SET for EWR group |
|
|
Function to get the HQ object for further use |
|
MANTIS:New(name, samprefix, ewrprefix, hq, coaltion, dynamic) |
Function instantiate new class |
|
Table of SAM sites |
|
|
Prefix to build the #GROUP_SET for SAM sites |
|
|
The ME name of the HQ object |
|
|
Function to set Advanded Mode |
|
|
Function to set autorelocation for HQ and EWR objects. |
|
|
Function to set the HQ object for further use |
|
|
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 |
|
|
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. |
|
|
Function to set the SAM start state |
|
|
Function to set the SAM start state |
|
|
Function to start the detection via EWR groups |
|
|
Function to stop MANTIS |
|
|
[Internal] Function to determine state of the advanced mode |
|
|
[Internal] Function to check if EWR is (at least partially) alive |
|
|
[Internal] Function to check if HQ is alive |
|
|
[internal] Function to get the self.SAM_Table |
|
|
[Internal] Function to execute the relocation |
|
|
[internal] Function to set the self.SAM_Table |
|
|
Radius of the EWR detection |
|
|
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 |
|
|
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 |
|
|
Name of this Mantis |
|
|
Switch on extra logging |
|
- MANTIS class, extends Core.Base#BASE
Field(s)
Set EWR SET_GROUP
Prefix to build the #GROUP_SET for EWR group
timer for advanced state check
Set SAM SET_GROUP
Table of SAM sites
Prefix to build the #GROUP_SET for SAM sites
The ME name of the HQ object
Radius of the EWR detection
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
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
Name of this Mantis
Switch on extra logging
@field #string version
Function(s)
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 instantiate new class
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 and AWACS 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)
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
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 the HQ object for further use
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 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
Function to set the SAM start state
Function to start the detection via EWR groups
[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 set the self.SAM_Table