--- -- Name: AID-070 - AI_A2A - CAP - Player Exit -- Author: FlightControl -- Date Created: 30 Oct 2017 -- -- Test Scenario(s): -- -- Now take a seat in the client plane as a player. -- Do the following tests after the plane has been spawned. -- 1. Immediately exit the plane. -- 2. Only exit the plane once the defender is engaged. -- 3. Let the defender shoot you. -- In all these scenarios, observe if the defender is continuing its patrol. -- Define a SET_GROUP object that builds a collection of groups that define the EWR network. -- Here we build the network with all the groups that have a name starting with DF CCCP AWACS and DF CCCP EWR. DetectionSetGroup = SET_GROUP:New() DetectionSetGroup:FilterPrefixes( { "DF CCCP AWACS", "DF CCCP EWR" } ) DetectionSetGroup:FilterStart() Detection = DETECTION_AREAS:New( DetectionSetGroup, 30000 ) -- Setup the A2A dispatcher, and initialize it. A2ADispatcher = AI_A2A_DISPATCHER:New( Detection ) A2ADispatcher:SetTacticalDisplay( true ) -- Setup the squadrons. A2ADispatcher:SetSquadron( "Kras1", AIRBASE.Caucasus.Krasnodar_Pashkovsky, { "SQ CCCP SU-27" }, 20 ) CAPZoneWest = ZONE_POLYGON:New( "CAP Zone West", GROUP:FindByName( "CAP Zone West" ) ) A2ADispatcher:SetSquadronCap( "Kras1", CAPZoneWest, 4000, 8000, 600, 800, 800, 1200, "BARO" ) A2ADispatcher:SetSquadronCapInterval( "Kras1", 1, 30, 120, 1 ) A2ADispatcher:SetDefaultTakeoffInAir() A2ADispatcher:SetDefaultLandingNearAirbase()