Skip to content

Add support for the new custom colors to the colors API (CS:S, TF2, HL2:DM, DOD:S) #10

@berni2288

Description

@berni2288

The following games now support the new custom colors:

  • TF2
  • CS:S
  • HL2:DM
  • DOD:S

The following new control characters can be used now in the usermessage SayText2:

\x07

Followup bytes (as string): RRGGBB

\x08 (supports alpha)

Followup bytes (as string): RRGGBBAA

Todo: implement this in the smlib colors API

I don't know why Valve decided to specify the color code as string, as this is not efficient, 1 byte for each color part would have been better to save banwidth, but ok.

https://forums.alliedmods.net/showthread.php?t=185016
https://forums.alliedmods.net/showthread.php?p=1717390

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions