Perhaps you guys have noticed but the k/d scores were fucked up.
Seems like the statistics we get aren't really consistent so I had to remove this fix again, srry guys.
I'll try to find another way.
Perhaps you guys have noticed but the k/d scores were fucked up.
Seems like the statistics we get aren't really consistent so I had to remove this fix again, srry guys.
I'll try to find another way.
yeah I noticed, but, how come you get all those weird values? Do you get them wrong from the server, or it's the calculation you do after, that screws them up?
I don't know exactly how you connect, but I guess you should be able to check the gamestate and all the stuff like a regular client, right?
Are you checking that gamestate is GS_PLAYING (that is, 0) or maybe also GS_INTERMISSION (3)? You could wait some extra seconds after the warmup is over.
edit:
Actually the real problem should be xp, since you have xpsave and you need to know how much xp you have at the start. Player stats (k/d) instead, are resetted after every round, if it was only that you could even read them once at the end of the game, since you know how much time every player has played (shown at the end of the round, and it can be read by clients)
edit2:
if you don't have a real client (since I don't know the details I can't really help), you have those command strings ("sc0", "sc1") in the stream of data the server sends, there you should have all clients score and also how much time they have played up to then
Last edited by testforecho; 14-12-2011 at 09:21.