XCOM 2
A Better AI
Turret Overwatch with XCOM recently in sight
Here's the (whole) code I use for my mod:

(File: XComAI.ini)
[XComGame.X2AIBTBehaviorTree] -Behaviors=(BehaviorName="AdventTurret::CharacterRoot", NodeType=Selector, Child[0]=Turret_RedAlert, Child[1]=SkipMove) ; , Child[1]=TryOverwatch) +Behaviors=(BehaviorName="AdventTurret::CharacterRoot", NodeType=Selector, Child[0]=Turret_RedAlert, Child[1]=Turret_OrangeAlert, Child[2]=SkipMove) -Behaviors=(BehaviorName=TurretRedAbilitySelector, NodeType=Selector, Child[0]=MimicBeaconBehavior, Child[1]=TurretRedFirstActionSelector, Child[2]=ConsiderTakingOverwatch) +Behaviors=(BehaviorName=TurretRedAbilitySelector, NodeType=Selector, Child[0]=MimicBeaconBehavior, Child[1]=TurretRedFirstActionSelector, Child[2]=TryOverwatch) +Behaviors=(BehaviorName=Turret_OrangeAlert, NodeType=Sequence, Child[0]=IsOrangeAlert, Child[1]=TurretOrangeAbilitySelector) +Behaviors=(BehaviorName=TurretOrangeAbilitySelector, NodeType=Selector, Child[0]=NeedsReload, Child[1]=TryOverwatch)

It basically makes them overwatch instead of just considering it (as your mod already does I think) and then adds the orange alert modifier to also go into overwatch. Orange alert is basically after it recently saw an XCOM soldier or has been shot at, but currently doesn't have any enemy in sight.
I've also seen another mod add 4 tiles of squad sight to the towers which I also found interesting.
< >
Näytetään 1-2 / 2 kommentista
DerBK  [kehittäjä] 25.4.2016 klo 12.35 
Squadsight for turrets does indeed sound interesting. I was experimenting with Turret variants for A Better Advent, but strange stuff happened with how the Turrets spawn in special places only.

Wanted to make a sniper tower. :)

Aaand now i know what exactly Orange Alert is. Found that in the files somewhere but forgot about it later. I think i can use that ... maybe even for more than just the turrets.

I assume that an enemy that flees enters orange alert once it's out of sight? Sounds like a good opportunity for an overwatch or something. Maybe he can even show the other group that he fled to where the soldiers are? Oooooh, interesting. I have to experiment a bit with that!

Something that i don't like is how Overwatch will always center the camera on the unit and show the flyover text, even when that unit is in the fog of war. I made code for enemies that are out of sight and alerted to make an overwatch trap. Worked really well, but was kinda pointless as long as there's the visualization attached...
Yeah the overwatch popup is a bit stupid when it should be in the fog.

Anyway, do with the code whatever you like, you're welcome to use it as is if you want. :)
Viimeisin muokkaaja on RussischerZar; 25.4.2016 klo 14.56
< >
Näytetään 1-2 / 2 kommentista
Sivua kohden: 1530 50