if(!autocvar_hud_shownames)
return;
- if(self.the_entnum == player_localentnum && !autocvar_chase_active)
+ if(self.sv_entnum == player_localentnum && !autocvar_chase_active)
return;
if(self.sameteam || (!self.sameteam && autocvar_hud_shownames_enemies))
{
- self.origin = getplayerorigin(self.the_entnum-1);
+ self.origin = getplayerorigin(self.sv_entnum-1);
self.origin_z += autocvar_hud_shownames_offset;
if(!self.sameteam)
}
string s;
- s = GetPlayerName(self.the_entnum-1);
+ s = GetPlayerName(self.sv_entnum-1);
if((autocvar_hud_shownames_decolorize == 1 && teamplay) || autocvar_hud_shownames_decolorize == 2)
- s = playername(s, GetPlayerColor(self.the_entnum-1));
+ s = playername(s, GetPlayerColor(self.sv_entnum-1));
drawfontscale = '1 1 0' * resize;
s = textShortenToWidth(s, namewidth, '1 1 0' * autocvar_hud_shownames_fontsize, stringwidth_colors);