Quote:
|
Originally Posted by Stefan
Yes timevar2
You only need to update the deviation each login I guess, the minimum value for the deviation is 75, and it is raising by one each day without spar I think.
PHP Code:
newratings = updateratings({winner.rating,winner.ratingd,loser.rating,loser.ratingd});
winner.rating = newratings[0];
winner.ratingd = newratings[1];
winner.lastspar = int(timevar2);
loser.rating = newratings[2];
loser.ratingd = newratings[3];
loser.lastspar = int(timevar2);
|
Yea, it's nice to be able to use the default ratings system this way. However, I'd really like to be able to read these vars clientside, so I can rewrite the ratings display. It's the same problem with not being able to see if a player is paused using a nickname system.
I mean, rating and ratingd are being sent to the client anyway by pressing R and when the ratings are updated. If a player is paused it is being sent to the client in the form of adding (paused) at the end of the player's nickname. Is there any particular reason you wouldn't want these vars to be readable clientside? I don't want to use player.attr[] like I have been using for (paused) because I'd rather use them for how they were intended. If not, can you SERIOUSLY make the attr[] variables accessible through RC. I'm going through hell messing with them.
Hmmm... also... is player.lastspar a default variable?