You can do this for the mini-map dots color using the Cool VL Viewer's
Lua scripting feature (using the SetAvatarMinimapColor() function); an example of how to implement avatar mini-map dots color changes with the Lua Pie menu (SHIFT+right click on avatar name tags) is given at the end of the
example automation script, but more complex code is possible, of course, and unlike other TPVs, it lets you customize that feature to your likings.
I added a SetAvatarNameTagColor() Lua function too, for next release, so you will also be able to recolor name tags.