Passing additional information to the post process (with a custom depth)

Hello.

I have figured out how to use custom depth and a post process material to create on outline of an actor that is visible through walls. The question I have now is this:
If I want an outline to have a different color depending on something (like a variable inside an actor), how can I pass that data to a post process material?

Simple Example :
I have two teams of players (same Player Character class). I want one team to be have a red outline and the other to have a green outline.

Thanks for help!

I think this is what you want.