Handcuffed AICharacters can't climb ladders
This commit is contained in:
@@ -137,9 +137,10 @@ namespace Barotrauma
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentPath.CurrentNode!= null && currentPath.CurrentNode.Ladders!=null)
|
if (currentPath.CurrentNode != null && currentPath.CurrentNode.Ladders != null)
|
||||||
{
|
{
|
||||||
if (character.SelectedConstruction != currentPath.CurrentNode.Ladders.Item && currentPath.CurrentNode.Ladders.Item.IsInsideTrigger(character.WorldPosition))
|
if (character.SelectedConstruction != currentPath.CurrentNode.Ladders.Item &&
|
||||||
|
currentPath.CurrentNode.Ladders.Item.IsInsideTrigger(character.WorldPosition))
|
||||||
{
|
{
|
||||||
currentPath.CurrentNode.Ladders.Item.TryInteract(character, false, true);
|
currentPath.CurrentNode.Ladders.Item.TryInteract(character, false, true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace Barotrauma.Items.Components
|
|||||||
|
|
||||||
public override bool Select(Character character)
|
public override bool Select(Character character)
|
||||||
{
|
{
|
||||||
if (character == null) return false;
|
if (character == null || character.LockHands) return false;
|
||||||
|
|
||||||
character.AnimController.Anim = AnimController.Animation.Climbing;
|
character.AnimController.Anim = AnimController.Animation.Climbing;
|
||||||
//picker.SelectedConstruction = item;
|
//picker.SelectedConstruction = item;
|
||||||
|
|||||||
Reference in New Issue
Block a user