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.
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()
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 autorelocation for HQ and EWR objects. |
|
|
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 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 get the self.SAM_Table |
|
|
[Internal] Function to execute the relocation |
|
|
[internal] Function to set the self.SAM_Table |
|
|
Radius of the EWR detection |
|
|
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
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
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 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 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 the SAM start state
Function to start the detection via EWR groups
[internal] Function to get the self.SAM_Table
Defined in:
MANTIS
Return value:
#table:
table
[internal] Function to set the self.SAM_Table