if(!autocvar_hud_shownames)
return;
+ if(self.the_entnum == player_localentnum && !autocvar_chase_active)
+ return;
+
if(self.sameteam || (!self.sameteam && autocvar_hud_shownames_enemies))
{
self.origin = getplayerorigin(self.the_entnum-1);
}
else
self.frags = FRAGS_SPECTATOR;
+
+ if(self.shownames)
+ remove(self.shownames);
}
void FixPlayermodel()
PutObserverInServer ();
}
+ self.shownames = spawn();
+ self.shownames.owner = self;
+ self.shownames.think = shownames_think;
+ self.shownames.nextthink = time;
+ Net_LinkEntity(self.shownames, FALSE, 0, SendEntity_ShowNames);
+
//if(g_ctf)
// ctf_playerchanged();
}
CheatInitClient();
PlayerStats_AddPlayer(self);
-
- self.shownames = spawn();
- self.shownames.owner = self;
- self.shownames.think = shownames_think;
- self.shownames.nextthink = time;
- Net_LinkEntity(self.shownames, FALSE, 0, SendEntity_ShowNames);
}
/*