This page is under construction
Archives/bf1942/levels/maps - with documentation/The Gauntlet/The_Gauntlet.rfa
bf1942/levels/The_Gauntlet/AI/StrategicAreas.con
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 Fleet 223.8/973.8 233.8/983.8 50 sea
aiStrategicArea.create southaf 1303/352.6 1313/362.6 50 land
aiStrategicArea.create northaf 1439.3/1447.3 1449.3/1457.3 50 land
aiStrategicArea.create Center 1356/928 1426/1003 50 sea

aiStrategicArea.setActive Fleet
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour southaf
aiStrategicArea.addNeighbour northaf
aiStrategicArea.setOrderPosition Infantry 234/984
aiStrategicArea.setOrderPosition Tank 234/984
aiStrategicArea.setOrderPosition Car 234/984
aiStrategicArea.setOrderPosition Boat 234/984
aiStrategicArea.setOrderPosition LandingCraft 234/984
aiStrategicArea.setOrderPosition Amphibius 234/984
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 2
aiStrategicArea.setTakeable 1 0
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive Center
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour southaf
aiStrategicArea.addNeighbour northaf
aiStrategicArea.setOrderPosition Infantry 234/984
aiStrategicArea.setOrderPosition Tank 234/984
aiStrategicArea.setOrderPosition Car 234/984
aiStrategicArea.setOrderPosition Boat 234/984
aiStrategicArea.setOrderPosition LandingCraft 234/984
aiStrategicArea.setOrderPosition Amphibius 234/984
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 2
aiStrategicArea.setTakeable 1 0
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive southaf
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour Fleet
aiStrategicArea.addNeighbour northaf
aiStrategicArea.setOrderPosition Infantry 1313/363
aiStrategicArea.setOrderPosition Tank 1313/363
aiStrategicArea.setOrderPosition Car 1313/363
aiStrategicArea.setOrderPosition Boat 1313/363
aiStrategicArea.setOrderPosition LandingCraft 1313/363
aiStrategicArea.setOrderPosition Amphibius 1313/363
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.setTakeable 2 0
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive northaf
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour Fleet
aiStrategicArea.addNeighbour southaf
aiStrategicArea.setOrderPosition Infantry 1449/1457
aiStrategicArea.setOrderPosition Tank 1449/1457
aiStrategicArea.setOrderPosition Car 1449/1457
aiStrategicArea.setOrderPosition Boat 1449/1457
aiStrategicArea.setOrderPosition LandingCraft 1449/1457
aiStrategicArea.setOrderPosition Amphibius 1449/1457
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.setTakeable 2 0
aiStrategicArea.vehicleSearchRadius 80.0



endIf