(ee4193544) Modified: Reduced the health interface opening range mildly to prevent ragdoll flailing at or close to old max range

This commit is contained in:
Joonas Rikkonen
2019-06-15 19:45:11 +03:00
parent 6c72136fa9
commit b64d3d17ac
7 changed files with 9 additions and 29 deletions
@@ -216,7 +216,7 @@ namespace Barotrauma
Color.LightGreen, Color.Black, 2, GUI.SmallFont);
textPos.Y += offset.Y;
}
if (character.FocusedCharacter.CharacterHealth.UseHealthWindow)
if (character.FocusedCharacter.CharacterHealth.UseHealthWindow && character.CanInteractWith(character.FocusedCharacter, 160f, false))
{
GUI.DrawString(spriteBatch, textPos, GetCachedHudText("HealHint", GameMain.Config.KeyBind(InputType.Health).ToString()),
Color.LightGreen, Color.Black, 2, GUI.SmallFont);