This page is under construction
Archives/bf1942/levels/TF_Valley_of_Death.rfa
bf1942/levels/TF_Valley_of_Death/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 Autobot_Base 477.6/542.2 480.9/545.5 50 land
aiStrategicArea.create Decepticon_Base 371.5/509.6 374.8/512.9 50 land
aiStrategicArea.create North_Control_Point 404.2/581.8 407.5/585.1 50 land
aiStrategicArea.create South_Control_Point 469.9/494.4 473.2/497.7 50 land


aiStrategicArea.setActive Autobot_Base
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour Decepticon_Base
aiStrategicArea.addNeighbour North_Control_Point
aiStrategicArea.addNeighbour South_Control_Point
aiStrategicArea.setOrderPosition Infantry 481/546
aiStrategicArea.setOrderPosition Tank 481/546
aiStrategicArea.setOrderPosition Car 481/546
aiStrategicArea.setOrderPosition Boat 481/546
aiStrategicArea.setOrderPosition LandingCraft 481/546
aiStrategicArea.setOrderPosition Amphibius 481/546
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 Decepticon_Base
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour Autobot_Base
aiStrategicArea.addNeighbour North_Control_Point
aiStrategicArea.addNeighbour South_Control_Point
aiStrategicArea.setOrderPosition Infantry 375/513
aiStrategicArea.setOrderPosition Tank 375/513
aiStrategicArea.setOrderPosition Car 375/513
aiStrategicArea.setOrderPosition Boat 375/513
aiStrategicArea.setOrderPosition LandingCraft 375/513
aiStrategicArea.setOrderPosition Amphibius 375/513
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 North_Control_Point
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour Autobot_Base
aiStrategicArea.addNeighbour Decepticon_Base
aiStrategicArea.addNeighbour South_Control_Point
aiStrategicArea.setOrderPosition Infantry 408/585
aiStrategicArea.setOrderPosition Tank 408/585
aiStrategicArea.setOrderPosition Car 408/585
aiStrategicArea.setOrderPosition Boat 408/585
aiStrategicArea.setOrderPosition LandingCraft 408/585
aiStrategicArea.setOrderPosition Amphibius 408/585
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 1
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive South_Control_Point
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour Autobot_Base
aiStrategicArea.addNeighbour Decepticon_Base
aiStrategicArea.addNeighbour North_Control_Point
aiStrategicArea.setOrderPosition Infantry 473/498
aiStrategicArea.setOrderPosition Tank 473/498
aiStrategicArea.setOrderPosition Car 473/498
aiStrategicArea.setOrderPosition Boat 473/498
aiStrategicArea.setOrderPosition LandingCraft 473/498
aiStrategicArea.setOrderPosition Amphibius 473/498
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
aiStrategicArea.setSide 2
aiStrategicArea.vehicleSearchRadius 80.0



endIf