This page is under construction
Archives/bf1942/levels/Rush_Hour.rfa
bf1942/levels/Rush_Hour/AI/StrategicAreas.con
wif 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 The_Burbs 405/209 418.5/221.5 100 land
aiStrategicArea.create Intersection1 448/268 456/276 90 land
aiStrategicArea.create Intersection2 508/271 516.5/278 80 land
aiStrategicArea.create The_Bridge 502/472 514/526.5 10 land
aiStrategicArea.create Intersection3 504/704 512.5/712 90 land
aiStrategicArea.create Pork_Chop_Packers 640/708 656/724 100 land


aiStrategicArea.setActive The_Burbs
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addNeighbour Intersection1
aiStrategicArea.setOrderPosition Infantry 418/222
aiStrategicArea.setOrderPosition Tank 418/222
aiStrategicArea.setOrderPosition Car 418/222
aiStrategicArea.setOrderPosition Boat 418/222
aiStrategicArea.setOrderPosition LandingCraft 418/222
aiStrategicArea.setOrderPosition Amphibius 418/222
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 2
aiStrategicArea.vehicleSearchRadius 120.0

aiStrategicArea.setActive Intersection1
aiStrategicArea.addObjectTypeFlag Route
aiStrategicArea.addNeighbour Intersection2
aiStrategicArea.addNeighbour The_Burbs
aiStrategicArea.setOrderPosition Infantry 418/222
aiStrategicArea.setOrderPosition Tank 418/222
aiStrategicArea.setOrderPosition Car 418/222
aiStrategicArea.setOrderPosition Boat 418/222
aiStrategicArea.setOrderPosition LandingCraft 418/222
aiStrategicArea.setOrderPosition Amphibius 418/222
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea

aiStrategicArea.setActive Intersection2
aiStrategicArea.addObjectTypeFlag Route
aiStrategicArea.addNeighbour Intersection1
aiStrategicArea.addNeighbour Intersection3
rem aiStrategicArea.addNeighbour The_Bridge
aiStrategicArea.setOrderPosition Infantry 418/222
aiStrategicArea.setOrderPosition Tank 418/222
aiStrategicArea.setOrderPosition Car 418/222
aiStrategicArea.setOrderPosition Boat 418/222
aiStrategicArea.setOrderPosition LandingCraft 418/222
aiStrategicArea.setOrderPosition Amphibius 418/222
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea

aiStrategicArea.setActive The_Bridge
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addObjectTypeFlag ChokePoint
aiStrategicArea.addNeighbour Intersection2
aiStrategicArea.addNeighbour Intersection3
aiStrategicArea.setOrderPosition Infantry 518/520
aiStrategicArea.setOrderPosition Tank 518/520
aiStrategicArea.setOrderPosition Car 518/520
aiStrategicArea.setOrderPosition Boat 518/520
aiStrategicArea.setOrderPosition LandingCraft 518/520
aiStrategicArea.setOrderPosition Amphibius 518/520
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea

aiStrategicArea.setActive Intersection3
aiStrategicArea.addObjectTypeFlag Route
aiStrategicArea.addNeighbour Pork_Chop_Packers
aiStrategicArea.addNeighbour Intersection2
rem aiStrategicArea.addNeighbour The_Bridge
aiStrategicArea.setOrderPosition Infantry 418/222
aiStrategicArea.setOrderPosition Tank 418/222
aiStrategicArea.setOrderPosition Car 418/222
aiStrategicArea.setOrderPosition Boat 418/222
aiStrategicArea.setOrderPosition LandingCraft 418/222
aiStrategicArea.setOrderPosition Amphibius 418/222
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea

aiStrategicArea.setActive Pork_Chop_Packers
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addNeighbour Intersection3
aiStrategicArea.setOrderPosition Infantry 656/724
aiStrategicArea.setOrderPosition Tank 656/724
aiStrategicArea.setOrderPosition Car 656/724
aiStrategicArea.setOrderPosition Boat 656/724
aiStrategicArea.setOrderPosition LandingCraft 656/724
aiStrategicArea.setOrderPosition Amphibius 656/724
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 120.0





endIf