This let you assign your own teamcolors for certain players. These colors are only displayed in your game, all other players will still see their original colors.
To avoid duplicate colors, if a color you want to assign is already occupied by another player his color gets changed to your original/previous color.
You have to enter the names of players you want to recolor inside the widget. The colors are in RGB with values between 0.0 - 1.0. If you have your color in values between 0 - 255, just divide by 255 :)
Examples:
Code: Select all
local customColors = {}
customColors["[x]very_bad_soldier"] = { r = 1.0, g = 0.65098, b = 0.0}
customColors["AnotherPlayer"] = { r = 1.0, g = 1.0, b = 0.5}
Thanks to the guys in #lua for help! The idea for this is borrowed from another thread :)
Changelog
1.2: Resets colors when widget gets disabled