teamcolors.lua:
You can use it to set all of the team colors locally.
The default setup makes all allies shades of green,
all enemy shades of red, the gaia team off-white,
and your team color cyan. Colorblind folks can modify
the script to use colors that they can better differentiate.
It is not currently possible for a mod to use this feature,
but that could easily be changed. If mod team color
changes were allowed (client-side), then I'd print out
a notice, and still allow for user team recoloring. The
script also gets to read the current team colors, so it
may be worthwhile to run the mod script, and then run
the user script (user always has final control).
If you do want mod control of team colors in the lobby,
I do suggest you use unitsync. Lobby control is probably
better then client-side mod controlled recoloring, but you'd
want to have all lobby clients support it (AF already said
he wouldn't).
P.S. the teamcolors.lua file was omitted from the 0.76b1
installer, but it is available from SVN (and should work with
the 0.76b1 exec, iirc)
https://taspring.clan-sy.com/svn/spring ... colors.lua