Closed illwieckz closed 6 years ago
Doom 3 should use COLOR_QUAKE3_ANY
instead of COLOR_QUAKE3_NUMERIC | COLOR_QUAKE3_ALPHA
. Doom 3 treats ^
followed by anything besides a space as a color, not only ^[0-9a-zA-Z]
.
COLOR_DOOM3 should remove "^^" but not remove "^ " (carrot space).
Those Quake 4 escape codes are not limited to Q4Max mod. In Quake 4, ^
followed by any character is an escape code (including "^^" and "^ ") -- use COLOR_QUAKE3_ANY. ^[cC]???
appears to use hexadecimal digits. See more detailed Quake 4 escape code info.
I added the ^[Nn]*
quake4 color code and made other fixes. Basically, quake4 filters out anything that resembles to a color code even if it means nothing (like rgb color codes with non-alphanumeric numbers).
I noticed some Q4 servers used
^c###
with#
in[0-9]
for color codes, see: http://ewz-quake3forums.forumsmotion.com/t28-quake-4-color-code-chartI only see them on q4max modded servers, I don't know if it's mod specific or not, and by the way the code is not ready to filter color codes by mod.
I noticed the same q4max servers also used
^-
and^+
color codes, well the behaviour looks to not be color, perhaps it's a font thing, but they looks to have to be filtered.I noticed some q4 players using the icons code in their name as described there: https://www.gamespot.com/quake-4/cheats/
The icon code is
i###
where#
is in[0-9a-z]
. Well, the whole alphabet is probably not used but I'm bored.I added the doom3 “
^^
is empty string” flag. I read somewhere that:So I filtered both alpha and numeric codes, see: https://steamcommunity.com/sharedfiles/filedetails/?id=386113217