Some new items that can be crafted out of Incendium, stairs can be used while wearing a diving suit

This commit is contained in:
Regalis11
2016-01-21 16:58:46 +02:00
parent 97b3d8451c
commit f0d7d2f26d
10 changed files with 73 additions and 6 deletions
@@ -630,7 +630,12 @@ namespace Barotrauma
onGround = false;
IgnorePlatforms = true;
movement = MathUtils.SmoothStep(movement, TargetMovement, 0.3f);
Vector2 tempTargetMovement = TargetMovement;
if (TargetMovement.Y != 0.0f)
{
tempTargetMovement.Y = Math.Max(Math.Abs(TargetMovement.Y), 0.6f) * Math.Sign(TargetMovement.Y);
}
movement = MathUtils.SmoothStep(movement, tempTargetMovement, 0.3f);
Vector2 footPos, handPos;