GoldenEye: Source Forums

Debriefing => Impressions & Feedback => Topic started by: StrikerMan780 on December 23, 2012, 04:43:18 am

Title: Support for Source 2009's color codes
Post by: StrikerMan780 on December 23, 2012, 04:43:18 am
I wish to request support for the /x07 hex character (bell) that allows setting up of color codes of any color, like in Source 2009 games such as TF2. I request this because my server uses SourceMod, and a lot of the advertisements I have in the server are color coded. They end up showing up as say: "00FF00This is an announcent" rather than: "This is an announcement"
Title: Re: Support for Source 2009's color codes
Post by: Troy on December 23, 2012, 05:31:58 am
Do you know about this article?

http://wiki.geshl2.com/index.php/HudColor
Title: Re: Support for Source 2009's color codes
Post by: StrikerMan780 on December 23, 2012, 09:51:15 am
I know about that, but still doesn't serve what I need. I need the x07 control character method to maintain compatibility with a lot of sourcemod plugins.
Title: Re: Support for Source 2009's color codes
Post by: killermonkey on December 23, 2012, 04:02:29 pm
Interesting... please show me what it looks like in entirety.
Title: Re: Support for Source 2009's color codes
Post by: StrikerMan780 on December 24, 2012, 12:45:41 am
Basically, you can enter the Bell Control Character (Hex: 0x07), and then a color code (ie: FF0000 for red) before the text you wish to color. You can use as many as these as you want in a string, and can be any color. In SourceMod, they are used by doing something like this (a piece of code from one of my plugins):    

Code: [Select]
PrintToChatAll("\x07222222[\x076000FFStrikerMod\x07222222] \x07FF0000Player In Blocked Group Detected \x07FFFFFF- \x07FF0000Name: \x07FFFF00%N \x07FFFFFF| \x07FF0000Group ID: \x07FFFF00%d", client, groupAccountID);
In sourcemod, \x indicates that you're specifying an ASCII Hex index in your string.

(http://imgur.com/jZmpz.png)
(http://content.screencast.com/users/DarthNinja/folders/Jing/media/41e040ea-fc66-4d47-b347-3d5186bd8aa4/2012-06-04_0515.png)
(http://i.imgur.com/v0BWE.png)

Source 2009 games like HL2DM, TF2, and CS:Source will read these codes, but, GoldenEye: Source does not, so it ends up making a huge mess of the output.
Title: Re: Support for Source 2009's color codes
Post by: StrikerMan780 on July 04, 2013, 01:51:43 am
I take it this was added in the new release?
Title: Re: Support for Source 2009's color codes
Post by: killermonkey on July 04, 2013, 03:54:19 am
What would give you that impression?
Title: Re: Support for Source 2009's color codes
Post by: StrikerMan780 on July 04, 2013, 05:14:53 am
I must have mistook "Added color hinting to HUD Messages" as something else.
Title: Re: Support for Source 2009's color codes
Post by: killermonkey on July 04, 2013, 12:29:18 pm
I'll put this in our tracker... it never made it in before