Updated Moose.lua

This commit is contained in:
funkyfranky
2022-10-14 16:49:26 +00:00
parent 492c97dbae
commit 2c98595cb2
125 changed files with 6060 additions and 387 deletions

View File

@@ -0,0 +1,40 @@
---
-- Name: DES-010 - Designation of AREAS - Threat Level Prioritization
-- Author: FlightControl
-- Date Created: 24 Apr 2017
--
-- # Situation:
--
-- Demonstrates the designation of units, which are grouped in AREAs.
--
-- A Set of Recce are detecting a large group of units.
-- This test is about the prioritization. First the SAMs should be designated, then the rest.
--
-- # Test cases:
--
-- - Check if the SAMs are designated first.
RecceSetGroup = SET_GROUP:New():FilterPrefixes( "Recce" ):FilterStart()
HQ = GROUP:FindByName( "HQ" )
CC = COMMANDCENTER:New( HQ, "HQ" )
-- Let the RecceSetGroup vehicles in the collection detect targets and group them in AREAS of 1000 meters.
RecceDetection = DETECTION_AREAS:New( RecceSetGroup, 1000 )
-- Create a Attack Set, which contains the human player client slots and CA vehicles.
AttackSet = SET_GROUP:New():FilterPrefixes("Attack"):FilterStart()
RecceDesignation = DESIGNATE:New( CC, RecceDetection, AttackSet )
-- This sets the threat level prioritization on
RecceDesignation:SetThreatLevelPrioritization( true )
-- Set the possible laser codes.
RecceDesignation:SetLaserCodes({1113,1131,1256})
-- Start the detection process in 5 seconds.
RecceDesignation:__Detect( -5 )