halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[CS] A funny bug with a colored nickname

Open Splatt581 opened this issue 2 months ago • 0 comments

A player can make a colored nickname by using the control characters 0x01, 0x03, and 0x04 in the sended nickname string:

Image

Using this nickname, you can also colorize the rest of the message string:

Image

This bug appeared with the addition of UTF-8 support to the engine in 2013. To fix this bug, I believe a check for control characters in userinfo should be added to the Info_SetValueForStarKey and Info_IsValid functions.

Splatt581 avatar Oct 19 '25 16:10 Splatt581