XCOM 2
51 个评价
[WOTC] Additional AI Behaviors
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
119.159 KB
2019 年 11 月 26 日 下午 6:00
2021 年 7 月 31 日 下午 9:38
5 项改动说明 ( 查看 )
您需要 DLC 才能使用该物品。

订阅以下载
[WOTC] Additional AI Behaviors

在 RedDobe 的 1 个合集中
RedDobe V6.0 (Everything you need for a unique fresh campaign)
251 件物品
描述
Creating New Actions and Conditions for the AI BT. At the time there is only one new behavior, TryStandardShotOnDestructible that modders and players can add to their ai behavior trees. This behavior allows enemy units to target and shoot destructible targets when their enemies are in the blast radius, the same way Xcom can. See XcomAI.ini for more info on how to add this to your bt trees.

For AI Mods who want to include this in their mod Add the X2AIBT_AdditionalAIActions.uc and X2AIBT_AdditionalAIConditions.uc files to your classes folder. Open this mods XComAI.ini and copy and paste the all of the code below the first line into your mods XComAI.ini Then for the following two lines:
+CustomNodes=(NodeTypeString="AddCondition", ExtendsFromType="Condition", ClassName="AdditionalAIBehaviors.X2AIBT_AdditionalAIConditions")
+CustomNodes=(NodeTypeString="AddAction", ExtendsFromType="Action", ClassName="AdditionalAIBehaviors.X2AIBT_AdditionalAIActions")

Replace AdditionalAIBehaviors with your mod's class folder name that you inserted X2AIBT_AdditionalAIActions.uc and X2AIBT_AdditionalAIConditions.uc in.
16 条留言
RedDobe  [作者] 2019 年 11 月 30 日 上午 7:02 
@Syro System - That's correct. What you could do is edit or mod your own XComAI.ini and insert it to TryShootOrReloadOrOverwatch and TryShootOrReload as Child [0], that's what I am going to do for the timebeing.
@DerBK - My pleasure. Looking forward to it.
DerBK 2019 年 11 月 30 日 上午 5:59 
The behavior of enemies shooting at explodey barrels will be integrated into ABA soon.
Thanks for doing the dirty work, RedDobe :)
Syro System 2019 年 11 月 30 日 上午 4:33 
Just to make sure I'm understanding this correctly, this is a mod meant to be used by people who code mods right?
It won't take effect if I just play a vanilla game and use only this mod?
RedDobe  [作者] 2019 年 11 月 28 日 下午 4:47 
@MrMister - update posted to reflect your suggestions as I didn't even consider that once adding your first suggestion.
Star¤Dagger 2019 年 11 月 28 日 下午 3:25 
@Rockfire X : He is doing some of the best work, I look forward to it to, though for some reason my infirmary order DOUBLE the bandages after reading your post!
MrMister 2019 年 11 月 28 日 下午 3:07 
Also, in the case of 1 ally and at least 2 booguies - make sure that the ally is, yoy know, not self. And if not much harder to code, not chosen (it might still be worth it to ADVENT, but it very probably won't be worth it to the individual doing the shooting).
Rockfire ✘ 2019 年 11 月 27 日 下午 5:52 
I can only fear for what advent avengers plans are for this.
RedDobe  [作者] 2019 年 11 月 27 日 上午 10:01 
MrMister - Was considering that already, yes I can.
MrMister 2019 年 11 月 27 日 上午 8:08 
Could you add another situation for firing when there is 1 friendly in range of explosion but at least 2 non-Lost booguies too?
AaronOnMoon 2019 年 11 月 26 日 下午 9:31 
@RedDobe
That's awesome, I love it when the AI gets a new tool under their belt, can't wait to see what Advent Avenger can do with this.

Imagine this, you're fighting with a pod of troopers, but then the chosen hunter shows up he's somewhere in the shadows, the troopers pin you down near a gas station, your rookie and squaddie are suppressed and stuck right behind one of the stations pumps, you hear a hook in the distance then BOOM, your squaddie is dead and your rookie is injured, all thanks to the hunter, that would be so cool!