Currently, a team message and a global message is identified by comparing 2 strings, if it's a team message then one of them will have a "(TEAM)" prefix, in that case we play the team message sound, otherwise the global message sound.
But this also breaks for people with special characters in their names, or if the message contains alphabets from different writing systems.
Currently, a team message and a global message is identified by comparing 2 strings, if it's a team message then one of them will have a "(TEAM)" prefix, in that case we play the team message sound, otherwise the global message sound. But this also breaks for people with special characters in their names, or if the message contains alphabets from different writing systems.
https://github.com/fortressforever-2013/fortressforever-src/blob/52c2b7cf37018912dfa4ea711cb8469b35713d85/mp/src/game/client/hud_basechat.cpp#L1973-L1976