Skip to content

Commit

Permalink
rename NoSlowB-E to SprintA-D
Browse files Browse the repository at this point in the history
they aren't really "NoSlow" cheats
  • Loading branch information
ManInMyVan committed Dec 28, 2024
1 parent b7c8ca1 commit 069c503
Show file tree
Hide file tree
Showing 30 changed files with 45 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
import ac.grim.grimac.utils.anticheat.update.PredictionComplete;
import com.github.retrooper.packetevents.protocol.player.ClientVersion;

@CheckData(name = "NoSlowA (Prediction)", configName = "NoSlowA", description = "Was not slowed while using an item", setback = 5)
public class NoSlowA extends Check implements PostPredictionCheck {
@CheckData(name = "NoSlow (Prediction)", configName = "NoSlow", description = "Was not slowed while using an item", setback = 5)
public class NoSlow extends Check implements PostPredictionCheck {
double offsetToFlag;
double bestOffset = 1;
// The player sends that they switched items the next tick if they switch from an item that can be used
// to another item that can be used. What the fuck mojang. Affects 1.8 (and most likely 1.7) clients.
public boolean didSlotChangeLastTick = false;
public boolean flaggedLastTick = false;

public NoSlowA(GrimPlayer player) {
public NoSlow(GrimPlayer player) {
super(player);
}

Expand Down Expand Up @@ -52,6 +52,6 @@ public void handlePredictionAnalysis(double offset) {

@Override
public void onReload(ConfigManager config) {
offsetToFlag = config.getDoubleElse("NoSlowA.threshold", 0.001);
offsetToFlag = config.getDoubleElse("NoSlow.threshold", 0.001);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientPlayerFlying;

@CheckData(name = "NoSlowB", description = "Sprinting with too low hunger", setback = 5)
public class NoSlowB extends Check implements PacketCheck {
public class SprintA extends Check implements PacketCheck {

public NoSlowB(GrimPlayer player) {
public SprintA(GrimPlayer player) {
super(player);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import com.github.retrooper.packetevents.protocol.player.ClientVersion;

@CheckData(name = "NoSlowC", description = "Sprinting while sneaking", setback = 5, experimental = true)
public class NoSlowC extends Check implements PostPredictionCheck {
public NoSlowC(GrimPlayer player) {
public class SprintB extends Check implements PostPredictionCheck {
public SprintB(GrimPlayer player) {
super(player);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import com.github.retrooper.packetevents.protocol.player.ClientVersion;

@CheckData(name = "NoSlowD", description = "Sprinting while using an item", setback = 5, experimental = true)
public class NoSlowD extends Check implements PostPredictionCheck {
public NoSlowD(GrimPlayer player) {
public class SprintC extends Check implements PostPredictionCheck {
public SprintC(GrimPlayer player) {
super(player);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
import static com.github.retrooper.packetevents.protocol.potion.PotionTypes.BLINDNESS;

@CheckData(name = "NoSlowE", description = "Started sprinting while having blindness", setback = 5, experimental = true)
public class NoSlowE extends Check implements PostPredictionCheck {
public NoSlowE(GrimPlayer player) {
public class SprintD extends Check implements PostPredictionCheck {
public SprintD(GrimPlayer player) {
super(player);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ac.grim.grimac.events.packets;

import ac.grim.grimac.GrimAPI;
import ac.grim.grimac.checks.impl.movement.NoSlowA;
import ac.grim.grimac.checks.impl.movement.NoSlow;
import ac.grim.grimac.player.GrimPlayer;
import com.github.retrooper.packetevents.PacketEvents;
import com.github.retrooper.packetevents.event.PacketListenerAbstract;
Expand Down Expand Up @@ -177,7 +177,7 @@ public void onPacketReceive(PacketReceiveEvent event) {
&& player.packetStateData.getSlowedByUsingItemSlot() != player.packetStateData.lastSlotSelected
|| player.getInventory().getItemInHand(player.packetStateData.eatingHand).isEmpty()) {
player.packetStateData.setSlowedByUsingItem(false);
player.checkManager.getPostPredictionCheck(NoSlowA.class).didSlotChangeLastTick = true;
player.checkManager.getPostPredictionCheck(NoSlow.class).didSlotChangeLastTick = true;
}
}
}
Expand Down
14 changes: 7 additions & 7 deletions src/main/java/ac/grim/grimac/manager/CheckManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public CheckManager(GrimPlayer player) {
.put(MultiActionsD.class, new MultiActionsD(player))
.put(MultiActionsE.class, new MultiActionsE(player))
.put(TransactionOrder.class, new TransactionOrder(player))
.put(NoSlowB.class, new NoSlowB(player))
.put(SprintA.class, new SprintA(player))
.put(SetbackBlocker.class, new SetbackBlocker(player)) // Must be last class otherwise we can't check while blocking packets
.build();
positionCheck = new ImmutableClassToInstanceMap.Builder<PositionCheck>()
Expand Down Expand Up @@ -137,10 +137,10 @@ public CheckManager(GrimPlayer player) {
.put(SuperDebug.class, new SuperDebug(player))
.put(DebugHandler.class, new DebugHandler(player))
.put(EntityControl.class, new EntityControl(player))
.put(NoSlowA.class, new NoSlowA(player))
.put(NoSlowC.class, new NoSlowC(player))
.put(NoSlowD.class, new NoSlowD(player))
.put(NoSlowE.class, new NoSlowE(player))
.put(NoSlow.class, new NoSlow(player))
.put(SprintB.class, new SprintB(player))
.put(SprintC.class, new SprintC(player))
.put(SprintD.class, new SprintD(player))
.put(MultiInteractA.class, new MultiInteractA(player))
.put(MultiInteractB.class, new MultiInteractB(player))
.put(SetbackTeleportUtil.class, new SetbackTeleportUtil(player)) // Avoid teleporting to new position, update safe pos last
Expand Down Expand Up @@ -345,8 +345,8 @@ public CompensatedCooldown getCompensatedCooldown() {
return getPositionCheck(CompensatedCooldown.class);
}

public NoSlowA getNoSlow() {
return getPostPredictionCheck(NoSlowA.class);
public NoSlow getNoSlow() {
return getPostPredictionCheck(NoSlow.class);
}

public SetbackTeleportUtil getSetbackUtil() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package ac.grim.grimac.utils.data.packetentity;

import ac.grim.grimac.checks.impl.movement.NoSlowE;
import ac.grim.grimac.checks.impl.movement.SprintD;
import ac.grim.grimac.player.GrimPlayer;
import ac.grim.grimac.utils.collisions.datatypes.SimpleCollisionBox;
import ac.grim.grimac.utils.data.attribute.ValuedAttribute;
Expand Down Expand Up @@ -150,7 +150,7 @@ public boolean inVehicle() {
@Override
public void addPotionEffect(PotionType effect, int amplifier) {
if (effect == PotionTypes.BLINDNESS && !hasPotionEffect(PotionTypes.BLINDNESS)) {
player.checkManager.getPostPredictionCheck(NoSlowE.class).startedSprintingBeforeBlind = player.isSprinting;
player.checkManager.getPostPredictionCheck(SprintD.class).startedSprintingBeforeBlind = player.isSprinting;
}

player.pointThreeEstimator.updatePlayerPotions(effect, amplifier);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RotationPlace:
# Prediction-based no slow check
# Grim ist verantwortlich für den fehlerhaften Netcode hier... schwer zu falsen, selbst wenn man Rechtsklick und Offhand-Taste spammt.
# Viel stabiler als andere Anticheats, aber bitte melde alle Falses... Ich habe hier eine Menge Netcode-Probleme behoben.
NoSlowA:
NoSlow:
# Wie viel von einem Offset ist "schummeln"
# Standardmäßig ist dieser Wert niedriger als andere Offs.
# Flags um 0,03-0,2 konsequent mit NoSlow on
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RotationPlace:
# Prediction-based no slow check
# Grim accounts for buggy netcode here... hard to false even when spamming right click and offhand button
# Much more stable than other anticheats, but please report any falses... I have fixed a ton of netcode issues here.
NoSlowA:
NoSlow:
# How much of an offset is "cheating"
# By default this is lower than other offs
# Flags by 0.03-0.2 consistently with NoSlow on
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ RotationPlace:
# clic derecho y la mano secundaria.
# Mucho mas estable que otros anti-cheats, pero por favor reportar todo falso positivo... he arreglado muchos
# problemas del código de red aquí.
NoSlowA:
NoSlow:
# ¿Cuánta debería ser la compensacion como para que se considere trampa?
# Por defecto esto es más bajo que otras compensaciones
# Marca por 0.03-0.2 consistentemente con NoSlow activado
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RotationPlace:
# Vérification de no-slow basée sur la prédiction.
# Grim tient compte des problèmes de netcode ici... difficile à tromper même en spamant le clic droit et le bouton de la main secondaire.
# Bien plus stable que les autres anti-triche, mais veuillez signaler toute fausse détection... J'ai corrigé de nombreux problèmes de netcode ici.
NoSlowA:
NoSlow:
# Quel est le niveau d'écart considéré comme "triche"
# Par défaut, cela est inférieur à d'autres écarts.
# Génère des avertissements avec des valeurs comprises entre 0,03 et 0,2 lors de l'utilisation de NoSlow
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ RotationPlace:
# Livello di violazione per il piazzamento con rotazione specifica
cancelvl: 5

NoSlowA:
NoSlow:
# Limite per rilevare l'uso scorretto dell'oggetto
threshold: 0.001
# Livello di violazione per l'uso scorretto dell'oggetto
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ RotationPlace:
# 予測に基づく「NoSlow」チェック
# Grimは、バグのあるネットコードを考慮しており、右クリックやオフハンドボタンを連打しても誤検知が起こりにくくなっています。
# 他のアンチチートよりも安定していますが、もし誤検知があれば報告してください。ネットコードの問題を多数修正しています。
NoSlowA:
NoSlow:
# どれだけのズレが「チート」として扱われるか
# デフォルトで他のズレ基準よりも低めに設定されています
# NoSlow(速度低下なし)の状態では、0.03〜0.2の範囲で一貫してフラグが立ちます
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RotationPlace:
# Op voorspelling gebaseerde NoSlow-controle
# Grim is verantwoordelijk voor buggy netcode hier... moeilijk om vals te spelen, zelfs als je met rechts klikt en de offhand-knop spamt
# Veel stabieler dan andere anticheats, maar rapporteer alsjeblieft alle falses... Ik heb hier een heleboel netcode-problemen opgelost.
NoSlowA:
NoSlow:
# Hoeveel van een offset is "valsspelen"?
# Standaard is dit lager dan andere offs
# Flaggen met 0.03-0.2 consequent met NoSlow aan
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ RotationPlace:
# Grim considera erros no netcode. Difícil de gerar falsos positivos, até mesmo spamando o blotão direito e a offhand.
# Muito mais estável que outros anticheats, mas por favor, reporte quaisquer falsos positivos. Eu já arrumei diversos
# erros de netcode.
NoSlowA:
NoSlow:
# Quanto de desalinhamento é considerado trapaça?
# Por padrão é menor que os outros.
# Em 0.03-0.2 detecta com consistência.
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RotationPlace:
# Основанная на предсказаниях проверка на отсутствие замедления
# Grim учитывает баги неткода здесь... трудно ошибиться, даже если спамить правым кликом и кнопкой оффхенд.
# Намного стабильнее, чем другие античиты, но, пожалуйста, сообщайте о любых фейлах... Я исправил тонну проблем с неткодом.
NoSlowA:
NoSlow:
# Насколько большое смещение является "читерством".
# По умолчанию это меньше, чем другие смещения
# Флаги на 0.03-0.2 последовательно при включенном NoSlow
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/tr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RotationPlace:
# Tahmin tabanlı yavaşlama kontrolü
# Grim burada hatalı ağ kodunu dikkate alır... sağ tıklama ve el yan tuşunu spam yapsanız bile yanlış pozitiflik oluşturması zordur
# Diğer anti-hilelerden çok daha stabil, ancak herhangi bir yanlış pozitif rapor edin... burada birçok ağ kodu sorununu çözdüm.
NoSlowA:
NoSlow:
# Ne kadar bir sapma "hile" olarak kabul edilir?
# Varsayılan olarak bu, diğer sapmalardan daha düşüktür
# NoSlow açıkken 0.03-0.2 aralığında sürekli olarak uyarı verir
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config/zh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ RotationPlace:
# 使用模拟移动进行的NoSlow(使用物品时不会减速)检查
# 在这里解释错误的服务器代码......即使在发送垃圾数据包时右键单击和副手按钮也很分辨
# 比其他反作弊更稳定,但请报告任何错误......我在这里修复了大量的代码问题。
NoSlowA:
NoSlow:
# 有多少偏移量是作弊
# 标志 0.03-0.2 与 NoSlow 一致
threshold: 0.001
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Punishments:
checks:
- "EntityControl"
- "NoSlow"
- "Sprint"
- "MultiActions"
- "Place"
- "Baritone"
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Punishments:
checks:
- "EntityControl"
- "NoSlow"
- "Sprint"
- "MultiActions"
- "Place"
- "Baritone"
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Punishments:
checks:
- "EntityControl"
- "NoSlow"
- "Sprint"
- "MultiActions"
- "Place"
- "Baritone"
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Punishments:
checks:
- "EntityControl"
- "NoSlow"
- "Sprint"
- "MultiActions"
- "Place"
- "Baritone"
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Punishments:
checks:
- "EntityControl"
- "NoSlow"
- "Sprint"
- "MultiActions"
- "Place"
- "Baritone"
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Punishments:
checks:
- "EntityControl"
- "NoSlow"
- "Sprint"
- "MultiActions"
- "Place"
- "Baritone"
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Punishments:
checks:
- "EntityControl"
- "NoSlow"
- "Sprint"
- "MultiActions"
- "Place"
- "Baritone"
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Punishments:
checks:
- "EntityControl"
- "NoSlow"
- "Sprint"
- "MultiActions"
- "Place"
- "Baritone"
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Punishments:
checks:
- "EntityControl"
- "NoSlow"
- "Sprint"
- "MultiActions"
- "Place"
- "Baritone"
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/tr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Punishments:
checks:
- "EntityControl"
- "NoSlow"
- "Sprint"
- "MultiActions"
- "Place"
- "Baritone"
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/punishments/zh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Punishments:
checks:
- "EntityControl"
- "NoSlow"
- "Sprint"
- "MultiActions"
- "Place"
- "Baritone"
Expand Down

0 comments on commit 069c503

Please sign in to comment.