This page is under construction
archives/bf1942/levels/Hai_Van_Pass.rfa
bf1942/levels/Hai_Van_Pass/AI/StrategicAreas.con
rem *******************************************************
rem Hai Van Pass - AI'10 by Lotte|EoD
rem *******************************************************

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 NVA_Base 1327.4/1697 1352.4/1722 80 land
aiStrategicArea.create US_Airbase 566.4/227.4 591.4/252.4 80 land
aiStrategicArea.create Temple_Ruins 626.1/1358.6 651.1/1383.6 150 land
aiStrategicArea.create Fort_Dam_Sa_Hoy 668.3/621.4 693.3/646.4 150 land
aiStrategicArea.create Hai_Van_Beach 1122/1101.6 1142/1131.6 150 land
aiStrategicArea.create Hom_Sa_Mot 1041.5/516.6 1076.5/551.6 150 land
aiStrategicArea.create VCRoute 812/1800 830/1810 10 land

rem *** Create landingzones air ***
AILandingZone.createLandingZone lzA 626.1/1358.6 651.1/1383.6 LZZMax
AILandingZone.createLandingZone lzB 668.3/621.4 693.3/646.4 LZZMax

rem *** Create landingzones sea ***
AILandingZone.createLandingZone lzBeach 1150/1030 1220/1210 LZXMin

rem *** Build strategic areas ***

aiStrategicArea.setActive NVA_Base
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour US_Airbase
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.setSide 1
aiStrategicArea.setTakeable 2 0
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive US_Airbase
aiStrategicArea.addObjectTypeFlag Base
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour NVA_Base
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.setSide 2
aiStrategicArea.setTakeable 1 0
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive Hai_Van_Beach
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour NVA_Base
aiStrategicArea.addNeighbour Temple_Ruins
aiStrategicArea.addNeighbour Fort_Dam_Sa_Hoy
aiStrategicArea.addNeighbour Hom_Sa_Mot
aiStrategicArea.setOrderPosition Boat 1195/1132
aiStrategicArea.setOrderPosition LandingCraft 1195/1132
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.addAllowedVehicleGroup sea
AIStrategicArea.attachLandingZone lzBeach
AIStrategicArea.addLandingZoneUnit LandingCraft
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive Hom_Sa_Mot
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour US_Airbase
aiStrategicArea.addNeighbour Temple_Ruins
aiStrategicArea.addNeighbour Fort_Dam_Sa_Hoy
aiStrategicArea.addNeighbour Hai_Van_Beach
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive Temple_Ruins
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour VCRoute
aiStrategicArea.addNeighbour NVA_Base
aiStrategicArea.addNeighbour Fort_Dam_Sa_Hoy
aiStrategicArea.addNeighbour Hai_Van_Beach
aiStrategicArea.addNeighbour Hom_Sa_Mot
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive Fort_Dam_Sa_Hoy
aiStrategicArea.addObjectTypeFlag ControlPoint
aiStrategicArea.addNeighbour Temple_Ruins
aiStrategicArea.addNeighbour Hai_Van_Beach
aiStrategicArea.addNeighbour Hom_Sa_Mot
aiStrategicArea.addNeighbour VCRoute
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.addAllowedVehicleGroup infantry
aiStrategicArea.addAllowedVehicleGroup any
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 80.0

aiStrategicArea.setActive VCRoute
aiStrategicArea.addObjectTypeFlag Route
aiStrategicArea.addNeighbour NVA_Base
aiStrategicArea.addAllowedVehicleGroup land
aiStrategicArea.setSide 0

endIf