{
if not(self.monster_respawned)
Monster_CheckMinibossFlag();
-
- string nname = strzone(strdecolorize(self.netname));
self.max_health = self.health;
self.pain_finished = self.nextthink;
if(autocvar_g_monsters_healthbars)
{
- WaypointSprite_Spawn(nname, 0, 600, self, '0 0 1' * (self.maxs_z + 15), world, 0, self, sprite, FALSE, RADARICON_DANGER, ((self.team) ? Team_ColorRGB(self.team) : '1 0 0'));
+ WaypointSprite_Spawn(self.netname, 0, 600, self, '0 0 1' * (self.maxs_z + 15), world, 0, self, sprite, FALSE, RADARICON_DANGER, ((self.team) ? Team_ColorRGB(self.team) : '1 0 0'));
WaypointSprite_UpdateMaxHealth(self.sprite, self.max_health);
WaypointSprite_UpdateHealth(self.sprite, self.health);
}
if(monster_skill >= autocvar_g_monsters_skill_nightmare && (self.spawnflags & MONSTERSKILL_NOTNIGHTMARE)) { return FALSE; }
if(self.netname == "")
- {
- if(net_name != "" && IS_PLAYER(self.realowner))
- net_name = strzone(sprintf("%s^7's %s", self.realowner.netname, net_name));
- self.netname = ((net_name == "") ? self.classname : net_name);
- }
+ self.netname = strzone((net_name == "") ? self.classname : net_name);
if(autocvar_g_monsters_giants_only)
self.spawnflags |= MONSTERFLAG_GIANT;