mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Improve Fastplace with little tidbits each day.
This commit is contained in:
1 parent
287fd3f293
commit
ae41d9c21e
1 file changed
+4
-4
@@ -47,7 +47,7 @@ public class Backend
|
|||||||
public static final int FASTBREAK_MAXVIOLATIONTIME = 10000;
|
public static final int FASTBREAK_MAXVIOLATIONTIME = 10000;
|
||||||
public static final int FASTPLACE_LIMIT = 2;
|
public static final int FASTPLACE_LIMIT = 2;
|
||||||
public static final int FASTPLACE_ZEROLIMIT = 3;
|
public static final int FASTPLACE_ZEROLIMIT = 3;
|
||||||
public static final int FASTPLACE_TIMEMAX = 100;
|
public static final int FASTPLACE_TIMEMAX = 80;
|
||||||
public static final int FASTPLACE_MAXVIOLATIONS = 2;
|
public static final int FASTPLACE_MAXVIOLATIONS = 2;
|
||||||
public static final int FASTPLACE_MAXVIOLATIONTIME = 10000;
|
public static final int FASTPLACE_MAXVIOLATIONTIME = 10000;
|
||||||
|
|
||||||
@@ -379,11 +379,11 @@ public class Backend
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
lastZeroHitPlace.put(name, lastZeroHitPlace.get(name)+1);
|
lastZeroHitPlace.put(name, lastZeroHitPlace.get(name)+1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!nocheck && thisTime < FASTPLACE_TIMEMAX && lastTime < FASTPLACE_TIMEMAX
|
if(thisTime < FASTPLACE_TIMEMAX && lastTime < FASTPLACE_TIMEMAX
|
||||||
&& lastZeroHitPlace.get(name) > FASTPLACE_ZEROLIMIT)
|
|| nocheck && lastZeroHitPlace.get(name) > FASTPLACE_ZEROLIMIT)
|
||||||
{
|
{
|
||||||
lastBlockPlaceTime.put(name, (time-last));
|
lastBlockPlaceTime.put(name, (time-last));
|
||||||
lastBlockPlaced.put(name, time);
|
lastBlockPlaced.put(name, time);
|
||||||
|
|||||||
Reference in new issue
Block a user