If you play DM, you're well aware of the seventh player who is indistinguishable from the first. I did some digging through the source, and there's no way to *fix* this; though there is a painless workaround.
09-04-2005, 10:31 PM (This post was last modified: 09-04-2005, 10:42 PM by Wha?.)
What I propose is swapping the colour in slot 19 for the colour in slot 7. The other colours relevant to a player are generated with a calculation done on the appropriate disc colour, so it should be seamless.
Since there are only 12 slots, any colour above that is fair game.
No, it doesn't solve the problem of identical-looking players on servers with higher max player counts, but it does make it less common.
09-04-2005, 11:44 PM (This post was last modified: 09-05-2005, 01:00 AM by Wha?.)
This is how player colours map out. Each swatch is divided into topcolor and bottomcolor (intuitive). As you can see, 19 is the same as 9, so that's a no go.
Turns out that there are virtually no unique colours. These are the matching ones:
[*]0, 1, 7, 14
[*]2, 13
[*]3, 15
[*]4, 16, 24
[*]5, 17, 25
[*]6, 18, 26
[*]8, 20
[*]9, 19
[*]10, 22
[*]11, 21
And these are unique (though some may be a little tough to tell):
[*]12, 23, 27, 28, 29, 30, 31
Did some more digging and it appears as though the client chooses the colour a player (and their team on the scoreboard) should be, even though the server sets the colour of the discs.
09-05-2005, 03:46 AM (This post was last modified: 09-05-2005, 03:50 AM by Wha?.)
Scratch that. I looked a little harder, and it called on the same disc colour array, so I did a search for it. Lo and behold cl_dll.dll includes a few files from mp.dll; one of which is disc_weapon_disc.cpp. Just needed to rebuild the client dll.
Best part is that you can still play on the servers (not sure about servers with VAC).
Now... the weird part is that it defaults to third person on my HLDS. It doesn't seem to default elsewhere, but you can still use it. Guess the SDK dll supports it.
I have yet to settle on a colour to use for team 7, since 23 was a little close to green and teal.
09-05-2005, 08:00 AM (This post was last modified: 09-05-2005, 08:06 AM by Miagi.)
I think I left my 3rd person code in the client code:P. Didn't think people would want to compile that since the servers are not suppose to allow you to use your own version... But I don't know how you were able to play on other servers...
<@Miagi> !8 Am I spamming?
<@ChanServ> Miagi: Yes.
<@Miagi> !8 Should I stop?
<@ChanServ> Miagi: Oh, please, PLEASE, make it stop!
09-05-2005, 03:47 PM (This post was last modified: 09-05-2005, 03:48 PM by Miagi.)
I have noooo idea what valve changed in the hlds, but now my thirdperson code can work since we can use a custom client.dll now. Woot.
I'm glad I left the code in there..
<@Miagi> !8 Am I spamming?
<@ChanServ> Miagi: Yes.
<@Miagi> !8 Should I stop?
<@ChanServ> Miagi: Oh, please, PLEASE, make it stop!