Unstable 0.16.0.0
This commit is contained in:
@@ -269,6 +269,11 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
public float GetHeightFromFloor() => GetColliderBottom().Y - FloorY;
|
||||
|
||||
// We need some margin, because if a hatch has closed, it's possible that the height from floor is slightly negative.
|
||||
public bool IsAboveFloor => GetHeightFromFloor() > -0.1f;
|
||||
|
||||
public void UpdateUseItem(bool allowMovement, Vector2 handWorldPos)
|
||||
{
|
||||
useItemTimer = 0.5f;
|
||||
@@ -332,7 +337,7 @@ namespace Barotrauma
|
||||
aimingMelee = aimMelee;
|
||||
if (character.Stun > 0.0f || character.IsIncapacitated)
|
||||
{
|
||||
aim = false;
|
||||
aim = false;
|
||||
}
|
||||
|
||||
//calculate the handle positions
|
||||
|
||||
Reference in New Issue
Block a user