mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-13 03:00:47 +01:00
Remove the unused velocitygraceticks thing.
This commit is contained in:
parent
92b5d0ff60
commit
6e602af816
@ -152,9 +152,9 @@ public class MovingConfig extends ACheckConfig {
|
||||
public final double sfHoverViolation;
|
||||
|
||||
// Special tolerance values:
|
||||
/** This is not strictly ticks, but packets, for now.*/
|
||||
public final int velocityGraceTicks;
|
||||
/** Number of moving packets until which a velocity entry must be activated, in order to not be removed.*/
|
||||
public final int velocityActivationCounter;
|
||||
/** Server ticks until invalidating queues velocity. */
|
||||
public final int velocityActivationTicks;
|
||||
public final boolean velocityStrictInvalidation;
|
||||
public final double noFallyOnGround;
|
||||
@ -262,7 +262,6 @@ public class MovingConfig extends ACheckConfig {
|
||||
sfHoverFallDamage = config.getBoolean(ConfPaths.MOVING_SURVIVALFLY_HOVER_FALLDAMAGE);
|
||||
sfHoverViolation = config.getDouble(ConfPaths.MOVING_SURVIVALFLY_HOVER_SFVIOLATION);
|
||||
|
||||
velocityGraceTicks = config.getInt(ConfPaths.MOVING_VELOCITY_GRACETICKS);
|
||||
velocityActivationCounter = config.getInt(ConfPaths.MOVING_VELOCITY_ACTIVATIONCOUNTER);
|
||||
velocityActivationTicks = config.getInt(ConfPaths.MOVING_VELOCITY_ACTIVATIONTICKS);
|
||||
velocityStrictInvalidation = config.getBoolean(ConfPaths.MOVING_VELOCITY_STRICTINVALIDATION);
|
||||
|
@ -469,14 +469,6 @@ public class SurvivalFly extends Check {
|
||||
data.insideMediumCount ++;
|
||||
}
|
||||
|
||||
// // Invalidation of vertical velocity.
|
||||
// // TODO: This invalidation is wrong in case of already jumped higher (can not be repaired?).
|
||||
// if (yDistance <= 0 && data.sfLastYDist > 0 && data.sfLastYDist != Double.MAX_VALUE
|
||||
// && data.invalidateVerVelGrace(cc.velocityGraceTicks, false)) {
|
||||
// // (Only prevent counting further up, leaves the freedom.)
|
||||
// tags.add("cap_vvel"); // TODO: Test / validate by logs.
|
||||
// }
|
||||
|
||||
// Apply reset conditions.
|
||||
if (resetTo) {
|
||||
// The player has moved onto ground.
|
||||
@ -525,11 +517,6 @@ public class SurvivalFly extends Check {
|
||||
// Invalidate used horizontal velocity.
|
||||
// NCPAPIProvider.getNoCheatPlusAPI().getLogManager().debug(Streams.TRACE_FILE, "*** INVALIDATE ON SPEED");
|
||||
data.clearActiveHorVel();
|
||||
// if (data.horizontalVelocityUsed > cc.velocityGraceTicks) {
|
||||
// data.horizontalFreedom = 0;
|
||||
// data.horizontalVelocityCounter = 0;
|
||||
// data.horizontalVelocityUsed = 0;
|
||||
// }
|
||||
}
|
||||
// Adjust data.
|
||||
data.toWasReset = resetTo || data.noFallAssumeGround;
|
||||
|
@ -582,7 +582,6 @@ public abstract class ConfPaths {
|
||||
|
||||
// Special (to be sorted in or factored out).
|
||||
private static final String MOVING_VELOCITY = MOVING + "velocity.";
|
||||
public static final String MOVING_VELOCITY_GRACETICKS = MOVING_VELOCITY + "graceticks";
|
||||
public static final String MOVING_VELOCITY_ACTIVATIONCOUNTER = MOVING_VELOCITY + "activationcounter";
|
||||
public static final String MOVING_VELOCITY_ACTIVATIONTICKS = MOVING_VELOCITY + "activationticks";
|
||||
public static final String MOVING_VELOCITY_STRICTINVALIDATION = MOVING_VELOCITY + "strictinvalidation";
|
||||
@ -729,5 +728,7 @@ public abstract class ConfPaths {
|
||||
public static final String MOVING_SURVIVALFLY_BEDSTEP ="checks.moving.survivalfly.bedstep";
|
||||
@Deprecated
|
||||
public static final String LOGGING_BACKEND_CONSOLE_PREFIX = "logging.backend.console.prefix";
|
||||
@Deprecated
|
||||
public static final String MOVING_VELOCITY_GRACETICKS = "checks.moving.velocity.graceticks";
|
||||
|
||||
}
|
||||
|
@ -429,7 +429,6 @@ public class DefaultConfig extends ConfigFile {
|
||||
set(ConfPaths.MOVING_VEHICLES_ENFORCELOCATION, "default");
|
||||
|
||||
// Velocity.
|
||||
set(ConfPaths.MOVING_VELOCITY_GRACETICKS, 20);
|
||||
set(ConfPaths.MOVING_VELOCITY_ACTIVATIONCOUNTER, 80);
|
||||
set(ConfPaths.MOVING_VELOCITY_ACTIVATIONTICKS, 140);
|
||||
set(ConfPaths.MOVING_VELOCITY_STRICTINVALIDATION, true);
|
||||
|
Loading…
Reference in New Issue
Block a user