Skip to content

Commit

Permalink
Merge pull request #19 from Hedius/test
Browse files Browse the repository at this point in the history
Version 8.1.7.0
  • Loading branch information
Hedius authored Oct 19, 2022
2 parents 136375d + 87f7359 commit 9a9a14d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
16 changes: 10 additions & 6 deletions AdKats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
* Work on fork by Hedius (Version >= 8.0.0.0)
*
* AdKats.cs
* Version 8.1.6.0
* 14-OCT-2022
* Version 8.1.7.0
* 19-OCT-2022
*
* Automatic Update Information
* <version_code>8.1.6.0</version_code>
* <version_code>8.1.7.0</version_code>
*/

using System;
Expand Down Expand Up @@ -68,7 +68,7 @@ public class AdKats : PRoConPluginAPI, IPRoConPluginInterface
{

//Current Plugin Version
private const String PluginVersion = "8.1.6.0";
private const String PluginVersion = "8.1.7.0";

public enum GameVersionEnum
{
Expand Down Expand Up @@ -16792,7 +16792,9 @@ private void ProcessPlayerKill(AKill aKill)
!EventActive())
{
//KPM check
Int32 lowCountRecent = aKill.killer.LiveKills.Count(dKill => (DateTime.Now - dKill.TimeStamp).TotalSeconds < 60);
Int32 lowCountRecent = aKill.killer.LiveKills.Count(dKill => 0 <= (DateTime.Now - dKill.TimeStamp).TotalSeconds
&& (DateTime.Now - dKill.TimeStamp).TotalSeconds < 60
&& dKill.weaponDamage != DamageTypes.VehicleAir);
int lowCountBan =
((GameVersion == GameVersionEnum.BF3) ? (25) : (20)) -
((aKill.killer.fbpInfo.Rank <= 15) ? (6) : (0));
Expand All @@ -16812,7 +16814,9 @@ private void ProcessPlayerKill(AKill aKill)
});
return;
}
Int32 highCountRecent = aKill.killer.LiveKills.Count(dKill => (DateTime.Now - dKill.TimeStamp).TotalSeconds < 120);
Int32 highCountRecent = aKill.killer.LiveKills.Count(dKill => 0 <= (DateTime.Now - dKill.TimeStamp).TotalSeconds
&& (DateTime.Now - dKill.TimeStamp).TotalSeconds < 120
&& dKill.weaponDamage != DamageTypes.VehicleAir);
int highCountBan =
((GameVersion == GameVersionEnum.BF3) ? (40) : (32)) -
((aKill.killer.fbpInfo.Rank <= 15) ? (8) : (0));
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1567,3 +1567,23 @@ Added small improvements to fuzzy player match response text.</li>
<ul>
<li><b>No upgrade SQL required.</b></li>
</ul>


<h4>8.1.7.0 (19-OCT-2022)</h4>
<b>Enhancements</b><br/>
<ul>
<li>None</li>
</ul>
<b>Changes</b><br/>
<ul>
<li>None</li>
</ul>
<b>Bugs Fixed</b><br/>
<ul>
<li>Mass bans of KPM checker during switch from summer to winter time should be now fixed.</li>
<li>The KPM checker no longer counts kills of the category VehicleAir. This should prevent KPM bans for heli players on Shanghai. (Often above the limits)</li>
</ul>
<b>Upgrade SQL from 4.0.0.0 - Current</b><br/>
<ul>
<li><b>No upgrade SQL required.</b></li>
</ul>

0 comments on commit 9a9a14d

Please sign in to comment.