我想大家都遇到过添加新的控制点然后单机测试结果Bot不会攻击该据点的问题吧,现在我来说下解决方法(高手肯定知道,不知道表明你还不算是高手)
在你修改数据的Coop设置目录下(有GamePlayObjects.con的目录)有一个叫AI的Folder,打开它,会发现另一个文件,叫:StrategicAreas.ai
打开后你会看到一下内容(我以原版的大庆油田16人地图为例子)
rem *** Create strategic areas ***
aiStrategicArea.createFromControlPoint CPNAME_DO_SP16_oilcisterns 1703 50
(AI攻击地点名称,没太大作用)(控制点编号,必须对应)(该控制点的战略重要性)
aiStrategicArea.layer 18
(AI攻击时使用的Layer,如果layer设定不对AI可能会不动甚至跳出)
aiStrategicArea.createFromControlPoint CPNAME_DO_SP16_oldcity 1702 50
aiStrategicArea.layer 18
aiStrategicArea.createFromControlPoint CPNAME_DO_SP16_refinery 1701 50
aiStrategicArea.layer 18
aiStrategicArea.setActive CPNAME_DO_SP16_oilcisterns
AIStrategicArea.addNeighbour CPNAME_DO_SP16_refinery
(与他邻近的 AI攻击地点 )
AIStrategicArea.addNeighbour CPNAME_DO_SP16_oldcity
aiStrategicArea.addObjectTypeFlag ControlPoint
(据点类型 一般为 ControlPoint )
AIStrategicArea.setOrderPosition Infantry 68.84/145.119/-43.91
(步兵夺点时站立的位置)
AIStrategicArea.setOrderPosition Vehicle 52.3502/144.394/-48.8887
(载具夺点时占据的位置)(或运输直升机跳伞位置)
aiStrategicArea.setSide 0
(设定所属方,如果设定为某一方可能会被指挥官忽略)
aiStrategicArea.vehicleSearchRadius 11.3137
(Bot在该区域搜索载具的范围[如果在这个范围内有载具Bot就会进入其中])
aiStrategicArea.setActive CPNAME_DO_SP16_oldcity
AIStrategicArea.addNeighbour CPNAME_DO_SP16_oilcisterns
aiStrategicArea.addObjectTypeFlag ControlPoint
AIStrategicArea.setOrderPosition Infantry 130/152.486/255
AIStrategicArea.setOrderPosition Vehicle 129.37/152.496/249.059
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 14.1421
aiStrategicArea.setActive CPNAME_DO_SP16_refinery
AIStrategicArea.addNeighbour CPNAME_DO_SP16_oilcisterns
aiStrategicArea.addObjectTypeFlag ControlPoint
AIStrategicArea.setOrderPosition Infantry -52.518/144.485/-243.046
AIStrategicArea.setOrderPosition Vehicle -48.5987/144.485/-237.996
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 14.1421
aiStrategicArea.addWayPoint 104.953/155.795/34.0999 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
(添加路径点,一定程度上控制着电脑指挥官攻击设定)(Bot在这一地点或附近会开始向指定据点攻击,完成之后才会执行其他命令,尽管Bot小队长回答Confirm)(路径点设定一定要合理,否则会弹出)
aiStrategicArea.addWayPoint 133.874/160.666/44.5276 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
aiStrategicArea.addWayPoint 157.118/158.661/33.2643 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
aiStrategicArea.addWayPoint 109.972/144.394/-15.8698 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
aiStrategicArea.addWayPoint 29.0493/144.394/-17.4387 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
aiStrategicArea.addWayPoint 93.8812/145.798/168.909 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
aiStrategicArea.addWayPoint 132.916/153.076/197.401 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
aiStrategicArea.addWayPoint 176.034/152.508/205.356 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
aiStrategicArea.addWayPoint 100.009/151.638/203.778 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
aiStrategicArea.addWayPoint 88.5302/152.496/242.912 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
aiStrategicArea.addWayPoint 159.734/142.85/126.849 Vehicle CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
aiStrategicArea.addWayPoint 46.6953/142.647/93.0785 Vehicle CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
aiStrategicArea.addWayPoint 43.663/144.394/0.002808 Vehicle CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
aiStrategicArea.addWayPoint 41.7633/144.394/-0.141235 Vehicle CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_oldcity
aiStrategicArea.addWayPoint 102.462/144.394/-76.7239 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_refinery
aiStrategicArea.addWayPoint -4.70978/144.394/-75.0139 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_refinery
aiStrategicArea.addWayPoint 29.4244/144.493/-184.886 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_refinery
aiStrategicArea.addWayPoint 55.5398/144.485/-229.532 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_refinery
aiStrategicArea.addWayPoint -19.7013/144.488/-203.445 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_refinery
aiStrategicArea.addWayPoint 27.7694/144.485/-241.45 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_refinery
aiStrategicArea.addWayPoint -41.7736/144.081/-100.965 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_refinery
aiStrategicArea.addWayPoint 133.606/143.621/-136.559 Infantry CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_refinery
aiStrategicArea.addWayPoint 40.2091/144.394/-146.19 Vehicle CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_refinery
aiStrategicArea.addWayPoint 42.5963/144.394/-106.447 Vehicle CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_refinery
aiStrategicArea.addWayPoint -44.1114/144.076/-108.659 Vehicle CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_refinery
aiStrategicArea.addWayPoint 130.932/144.394/-97.0349 Vehicle CPNAME_DO_SP16_oilcisterns CPNAME_DO_SP16_refinery
如果你要新增加一个据点就必须要修改这个文件,怎样修改并添加呢?
看这个:
aiStrategicArea.createFromControlPoint (你新添加的据点名称) (据点编号) (AI评估战略价值)
aiStrategicArea.layer (layers,要使用步战layers)
aiStrategicArea.setActive (要和刚才设定的名称相同)
AIStrategicArea.addNeighbour (邻近的据点,参考你添加的据点所在地)
aiStrategicArea.addObjectTypeFlag ControlPoint
AIStrategicArea.setOrderPosition Infantry ××.××/××.××/××.××
(设定地点在你新添加的据点附近,不能与该据点的所在地相同,否则可能会出错)
AIStrategicArea.setOrderPosition Vehicle ××.××/××.××/××.××
(同上,但是必须设置得更远,小心塞车与车祸……)
aiStrategicArea.setSide 0(可填写数值:0/1/2)
(如果是固定据点,否则,千万别动这个数值)
aiStrategicArea.vehicleSearchRadius ××.××
(AI搜索载具的范围,这个你随便写,但是要注意观察AI触发情况,最好不要超过25)
(提示:1 不要乱动路径点设定,路径点设定应该是由单机制作工具编写,如果地点选择不对会导致跳出 2 你增加的据点必须要在其他据点定义上写上 临近据点 3 不要把战略评估价值写的太高,否则指挥官会忽略其他全部据点的!)
|
|