Carrying stunned/unconscious/dead people up ladders woot!!!

Properly orient grabbed player on climbing and shoulder grab
Allow interaction with buttons, ladders, etc. when grabbing someone
This commit is contained in:
Alex Noir
2017-12-08 22:30:47 +03:00
parent de7489db8b
commit e050404278
2 changed files with 36 additions and 4 deletions
@@ -1308,7 +1308,7 @@ namespace Barotrauma
findFocusedTimer -= deltaTime;
}
if (SelectedCharacter != null && IsKeyHit(InputType.Select))
if (SelectedCharacter != null && focusedItem == null && IsKeyHit(InputType.Select)) //Let people use ladders and buttons and stuff when dragging chars
{
DeselectCharacter();
}