The configuration is the same across all games except for CS:GO. CS:GO does not support dynamic colors and only supports a specific set of colors. This is a limitation in the game itself, so there's nothing that can be done to change that.
To create the configuration file, load chat_prefix on the server once and the default file will be created at ../cfg/source-python/chat_prefix.json. Edit the file to your liking. The default for non-CS:GO looks like:
Code: Select all
When defining a group, the list of "users" can include SteamID2, SteamID3, or Steam int64 values. The "permission" value for a group is checked against all user permissions at run-time. For information on permissions, look at these two links:
http://wiki.sourcepython.com/developing ... /auth.html
A group should have either a users list or a permission, or even both.
You can also define custom colors used in your "prefix" values in the "colors" section. Those are RGB values used to represent the given color. Source.Python comes with several defined colors, but if any of these aren't quite what you want, define your own in the "colors" section. Again, these custom colors are not available in CS:GO.
For CS:GO, you can only use the following to represent colors:
- \x01 - White
- \x02 - Red
- \x03 - Team (based on "index" attribute) - Pale Blue for CTs - Pale Yellow for Ts - White for non-team
- \x04 - Bright Green
- \x05 - Pale Green
- \x06 - Green
- \x07 - Pale Red
- \x08 - Grey
- \x09 - Yellow
- \x0A - Light Blue
- \x0B - Blue
- \x0C - Dark Blue
- \x0D - Light Blue for SayText2 and Purple for SayText
- \x0E - Pink
- \x0F - Dull Red
- \x10 - Orange
If you have suggestions or notice any bugs for the plugin, please feel free to post them on the issues list:
This plugin has been fully tested on CS:S and CS:GO, but I believe will also work on TF2. I will work to support other games when I have the opportunity.
Thanks, and enjoy :)
Zeus - for asking about adding prefixes which was the inspiration for me starting on this project.
Current version download