View Single Post
  #9  
Old 11-09-2008, 03:47 PM
Dan Dan is offline
Daniel
Join Date: Oct 2007
Posts: 383
Dan is an unknown quantity at this point
Send a message via MSN to Dan
Quote:
Originally Posted by Desear View Post
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,ratingdeviation1rating2,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(floatfloat) - returns float old deviationtime of last sparreturns new deviation 
__________________
Reply With Quote