1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-11 15:52:25 -05:00

fixed the vpn detection plugin method signature call

added some fixes for stats/ac
This commit is contained in:
RaidMax
2018-10-06 15:31:05 -05:00
parent b902069b23
commit 6b9f4f3bb7
11 changed files with 36 additions and 24 deletions

View File

@ -147,7 +147,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
});
#if DEBUG == true
var statsInfoSql = iqStatsInfo.ToSql();
var statsInfoSql = iqStatsInfo.ToSql();
#endif
var topPlayers = await iqStatsInfo.ToListAsync();
@ -406,6 +406,14 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
string fraction, string visibilityPercentage, string snapAngles)
{
var statsSvc = ContextThreads[serverId];
// incase the add palyer event get delayed
if (!Servers[serverId].PlayerStats.ContainsKey(attacker.ClientId))
{
await AddPlayer(attacker);
}
Vector3 vDeathOrigin = null;
Vector3 vKillOrigin = null;
Vector3 vViewAngles = null;
@ -675,7 +683,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
}
#if DEBUG
Log.WriteDebug("Calculating standard kill");
Log.WriteDebug("Calculating standard kill");
#endif
// update the total stats
@ -727,7 +735,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
#if !DEBUG
if ((DateTime.UtcNow - attackerStats.LastStatHistoryUpdate).TotalMinutes >= 2.5)
#else
if ((DateTime.UtcNow - attackerStats.LastStatHistoryUpdate).TotalMinutes >= 0.1)
if ((DateTime.UtcNow - attackerStats.LastStatHistoryUpdate).TotalMinutes >= 0.1)
#endif
{
attackerStats.LastStatHistoryUpdate = DateTime.UtcNow;