Merge pull request #9042 from bencie/showothers-direction-alpha

Make cl_show_direction change alpha with cl_show_others_alpha
This commit is contained in:
heinrich5991 2024-09-25 16:42:18 +00:00 committed by GitHub
commit f614277ad8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,7 +60,10 @@ void CNamePlates::RenderNameplate(vec2 Position, const CNetObj_PlayerInfo *pPlay
Jump = Character.m_Cur.m_Jumped & 1;
}
Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f);
if(OtherTeam && !ForceAlpha)
Graphics()->SetColor(1.0f, 1.0f, 1.0f, g_Config.m_ClShowOthersAlpha / 100.0f);
else
Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f);
const float ShowDirectionImgSize = 22.0f;
YOffset -= ShowDirectionImgSize;