well mate, a long time ago I'd done a system that calculates points based on the elo system.
Here is the math that I come up with:
PHP Code:
public client_death( iKiller, iVictim, iWpnIndex, iHitPlace, iTK )
{
// MATH STUFF
div1 = float(elo_rating[iKiller])/400
div2 = float(elo_rating[iVictim])/400
QA = floatpower(10.0,div1)
QB = floatpower(10.0,div2)
kill_points = floatdiv(QA,QA+QB)
if( elo_rating[iKiller] >= 2400 )
{
Kfactor = 15
}
else if( elo_rating[iKiller] < 2400 )
{
Kfactor = 20
}
else if( g_iKills[iKiller] < 50 )
{
if( elo_rating[iKiller] >= 2400 )
{
Kfactor = 15
}
else
{
Kfactor = 35
}
}
calculate_points = Kfactor * (1 - kill_points)
points = floatround(calculate_points)
// END MATH STUFF
}
__________________