Make cl_show_direction change alpha with cl_show_others_alpha

This commit is contained in:
bencie 2024-09-25 18:19:45 +02:00
parent cc6d75d392
commit 36c3656883

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;