(8045205b5) Test a velocity based calculation for skipping the nodes in steering.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:45:04 +03:00
parent f8090d470e
commit b9cca44ce2
14 changed files with 446 additions and 93 deletions
@@ -1632,6 +1632,10 @@ namespace Barotrauma
{
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
}
if (!broken)
{
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
}
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
if (body == null || !body.Enabled || !inWater || ParentInventory != null || Removed) { return; }