Page 2 of 2

Re: Final MP testing

Posted: Sat Nov 01, 2014 8:32 pm
by Boogieman14
slpwnd wrote:
xnmo wrote:Thanks!

Is there a list of all the valid colours available? I can only figure out the primary colours and anything else turns him black.
It is floats. So for example {r=0.7, g=0.5, b=0.1, a=0.9}
What's the a for?

Re: Final MP testing

Posted: Sat Nov 01, 2014 8:58 pm
by n9103
Alpha channel I imagine. aka Transparency of the color to the base texture.

Re: Final MP testing

Posted: Sat Nov 01, 2014 9:20 pm
by Boogieman14
ah yes, thanks.

Re: Final MP testing

Posted: Sun Nov 02, 2014 12:15 am
by GewaltSam
chainedlupine wrote:Thanks for the player color changing code!

I had the same reaction when my friend joined. "Awww, but I wanted to be blue..."

I use this: http://prideout.net/archive/colors.php

Just use the numbers between 0 and 1 on the right. The meaning of the three numbers is the different colors red, green, blue.

Examples for usage:

/c game.players[1].color = {r=1, g=1, b=1}

That's for a white player one.


/c game.players[3].color = {r=0.824, g=0.412, b=0.118}

That's chocolate colored player three :)

Re: Final MP testing

Posted: Sun Nov 02, 2014 12:18 am
by Boogieman14
GewaltSam wrote:I use this: http://prideout.net/archive/colors.php
Nice one, added that to the wiki.