This page is under construction
Archives/bf1942/levels/Battle of Foy/Battle_of_Foy.rfa
bf1942/levels/Battle_of_Foy/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 alliedbase 321.2/307.5 323.7/310 50 land
aiStrategicArea.create south_point 563.2/261.9 566.7/265.4 50 land
aiStrategicArea.create lumbermill 468.1/432.1 472.1/436.1 50 land
aiStrategicArea.create west_point 420.3/542.2 424.3/546.2 50 land
aiStrategicArea.create east_point 596.6/504 600.1/507.5 50 land
aiStrategicArea.create north_point 501.2/661.8 504.2/664.8 50 land
aiStrategicArea.setActive alliedbase
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour south_point
aiStrategicArea.addNeighbour lumbermill
aiStrategicArea.addNeighbour west_point
aiStrategicArea.addNeighbour east_point
aiStrategicArea.addNeighbour north_point
aiStrategicArea.setOrderPosition Infantry 324/310
aiStrategicArea.setOrderPosition Car 324/310
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 south_point
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour alliedbase
aiStrategicArea.addNeighbour lumbermill
aiStrategicArea.addNeighbour west_point
aiStrategicArea.addNeighbour east_point
aiStrategicArea.addNeighbour north_point
aiStrategicArea.setOrderPosition Infantry 567/265
aiStrategicArea.setOrderPosition Car 567/265
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0
aiStrategicArea.setActive lumbermill
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour alliedbase
aiStrategicArea.addNeighbour south_point
aiStrategicArea.addNeighbour west_point
aiStrategicArea.addNeighbour east_point
aiStrategicArea.addNeighbour north_point
aiStrategicArea.setOrderPosition Infantry 472/436
aiStrategicArea.setOrderPosition Car 472/436
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0
aiStrategicArea.setActive west_point
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour alliedbase
aiStrategicArea.addNeighbour south_point
aiStrategicArea.addNeighbour lumbermill
aiStrategicArea.addNeighbour east_point
aiStrategicArea.addNeighbour north_point
aiStrategicArea.setOrderPosition Infantry 424/546
aiStrategicArea.setOrderPosition Car 424/546
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0
aiStrategicArea.setActive east_point
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour alliedbase
aiStrategicArea.addNeighbour south_point
aiStrategicArea.addNeighbour lumbermill
aiStrategicArea.addNeighbour west_point
aiStrategicArea.addNeighbour north_point
aiStrategicArea.setOrderPosition Infantry 600/508
aiStrategicArea.setOrderPosition Car 600/508
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0
aiStrategicArea.setActive north_point
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour alliedbase
aiStrategicArea.addNeighbour south_point
aiStrategicArea.addNeighbour lumbermill
aiStrategicArea.addNeighbour west_point
aiStrategicArea.addNeighbour east_point
aiStrategicArea.setOrderPosition Infantry 504/665
aiStrategicArea.setOrderPosition Car 504/665
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0
endIf
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 alliedbase 321.2/307.5 323.7/310 50 land
aiStrategicArea.create south_point 563.2/261.9 566.7/265.4 50 land
aiStrategicArea.create lumbermill 468.1/432.1 472.1/436.1 50 land
aiStrategicArea.create west_point 420.3/542.2 424.3/546.2 50 land
aiStrategicArea.create east_point 596.6/504 600.1/507.5 50 land
aiStrategicArea.create north_point 501.2/661.8 504.2/664.8 50 land
aiStrategicArea.setActive alliedbase
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour south_point
aiStrategicArea.addNeighbour lumbermill
aiStrategicArea.addNeighbour west_point
aiStrategicArea.addNeighbour east_point
aiStrategicArea.addNeighbour north_point
aiStrategicArea.setOrderPosition Infantry 324/310
aiStrategicArea.setOrderPosition Car 324/310
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 south_point
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour alliedbase
aiStrategicArea.addNeighbour lumbermill
aiStrategicArea.addNeighbour west_point
aiStrategicArea.addNeighbour east_point
aiStrategicArea.addNeighbour north_point
aiStrategicArea.setOrderPosition Infantry 567/265
aiStrategicArea.setOrderPosition Car 567/265
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0
aiStrategicArea.setActive lumbermill
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour alliedbase
aiStrategicArea.addNeighbour south_point
aiStrategicArea.addNeighbour west_point
aiStrategicArea.addNeighbour east_point
aiStrategicArea.addNeighbour north_point
aiStrategicArea.setOrderPosition Infantry 472/436
aiStrategicArea.setOrderPosition Car 472/436
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0
aiStrategicArea.setActive west_point
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour alliedbase
aiStrategicArea.addNeighbour south_point
aiStrategicArea.addNeighbour lumbermill
aiStrategicArea.addNeighbour east_point
aiStrategicArea.addNeighbour north_point
aiStrategicArea.setOrderPosition Infantry 424/546
aiStrategicArea.setOrderPosition Car 424/546
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0
aiStrategicArea.setActive east_point
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour alliedbase
aiStrategicArea.addNeighbour south_point
aiStrategicArea.addNeighbour lumbermill
aiStrategicArea.addNeighbour west_point
aiStrategicArea.addNeighbour north_point
aiStrategicArea.setOrderPosition Infantry 600/508
aiStrategicArea.setOrderPosition Car 600/508
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0
aiStrategicArea.setActive north_point
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour alliedbase
aiStrategicArea.addNeighbour south_point
aiStrategicArea.addNeighbour lumbermill
aiStrategicArea.addNeighbour west_point
aiStrategicArea.addNeighbour east_point
aiStrategicArea.setOrderPosition Infantry 504/665
aiStrategicArea.setOrderPosition Car 504/665
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0
endIf