*/
string namestr = "";
- if (source)
+ if (source) {
namestr = playername(source, autocvar_g_chat_teamcolors);
+
+ if (IS_DEAD(p) || p.frags == FRAGS_PLAYER_OUT_OF_GAME)
+ namestr = strcat("(DEAD) ", namestr);
+ else if (IS_OBSERVER(p) || IS_SPEC(p))
+ namestr = strcat("(s) ", namestr);
+ }
string colorprefix = (strdecolorize(namestr) == namestr) ? "^3" : "^7";
//else
// return p.netname;
- string t;
-
if (team_colorize && teamplay && p.team != -1)
- t = strcat(Team_ColorCode(p.team), strdecolorize(p.netname));
- else
- t = p.netname;
-
- if (IS_DEAD(p) || p.frags == FRAGS_PLAYER_OUT_OF_GAME)
- return strcat("(DEAD) ", t);
- else if (IS_OBSERVER(p) || IS_SPEC(p))
- return strcat("(s) ", t);
+ return strcat(Team_ColorCode(p.team), strdecolorize(p.netname));
else
- return t;
+ return p.netname;
//return sprintf("%s (%d) %s", p.classname, p.team, t);
}