1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fix issue with selecting wrong parser during setup

add minimum name length option
fix issue with stats spm
This commit is contained in:
RaidMax
2021-06-27 20:31:39 -05:00
parent be6b84ef02
commit 27ad872e56
4 changed files with 14 additions and 8 deletions

View File

@ -872,8 +872,12 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
victimStats.LastScore = 0;
}
var estimatedAttackerScore = attacker.Score > 0 ? attacker.Score : attackerStats.SessionKills * 50;
var estimatedVictimScore = victim.Score > 0 ? victim.Score : victimStats.SessionKills * 50;
var estimatedAttackerScore = (int)attacker.CurrentServer.GameName != 10
? attacker.Score
: (attackerStats.SessionKills * 50) / (attacker.ConnectionLength / 60);
var estimatedVictimScore = (int)attacker.CurrentServer.GameName != 10
? victim.Score
: victimStats.SessionKills * 50 / (attacker.ConnectionLength / 60);
attackerStats.SessionScore = estimatedAttackerScore;
victimStats.SessionScore = estimatedVictimScore;