diff --git a/src/game/client/components/effects.cpp b/src/game/client/components/effects.cpp index bb816d328..e5b27a3c0 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 {