409d4d9...aeafa16 (merge human-ai)
This commit is contained in:
@@ -130,6 +130,9 @@ namespace Barotrauma
|
||||
public bool Crouching;
|
||||
|
||||
private float upperArmLength = 0.0f, forearmLength = 0.0f;
|
||||
|
||||
public float ArmLength => upperArmLength + forearmLength;
|
||||
|
||||
public Vector2 RightHandIKPos
|
||||
{
|
||||
get;
|
||||
@@ -1623,7 +1626,7 @@ namespace Barotrauma
|
||||
|
||||
Holdable holdable = item.GetComponent<Holdable>();
|
||||
|
||||
if (Anim != Animation.Climbing && !usingController && character.Stun <= 0.0f && aim && itemPos != Vector2.Zero)
|
||||
if (!character.IsClimbing && !usingController && character.Stun <= 0.0f && aim && itemPos != Vector2.Zero)
|
||||
{
|
||||
Vector2 mousePos = ConvertUnits.ToSimUnits(character.SmoothedCursorPosition);
|
||||
|
||||
@@ -1653,7 +1656,7 @@ namespace Barotrauma
|
||||
}
|
||||
|
||||
Vector2 transformedHoldPos = shoulder.WorldAnchorA;
|
||||
if (itemPos == Vector2.Zero || Anim == Animation.Climbing || usingController)
|
||||
if (itemPos == Vector2.Zero || character.IsClimbing || usingController)
|
||||
{
|
||||
if (character.SelectedItems[0] == item)
|
||||
{
|
||||
@@ -1742,7 +1745,7 @@ namespace Barotrauma
|
||||
|
||||
item.SetTransform(currItemPos, itemAngle + itemAngleRelativeToHoldAngle * Dir);
|
||||
|
||||
if (Anim == Animation.Climbing) return;
|
||||
if (character.IsClimbing) return;
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user