From d94dfa5b6d965cdc459366bea6010336bccdaa45 Mon Sep 17 00:00:00 2001 From: Mohab <133429578+MohabCodeX@users.noreply.github.com> Date: Thu, 11 Sep 2025 14:29:42 +0300 Subject: [PATCH] Allow position updates for dead players --- Client/mods/deathmatch/logic/CNetAPI.cpp | 2 +- .../mods/deathmatch/logic/packets/CPlayerPuresyncPacket.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Client/mods/deathmatch/logic/CNetAPI.cpp b/Client/mods/deathmatch/logic/CNetAPI.cpp index 6600f341ac0..e24e540a99a 100644 --- a/Client/mods/deathmatch/logic/CNetAPI.cpp +++ b/Client/mods/deathmatch/logic/CNetAPI.cpp @@ -295,7 +295,7 @@ void CNetAPI::DoPulse() // Grab the local player CClientPlayer* pPlayer = m_pPlayerManager->GetLocalPlayer(); - if (pPlayer && !pPlayer->IsDeadOnNetwork()) + if (pPlayer) { unsigned long ulCurrentTime = CClientTime::GetTime(); diff --git a/Server/mods/deathmatch/logic/packets/CPlayerPuresyncPacket.cpp b/Server/mods/deathmatch/logic/packets/CPlayerPuresyncPacket.cpp index 11146a5b091..50962647cd1 100644 --- a/Server/mods/deathmatch/logic/packets/CPlayerPuresyncPacket.cpp +++ b/Server/mods/deathmatch/logic/packets/CPlayerPuresyncPacket.cpp @@ -36,8 +36,8 @@ bool CPlayerPuresyncPacket::Read(NetBitStreamInterface& BitStream) return false; // Only read this packet if it matches the current time context that - // player is in. - if (!pSourcePlayer->CanUpdateSync(ucTimeContext)) + // player is in. Allow position updates for dead players + if (!pSourcePlayer->CanUpdateSync(ucTimeContext) && !pSourcePlayer->IsDead()) { return false; }