fortressforever-2013 / fortressforever-src

A port of Fortress Forever, a Team Fortress mod on Source Engine SDK 2013 (SDK2013CE)
https://www.fortress-forever.com/
Other
6 stars 6 forks source link

Chat message sounds are inconsistent #47

Closed YoYo178 closed 1 week ago

YoYo178 commented 1 week ago

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