Release 1.11.4.1 (Winter Update)
This commit is contained in:
@@ -216,6 +216,7 @@ namespace Barotrauma
|
||||
{
|
||||
UpdateTemporaryAnimations();
|
||||
UpdateAnim(deltaTime);
|
||||
CheckRopeState();
|
||||
}
|
||||
|
||||
protected abstract void UpdateAnim(float deltaTime);
|
||||
@@ -1134,6 +1135,25 @@ namespace Barotrauma
|
||||
character.TeleportTo(pos);
|
||||
}
|
||||
|
||||
protected void CheckRopeState()
|
||||
{
|
||||
if (!shouldHangWithRope)
|
||||
{
|
||||
StopHangingWithRope();
|
||||
}
|
||||
if (!shouldHoldToRope)
|
||||
{
|
||||
StopHoldingToRope();
|
||||
}
|
||||
if (!shouldBeDraggedWithRope)
|
||||
{
|
||||
StopGettingDraggedWithRope();
|
||||
}
|
||||
shouldHoldToRope = false;
|
||||
shouldHangWithRope = false;
|
||||
shouldBeDraggedWithRope = false;
|
||||
}
|
||||
|
||||
private void StartAnimation(Animation animation)
|
||||
{
|
||||
if (animation == Animation.UsingItem)
|
||||
|
||||
Reference in New Issue
Block a user