This page is under construction
Archives/bf1942/Levels/ff_Backyard_Brawl.rfa
bf1942/levels/ff_Backyard_Brawl/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 AxisBase 857.1/915.9 859.1/917.9 50 land
aiStrategicArea.create AlliedBase 927.1/917.2 929.1/919.2 50 land
aiStrategicArea.setActive AxisBase
aiStrategicArea.addObjectTypeFlag Route
aiStrategicArea.addNeighbour AlliedBase
aiStrategicArea.setOrderPosition Infantry 859/918
aiStrategicArea.setOrderPosition Tank 859/918
aiStrategicArea.setOrderPosition Car 859/918
aiStrategicArea.setOrderPosition Boat 859/918
aiStrategicArea.setOrderPosition LandingCraft 859/918
aiStrategicArea.setOrderPosition Amphibius 859/918
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0
aiStrategicArea.setActive AlliedBase
aiStrategicArea.addObjectTypeFlag Route
aiStrategicArea.addNeighbour AxisBase
aiStrategicArea.setOrderPosition Infantry 929/919
aiStrategicArea.setOrderPosition Tank 929/919
aiStrategicArea.setOrderPosition Car 929/919
aiStrategicArea.setOrderPosition Boat 929/919
aiStrategicArea.setOrderPosition LandingCraft 929/919
aiStrategicArea.setOrderPosition Amphibius 929/919
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 2
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 AxisBase 857.1/915.9 859.1/917.9 50 land
aiStrategicArea.create AlliedBase 927.1/917.2 929.1/919.2 50 land
aiStrategicArea.setActive AxisBase
aiStrategicArea.addObjectTypeFlag Route
aiStrategicArea.addNeighbour AlliedBase
aiStrategicArea.setOrderPosition Infantry 859/918
aiStrategicArea.setOrderPosition Tank 859/918
aiStrategicArea.setOrderPosition Car 859/918
aiStrategicArea.setOrderPosition Boat 859/918
aiStrategicArea.setOrderPosition LandingCraft 859/918
aiStrategicArea.setOrderPosition Amphibius 859/918
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0
aiStrategicArea.setActive AlliedBase
aiStrategicArea.addObjectTypeFlag Route
aiStrategicArea.addNeighbour AxisBase
aiStrategicArea.setOrderPosition Infantry 929/919
aiStrategicArea.setOrderPosition Tank 929/919
aiStrategicArea.setOrderPosition Car 929/919
aiStrategicArea.setOrderPosition Boat 929/919
aiStrategicArea.setOrderPosition LandingCraft 929/919
aiStrategicArea.setOrderPosition Amphibius 929/919
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 2
aiStrategicArea.vehicleSearchRadius 80.0
endIf