Quote:
Originally Posted by Desear
How exactly is spar rate calculated? I'm curious I never understood how exactly, cause sometimes I would kill a **** load of people, and still have no rate, than I would kill a couple people, and die, and I would get one... so, is it like how many people you kill before you die?
|
There's a scriptcommand for that.
PHP Code:
updateratings(obj) - returns object - updates an array of {rating1,ratingdeviation1, rating2,ratingdeviation2, ...}, init them at 1500 and 350
Example of how to use:
PHP Code:
temp.rating = updateratings({attacker.rating,attacker.ratingdeviation,player.rating,player.ratingdeviation});
The real algorithm behind the rating calculation is obviously secret
To get rating deviation use this:
PHP Code:
updateratingdeviation(float, float) - returns float - old deviation, time of last spar, returns new deviation