Fix player death effect color

This commit is contained in:
srdante 2022-03-18 20:31:49 -03:00
parent 69d7ea518a
commit 9dc944ab03

View file

@ -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
{