1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 23:31:13 -05:00

some of these are meant for previous commit

assigned groups colors!
!find now reports the user's group
ban appeal listed by _website
group help commands so not to clog up the chat
updated stats calculation
speed up rcon output 0.8 -> 0.56
fixed logfile not flushing
This commit is contained in:
RaidMax
2015-03-11 20:25:14 -05:00
parent c7f8b0591b
commit ef80a565cb
12 changed files with 344 additions and 38 deletions

View File

@ -14,10 +14,15 @@ namespace IW4MAdmin
Skill = Math.Round(skill,2);
}
public void Update()
public void updateKDR()
{
KDR = Math.Round((double)((double)Kills / (double)Deaths), 2);
Skill = Math.Round((double)Kills * (((double)Kills / (double)Deaths) / 10), 2);
}
public void updateSkill(double enemySkill)
{
Skill = (Math.Round((double)Kills * (((double)Kills / (double)Deaths) / 10), 2));
Skill = Math.Round(Math.Log(Skill) * (enemySkill / 2) + (Math.Log(Deaths + 1) * 0.3) * 12, 2);
}
public int Kills;