rendered paste body//What is Player's rank... private, scout...
/*
uint32 Player::CalculateHonorRank(float honor_points) const
{
int rank = 0;
if(honor_points <= 0.00) rank = 0; else
if(honor_points < 2000.00) rank = 1;
else
rank = ( (int)(honor_points / 5000) + 1);
return rank;
}
*/
//Player rank by Obnosis
uint32 Player::CalculateHonorRank(float lifetime_honorableKills, lifetime_dishonorableKills) const
{
int rank = 0;
if(lifetime_honorableKills-lifetime_dishonorableKills <= 0) rank = 0; else
if(lifetime_honorableKills-lifetime_dishonorableKills <=1) rank = 1;
return rank;
}