fix issue with button detection
This commit is contained in:
parent
1484d63b97
commit
59f1699228
@ -331,18 +331,18 @@ namespace IW4MAdmin.Plugins.Stats.Cheat
|
|||||||
if (!shouldIgnoreDetection)
|
if (!shouldIgnoreDetection)
|
||||||
{
|
{
|
||||||
validButtonHitCount++;
|
validButtonHitCount++;
|
||||||
}
|
|
||||||
|
|
||||||
double lastDiff = hit.TimeOffset - hit.TimeSinceLastAttack;
|
double lastDiff = hit.TimeOffset - hit.TimeSinceLastAttack;
|
||||||
if (validButtonHitCount > 0 && lastDiff <= 0)
|
if (validButtonHitCount > 0 && lastDiff <= 0)
|
||||||
{
|
|
||||||
results.Add(new DetectionPenaltyResult()
|
|
||||||
{
|
{
|
||||||
ClientPenalty = EFPenalty.PenaltyType.Ban,
|
results.Add(new DetectionPenaltyResult()
|
||||||
Value = lastDiff,
|
{
|
||||||
HitCount = HitCount,
|
ClientPenalty = EFPenalty.PenaltyType.Ban,
|
||||||
Type = DetectionType.Button
|
Value = lastDiff,
|
||||||
});
|
HitCount = HitCount,
|
||||||
|
Type = DetectionType.Button
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user