(65debb5e8) Remove HasAccessToPath method. Add CanAccessThroughDoor method and use it in GetNodePenalty method. Shouldn't anymore find paths to places where doesn't have access to. TODO: CheckDoorsInPath should ideally use the same code for checking the doors, but since it works ok, I didn't touch it (much). Merely reduced the interact distance.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:38:17 +03:00
parent 4695e6f92b
commit 674f5a656f
12 changed files with 462 additions and 146 deletions
@@ -143,6 +143,10 @@ namespace Barotrauma
{
isCompleted = true;
}
if (component.AIOperate(deltaTime, character, this))
{
isCompleted = true;
}
}
else
{