This page is under construction
archives/bf1942/levels/Midway.rfa
bf1942/levels/Midway/AI/StrategicAreas.con
rem *******************************************************
rem Midway - AI'11 by Lotte|EoD
rem *******************************************************

if v_arg1 == host

rem *** Create vehicle groups ***
aiSettings.createVehicleGroup land
aiSettings.createVehicleGroup infantry
aiSettings.createVehicleGroup any
aiSettings.createVehicleGroup sea

rem *** Add vehicles to the groups ***
aiSettings.addVehicleToVehicleGroup 0 land
aiSettings.addVehicleToVehicleGroup 1 any
aiSettings.addVehicleToVehicleGroup 2 sea
aiSettings.addVehicleToVehicleGroup 3 infantry
aiSettings.addVehicleToVehicleGroup 4 any
aiSettings.addVehicleToVehicleGroup 5 land
aiSettings.addVehicleToVehicleGroup 6 land
aiSettings.addVehicleToVehicleGroup 7 any
aiSettings.addVehicleToVehicleGroup 8 any
aiSettings.addVehicleToVehicleGroup 9 any
aiSettings.addVehicleToVehicleGroup 10 any
aiSettings.addVehicleToVehicleGroup 11 any
aiSettings.addVehicleToVehicleGroup 12 sea
aiSettings.addVehicleToVehicleGroup 13 any
aiSettings.addVehicleToVehicleGroup 14 land
aiSettings.addVehicleToVehicleGroup 15 any
aiSettings.addVehicleToVehicleGroup 16 any
aiSettings.addVehicleToVehicleGroup 17 any

rem *** Create categories ***
aiStrategicArea.createNewCategory land
aiStrategicArea.createNewCategory sea

rem *** Create strategic areas ***
aiStrategicArea.create Airfield 2058.8/2092.7 2078.8/2112.7 100 land
aiStrategicArea.create Coastal_Bunker 1817.4/1952.9 1837.4/1972.9 100 land
aiStrategicArea.create Northern_Allied_Base 2614.1/2829.3 2639.1/2854.3 10 land
aiStrategicArea.create Temple 1856.2/2124.6 1871.2/2139.6 100 land
aiStrategicArea.create Southern_Allied_Base 2570.6/1239.2 2585.6/1254.2 10 land

rem *** Create landingzones air ***
AILandingZone.createLandingZone lzA 1750/2110 1840/2210 LZZMax
AILandingZone.createLandingZone lzB 2100/2080 2200/2180 LZZMax
AILandingZone.createLandingZone lzC 1990/1940 2090/2040 LZZMax
AILandingZone.createLandingZone lzD 1830/1880 1930/1980 LZZMax

rem *** Create landingzones sea ***
AILandingZone.createLandingZone lzAirfield1 1900/2220 2150/2320 LZZMin
AILandingZone.createLandingZone lzAirfield2 2240/1920 2320/2020 LZXMin
AILandingZone.createLandingZone lzAirfield3 2000/1730 2200/1860 LZZMax
AILandingZone.createLandingZone lzBeach 1680/1890 1810/1990 LZXMax
AILandingZone.createLandingZone lzTemple 1670/2130 1800/2210 LZXMax

rem *** Build strategic areas ***

aiStrategicArea.setActive Airfield
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour Temple
aiStrategicArea.addNeighbour Coastal_Bunker
aiStrategicArea.addNeighbour Northern_Allied_Base
rem Infantry 2079/2113
rem Tank 2080/2120
aiStrategicArea.setOrderPosition Boat 2060/2280
aiStrategicArea.setOrderPosition LandingCraft 2060/2280
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
AIStrategicArea.attachLandingZone lzAirfield1
AIStrategicArea.attachLandingZone lzAirfield2
AIStrategicArea.attachLandingZone lzAirfield3
AIStrategicArea.addLandingZoneUnit LandingCraft
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive Coastal_Bunker
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour Airfield
aiStrategicArea.addNeighbour Temple
aiStrategicArea.addNeighbour Southern_Allied_Base
rem Infantry 1837/1973
rem Tank 1840/1965
aiStrategicArea.setOrderPosition Boat 1740/1970
aiStrategicArea.setOrderPosition LandingCraft 1740/1970
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
AIStrategicArea.attachLandingZone lzBeach
AIStrategicArea.addLandingZoneUnit LandingCraft
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive Northern_Allied_Base
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour Southern_Allied_Base
rem Infantry 2639/2854
rem Tank 2639/2854
aiStrategicArea.setOrderPosition Boat 2545/2705
aiStrategicArea.setOrderPosition LandingCraft 2545/2705
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 2
aiStrategicArea.setTakeable 1 0
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive Temple
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour Airfield
aiStrategicArea.addNeighbour Coastal_Bunker
rem Infantry 1871/2140
rem Tank 1875/2145
aiStrategicArea.setOrderPosition Boat 1710/2210
aiStrategicArea.setOrderPosition LandingCraft 1710/2210
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
AIStrategicArea.attachLandingZone lzTemple
AIStrategicArea.addLandingZoneUnit LandingCraft
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive Southern_Allied_Base
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour Northern_Allied_Base
rem Infantry 2586/1254
rem Tank 2586/1254
aiStrategicArea.setOrderPosition Boat 2650/1365
aiStrategicArea.setOrderPosition LandingCraft 2650/1365
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 2
aiStrategicArea.setTakeable 1 0
aiStrategicArea.vehicleSearchRadius 80.0

endIf