(cf495e03c) Check the visibility to the target when engaging (the distance is not enough, if there's something blocking the line of sight).
This commit is contained in:
@@ -260,7 +260,8 @@ namespace Barotrauma
|
||||
followTargetObjective = new AIObjectiveGoTo(Enemy, character, objectiveManager, repeat: true, getDivingGearIfNeeded: true, priorityModifier: PriorityModifier)
|
||||
{
|
||||
AllowGoingOutside = true,
|
||||
IgnoreIfTargetDead = true
|
||||
IgnoreIfTargetDead = true,
|
||||
CheckVisibility = true
|
||||
};
|
||||
}
|
||||
if (WeaponComponent is RangedWeapon)
|
||||
|
||||
Reference in New Issue
Block a user