From ae6131c64a9272e2f828167773a06c9dfc610f30 Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Mon, 23 Jan 2023 13:06:04 +0000 Subject: [PATCH] Update PlayerInformationMessage.cs --- QSB/Player/Messages/PlayerInformationMessage.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/QSB/Player/Messages/PlayerInformationMessage.cs b/QSB/Player/Messages/PlayerInformationMessage.cs index 42313516..61775a96 100644 --- a/QSB/Player/Messages/PlayerInformationMessage.cs +++ b/QSB/Player/Messages/PlayerInformationMessage.cs @@ -18,6 +18,7 @@ public class PlayerInformationMessage : QSBMessage private bool ProbeActive; private ClientState ClientState; private float FieldOfView; + private bool IsInShip; public PlayerInformationMessage() { @@ -32,6 +33,7 @@ public class PlayerInformationMessage : QSBMessage ProbeActive = player.ProbeActive; ClientState = player.State; FieldOfView = PlayerData.GetGraphicSettings().fieldOfView; + IsInShip = player.IsInShip; } public override void Serialize(NetworkWriter writer) @@ -47,6 +49,7 @@ public class PlayerInformationMessage : QSBMessage writer.Write(ProbeActive); writer.Write(ClientState); writer.Write(FieldOfView); + writer.Write(IsInShip); } public override void Deserialize(NetworkReader reader) @@ -62,6 +65,7 @@ public class PlayerInformationMessage : QSBMessage ProbeActive = reader.Read(); ClientState = reader.Read(); FieldOfView = reader.ReadFloat(); + IsInShip = reader.ReadBool(); } public override void OnReceiveRemote() @@ -78,6 +82,7 @@ public class PlayerInformationMessage : QSBMessage player.SignalscopeEquipped = SignalscopeEquipped; player.TranslatorEquipped = TranslatorEquipped; player.ProbeActive = ProbeActive; + player.IsInShip = IsInShip; if (QSBPlayerManager.LocalPlayer.IsReady && player.IsReady) { player.UpdateObjectsFromStates();