From 9dc944ab03c50e0ae51b513907816650de8e6e04 Mon Sep 17 00:00:00 2001 From: srdante Date: Fri, 18 Mar 2022 20:31:49 -0300 Subject: [PATCH] Fix player death effect color --- src/game/client/components/effects.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/game/client/components/effects.cpp b/src/game/client/components/effects.cpp index bb816d328..4e9843970 100644 --- a/src/game/client/components/effects.cpp +++ b/src/game/client/components/effects.cpp @@ -166,7 +166,13 @@ void CEffects::PlayerDeath(vec2 Pos, int ClientID) if(ClientID >= 0) { - if(m_pClient->m_aClients[ClientID].m_UseCustomColor) + // Use m_RenderInfo.m_CustomColoredSkin instead of m_UseCustomColor + // m_UseCustomColor says if the player's skin has a custom color (value sent from the client side) + + // m_RenderInfo.m_CustomColoredSkin Defines if in the context of the game the color is being customized, + // Using this value if the game is teams (red and blue), this value will be true even if the skin is with the normal color. + // And will use the team body color to create player death effect instead of tee color + if(m_pClient->m_aClients[ClientID].m_RenderInfo.m_CustomColoredSkin) BloodColor = m_pClient->m_aClients[ClientID].m_RenderInfo.m_ColorBody; else {