Skip to content

Commit

Permalink
Don't show nametags for just teammates
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Sep 6, 2024
1 parent 92d9af4 commit b346dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cl_dll/hud_nametags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ int CHudNameTags::Draw(float flTime)
// Or if the localplayer is spectating
// TODO: V_GetInEyePos( g_iUser2, origin, angles );

if (Distance(trace->endpos, localPlayer->origin) < m_hud_nametags_team_max_distance->value && IsTeamMate(localPlayer, i) ||
if (Distance(trace->endpos, localPlayer->origin) < m_hud_nametags_team_max_distance->value ||
gEngfuncs.pDemoAPI->IsPlayingback() ||
!strcmp(gamemode, "Kreedz") ||
g_iUser1)
Expand Down

0 comments on commit b346dc1

Please sign in to comment.