Fixed ragdolls colliding with stairs when swimming even if not steering upwards, AI steering fixes

This commit is contained in:
Regalis
2017-02-02 20:39:51 +02:00
parent 32d7be07ee
commit 39f977535d
4 changed files with 35 additions and 9 deletions

View File

@@ -840,11 +840,14 @@ namespace Barotrauma
{
ViewTarget = null;
if (!AllowInput) return;
Vector2 targetMovement = GetTargetMovement();
AnimController.TargetMovement = targetMovement;
AnimController.IgnorePlatforms = AnimController.TargetMovement.Y < 0.0f;
if (!(this is AICharacter) || controlled == this)
{
Vector2 targetMovement = GetTargetMovement();
AnimController.TargetMovement = targetMovement;
AnimController.IgnorePlatforms = AnimController.TargetMovement.Y < 0.0f;
}
if (AnimController is HumanoidAnimController)
{