Official Soldat Forums

Server Talk => Scripting Discussions and Help => Topic started by: Quantifier on January 06, 2007, 07:00:53 am

Title: Get player colours
Post by: Quantifier on January 06, 2007, 07:00:53 am
Is it (will it be) possible to have access to player appearance from a script?
I'd like to make sure there are no players on blue team with bright red trousers, face and hair, and vice versa (so corresponding Set function would be useful too). I know there is clanmatch, but I'm looking for something more flexible.
Title: Re: Get player colours
Post by: The Bone Collector on January 06, 2007, 09:51:59 am
Talk to someone good at scripting. As far as I know, EnEsCe is good at that sort of thing, but as he's a busy person, I dunno.
It's possible to make your own, but I'm not sure how hard it is to write, and use a script.
Title: Re: Get player colours
Post by: Toumaz on January 06, 2007, 09:57:46 am
Had a word with EnEsCe in IRC:

Quote from: #soldat.servers @ QuakeNet
[13:14] <Toumaz> EnEsCe, I second this guy's question: http://forums.soldat.pl/index.php?topic=9583.0
[13:14] <EnEsCe> agh colours
[13:14] <EnEsCe> its not worth the effort
[13:15] <Toumaz> :(
Title: Re: Get player colours
Post by: edak on January 06, 2007, 04:45:34 pm
a script like this would be difficult, firstly you'd have to check all colours (RGB) and analyse them because bright red is not simply one level of red, same for blue.
Title: Re: Get player colours
Post by: cooz on January 06, 2007, 05:00:26 pm
that could be done 8)
Title: Re: Get player colours
Post by: Quantifier on January 06, 2007, 06:20:01 pm
a script like this would be difficult, firstly you'd have to check all colours (RGB) and analyse them because bright red is not simply one level of red, same for blue.

After conversion to the HSB colour space (hue, saturation, brightness), 'bright red' is exactly what it is named - a colour with red hue, high saturation and high brightness, so this part wouldn't be really difficult.