From 8dd96ae06b91c3df01d63137032cbbdbbaa91389 Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Fri, 25 Jun 2021 13:17:10 +0100 Subject: [PATCH] add isDead property --- QSB/DeathSync/RespawnManager.cs | 4 ++++ QSB/Player/PlayerInfo.cs | 1 + 2 files changed, 5 insertions(+) diff --git a/QSB/DeathSync/RespawnManager.cs b/QSB/DeathSync/RespawnManager.cs index 31dcc942..9f341b0a 100644 --- a/QSB/DeathSync/RespawnManager.cs +++ b/QSB/DeathSync/RespawnManager.cs @@ -50,6 +50,8 @@ namespace QSB.DeathSync return; } + player.IsDead = true; + _playersPendingRespawn.Add(player); UpdateRespawnNotification(); @@ -64,6 +66,8 @@ namespace QSB.DeathSync return; } + player.IsDead = false; + _playersPendingRespawn.Remove(player); UpdateRespawnNotification(); diff --git a/QSB/Player/PlayerInfo.cs b/QSB/Player/PlayerInfo.cs index d66f085b..dc8afdec 100644 --- a/QSB/Player/PlayerInfo.cs +++ b/QSB/Player/PlayerInfo.cs @@ -55,6 +55,7 @@ namespace QSB.Player public bool IsInMoon; // TODO : move into PlayerStates? public bool IsInShrine; // TODO : move into PlayerStates? public IQSBQuantumObject EntangledObject; + public bool IsDead { get; set; } public PlayerInfo(uint id) {