In my new version of the Team Deathmatch mod, you can set team colours to any of the 64 paint colours available on the server. This works fine and very well, up until I attempted to add a Capture the Flag game mode to it.
Since each flag requires an item that can be picked up and a weapon image to display if you're holding it, I realised that that could mean up to 128 extra datablocks - if people choose obscure colours for their teams it should be possible to display that.
I'm currently implementing a work-around that only does this when you specifically enable it and have enough datablocks left, and otherwise uses five or six generic colours (e.g. all red-like colours use a bright red flag), but I'd like the mod to be able to cope with any team colour just as effectively.
Is there any way I can set a weapon image or item (either would help, ideally both) to use a paint colour I set individually instead of the colorShiftColor?