mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-02 13:57:49 +01:00
further refinement of threshold values for moving check
This commit is contained in:
parent
62592a3580
commit
0dea0c0285
@ -52,7 +52,7 @@ public class MovingCheck extends Check {
|
|||||||
// How high may a player move in one event on ground
|
// How high may a player move in one event on ground
|
||||||
private final static double stepHeight = 0.501D;
|
private final static double stepHeight = 0.501D;
|
||||||
|
|
||||||
private final static double stepWidth = 0.25D;
|
private final static double stepWidth = 0.22D;
|
||||||
private final static double sneakWidth = 0.14D;
|
private final static double sneakWidth = 0.14D;
|
||||||
private final static double swimWidth = 0.18D;
|
private final static double swimWidth = 0.18D;
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ public class MovingCheck extends Check {
|
|||||||
int violationLevelHorizontal = limitCheck(data.runningThreshold - 1);
|
int violationLevelHorizontal = limitCheck(data.runningThreshold - 1);
|
||||||
|
|
||||||
// Reduce horiz moving freedom with each event
|
// Reduce horiz moving freedom with each event
|
||||||
data.runningThreshold *= 0.95;
|
data.runningThreshold *= 0.97;
|
||||||
data.horizFreedom *= 0.9;
|
data.horizFreedom *= 0.9;
|
||||||
|
|
||||||
/**** Horizontal movement check END ****/
|
/**** Horizontal movement check END ****/
|
||||||
|
Loading…
Reference in New Issue
Block a user