add suit check

This commit is contained in:
_nebula 2023-05-07 18:25:59 +01:00
parent c043e6a258
commit 053efa8c7e

View File

@ -150,8 +150,9 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart
_playerList.gameObject.SetActive(ServerSettingsManager.ShowExtraHUD);
var inSuit = Locator.GetPlayerSuit().IsWearingHelmet();
if (OWInput.IsNewlyPressed(InputLibrary.enter, InputMode.Character) && !_writingMessage)
if (OWInput.IsNewlyPressed(InputLibrary.enter, InputMode.Character) && !_writingMessage && inSuit)
{
OWInput.ChangeInputMode(InputMode.KeyboardInput);
_writingMessage = true;