if (source)
namestr = playername(source.netname, source.team, (autocvar_g_chat_teamcolors && IS_PLAYER(source)));
+ if (autocvar_g_chat_show_playerid)
+ namestr = strcat(namestr, " ^9#", itos(etof(source)), "^7");
+
string colorprefix = (strdecolorize(namestr) == namestr) ? "^3" : "^7";
string msgstr = "", cmsgstr = "";
int autocvar_g_chat_nospectators;
bool autocvar_g_chat_teamcolors;
bool autocvar_g_chat_tellprivacy;
+bool autocvar_g_chat_show_playerid;
const float NUM_NEAREST_ENTITIES = 4;
entity nearest_entity[NUM_NEAREST_ENTITIES];
set g_chat_team_allowed 1 "allow players to communicate via in-game team chat"
set g_chat_teamcolors 0 "colorize nicknames in team color for chat"
set g_chat_tellprivacy 1 "when disabled, tell messages are also sent to the server console log... otherwise they're kept private between players."
+set g_chat_show_playerid 0 "when enabled, show the player numbers next to their names in the chat"
set g_nick_flood_timeout 120 "time after which nick flood protection resets (set to 0 to disable nick flood checking)"
set g_nick_flood_penalty 0.5 "duration of the nick flood penalty"
set g_nick_flood_penalty_yellow 3 "number of changes to allow before warning and movement blocking"