From bbc549ae710ebd89b8b5307c164448f4c683aecd Mon Sep 17 00:00:00 2001 From: Federico Romero Date: Fri, 24 Jul 2026 21:30:01 -0300 Subject: [PATCH] Clear the ped's aim target when it dies so the marker doesn't stay on screen until respawn --- Client/mods/deathmatch/logic/CClientPed.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Client/mods/deathmatch/logic/CClientPed.cpp b/Client/mods/deathmatch/logic/CClientPed.cpp index d6294285af..2cafa4aaa3 100644 --- a/Client/mods/deathmatch/logic/CClientPed.cpp +++ b/Client/mods/deathmatch/logic/CClientPed.cpp @@ -1970,6 +1970,10 @@ void CClientPed::Kill(eWeaponType weaponType, unsigned char ucBodypart, bool bSt if (IsWearingGoggles()) SetWearingGoggles(false, false); + // Clear the targeting marker so it doesn't stay on screen after death + if (m_pPlayerPed) + m_pPlayerPed->SetTargetedEntity(nullptr); + m_bDead = true; }