Jump to content

Home

^8 & ^9


Dom_152

Recommended Posts

Q_CleanStr and SanatizeString(2) do not seem to remove the ^8 and ^9 colour codes from names for some reason. How can I either alter those functions so it will remove those colour codes or do it maunally? I don't really consider those two proper colours, they are just duplicates and I would like to get rid of them.

Link to comment
Share on other sites

No, because they are not actually color codes. Hence why the game doesn't show them as color in text boxes or console. 0-7 are the only valid colors. I honestly see no purpose of using SanatizeString(2) as they seem to strip out the carrot of names such as ^ensiform, the only logical reason would be to use it so that non-standard ascii characters are not stripped but one could write a better function to strip colors without harming the non-ascii characters instead of using SanatizeString(2). If you are not worried about the ascii chars, then use Q_CleanStr after you've already removed 8 and 9 from the string.

Link to comment
Share on other sites

The xMod version of that function has a bug as i mentioned. The only way to have it stay on screen longer is to spam cp commands to the clients as many times as needed. Note: the way seen in xMod 2.0 is not the greatest, but if it is modified a bit, can work nicely. If you chose to do that, just stick it in the existing ClientTimerActions instead of making a new one otherwise you will end up with some serious bugz (timer being knocked down for -2 sec each time)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...