[WOTC] Additional AI Behaviors

If you liked this item, please rate it up on Steam Workshop page.

Author: RedDobe

Last revision: 1 Aug, 2021 at 04:38 UTC

File size: 119.16 KB

On Steam Workshop

Description:

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.

Download
Required DLC:

These DLC should be installed in order to use this item.


XCOM 2: War of the Chosen