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:
@ -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;
|
||||
|
Reference in New Issue
Block a user