XCOM 2
27 ratings
Berserker AI Fix
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
202.211 KB
23 May, 2016 @ 11:30am
1 Change Note ( view )

Subscribe to download
Berserker AI Fix

Description
Removes the check on Berserker attack scoring whether the opponent is an Alien or not, resolving a problem where Berserkers would not attack your units if they are Mind-Controlled Aliens.

-= TECHNICAL TALK =-

This supplemental useless AI check caused the Berserker to be unable to attack your Mind Controlled units if they are Aliens (not ADVENT). In this case the word "Alien" refers to "Any non-ADVENT unit", not the enemy side as a whole. When TargetIsNotAlien returned FALSE, the function ceased to continue, and the Berserker skips his turn since his target is illegal.

-= COMPATIBILITY WITH OTHER AI MODS =-

If you have a custom AI that overwrites your entire XComAI.INI and this mod doesn't work, you can implement this fix yourself. Remove TargetIsNotAlien from ScoreClosestEnemyIfInRange in DefaultAI.INI, then decrement all childs to the right by 1. (Child[2] becomes Child[1], etc.)

-= LW2 COMPATIBILITY =-

PROBABLY rolled into LW2, don't use.
3 Comments
zin 20 Mar, 2023 @ 3:24pm 
Thanks for letting me know, Giuseppelll. Was about to install it.
Juravis  [author] 7 Jul, 2016 @ 3:49pm 
@GiuseppeIII That's nice. I have a lot of AI stuff but I dont know how to release an entire file that's been completely overwritten to the workshop.
GiuseppeIII 7 Jul, 2016 @ 3:46pm 
Just to let you know, (and if you also want to put it in the mod description) this mod has been incorporated in A Better Advent and A Better AI by DerBK.