AI combat, misc AI improvements, characters can't get stuck inside doors

This commit is contained in:
Regalis
2015-12-03 18:34:35 +02:00
parent 11857f894b
commit 5bcdfa2b56
36 changed files with 461 additions and 292 deletions
@@ -35,14 +35,15 @@ namespace Barotrauma
: base (character, "")
{
this.target = target;
this.repeat = false;
this.repeat = repeat;
}
public AIObjectiveGoTo(Vector2 targetPos, Character character)
public AIObjectiveGoTo(Vector2 simPos, Character character, bool repeat = false)
: base(character, "")
{
this.targetPos = targetPos;
this.targetPos = simPos;
this.repeat = repeat;
}
protected override void Act(float deltaTime)