Memeware 7.3 NoHurtCam module 2 files, 166 lines

Memeware 7.3 NoHurtCam: Full Source Analysis

NoHurtCam ships as an empty shell: the constructor registers the module and nothing else.

me/memewaredevs/client/module/render/NoHurtCam.java · GitHub source ↗

Published 2026-08-13 · Updated 2026-08-13

Packets This Module Uses

Analysis

Overview

NoHurtCam ships as an empty shell: the constructor registers the module and nothing else. It declares no Consumer fields, overrides no onEnable or onDisable, and toggle() therefore subscribes a handler-less instance to the event bus. The module is inert. The latent mechanism it is named for is the vanilla hurtcam: the S0B hurt-animation packet reaches NetHandlerPlayClient.handleAnimation, which calls performHurtAnimation on the local player (hurtTime 10, hurtResistantTime 20), and EntityRenderer.hurtCameraEffect turns that hurtTime into a camera offset. A real implementation would zero that offset in the render pass; the shipped class does not.

Inert registration

Memeware modules get their behavior from public Consumer fields: Module.toggle() calls EventAPI.put(this) on enable, the PubSub bus subscribes the instance, and every Consumer field whose generic type matches a fired event is invoked. AntiBlind's eventConsumer0 is that pattern; NoHurtCam declares no such field and overrides neither onEnable nor onDisable, so enabling it subscribes an instance with zero handlers and disabling it removes it. The module has no settings either. Toggling it changes nothing observable, locally or on the wire.

The latent hurtcam path

Vanilla 1.8.9 hurtcam is receive-driven: the server broadcasts S0B (S0BPacketAnimation) with animation type 1 when the player takes damage, the fork's NetHandlerPlayClient.handleAnimation dispatches it, and performHurtAnimation sets hurtTime 10 and hurtResistantTime 20 on the local player. EntityRenderer.hurtCameraEffect (line 589) then derives the camera offset from (float)hurtTime minus partialTicks, clamping it against the 20-tick resistance window, and applies the roll and offset in renderWorld. A working NoHurtCam would either clear hurtTime each tick or replace the offset computation; this class does neither, so the camera still kicks on every hit.

Wire presence

The entire mechanism is client-local: S0B is server-to-client, and the camera transform happens inside EntityRenderer. Even a functional hurtcam remover would emit no packets, so the module family has no wire fingerprint. The inert shell is indistinguishable from a vanilla client by definition, and the checks below are the S0B-corpus animation-path checks that police the neighboring swing and attack traffic, none of which this module produces.

source NoHurtCam.java

NoHurtCam.java11 lines · JavaOriginal ↗
1
package me.memewaredevs.client.module.render;
2
3
import me.memewaredevs.client.module.Module;
4
5
public class NoHurtCam extends Module {
6
7
    public NoHurtCam() {
8
        super("NoHurtCam", 0, Category.RENDER);
9
    }
10
11
}

What this file does

The entire shipped module: constructor plus category registration and nothing else. The absence of Consumer fields is the finding; under the Memeware event contract a module without them is a no-op.

source Module.java (subscription contract)

Module.java155 lines · JavaOriginal ↗
1
/*
2
 * Decompiled with CFR 0.145.
3
 *
4
 * Could not load the following classes:
5
 *  com.google.common.collect.Lists
6
 */
7
package me.memewaredevs.client.module;
8
9
import me.memewaredevs.client.Memeware;
10
import me.memewaredevs.client.event.EventAPI;
11
import me.memewaredevs.client.module.hud.GameHud;
12
import me.memewaredevs.client.option.*;
13
import net.minecraft.block.Block;
14
import net.minecraft.client.Minecraft;
15
import org.apache.commons.lang3.StringUtils;
16
17
import java.util.ArrayList;
18
19
@SuppressWarnings("all")
20
public abstract class Module {
21
    protected static final Minecraft mc = Minecraft.getMinecraft();
22
    private boolean state = false;
23
    private final String name;
24
    private int key;
25
    private final Category category;
26
27
    public Module(final String name, final int key, final Category category) {
28
        this.name = name;
29
        this.key = key;
30
        this.category = category;
31
    }
32
33
    public final static Module getInstance(final Class<? extends Module> clazz) {
34
        return Memeware.INSTANCE.getModuleManager().get(clazz);
35
    }
36
37
    public final void addModes(final String... modes) {
38
        Memeware.INSTANCE.getSettingsManager().addSetting(new StringOption(this, "Mode", modes));
39
    }
40
41
    public final void addDouble(final String name, final double dval, final double min, final double max) {
42
        Memeware.INSTANCE.getSettingsManager().addSetting(new NumberOption(this, name, dval, min, max, false));
43
    }
44
45
    public final void addDouble(final String name, String mode, final double dval, final double min, final double max) {
46
        Memeware.INSTANCE.getSettingsManager().addSetting(new NumberOption(this, name, mode, dval, min, max, false));
47
    }
48
49
    public final void addInt(final String name, String mode, final double dval, final double min, final double max) {
50
        Memeware.INSTANCE.getSettingsManager().addSetting(new NumberOption(this, name, mode, dval, min, max, true));
51
    }
52
53
    public final void addBoolean(final String name, final boolean value) {
54
        Memeware.INSTANCE.getSettingsManager().addSetting(new BooleanOption(this, name, value));
55
    }
56
57
    public final void addInt(final String name, final double dval, final double min, final double max) {
58
        Memeware.INSTANCE.getSettingsManager().addSetting(new NumberOption(this, name, dval, min, max, true));
59
    }
60
61
    public final Double getDouble(final String string) {
62
        return (Double) Memeware.INSTANCE.getSettingsManager().getSettingByMod(this.getClass(), string).getValue();
63
    }
64
65
    public final Double getDouble(final String mode, final String string) {
66
        return (Double) Memeware.INSTANCE.getSettingsManager().getSettingByMod(this.getClass(), mode, string)
67
                .getValue();
68
    }
69
70
    public final boolean getBool(final String string) {
71
        return (Boolean) Memeware.INSTANCE.getSettingsManager().getSettingByMod(this.getClass(), string).getValue();
72
    }
73
74
    public final String getMode(boolean format) {
75
        try {
76
            Option<?> option = Memeware.INSTANCE.getSettingsManager().getSettingByMod(this.getClass(), "Mode");
77
            if (option != null) {
78
                String str = option.getValue().toString();
79
                if (format) {
80
                    str = "\2477 - " + str;
81
                }
82
                return str;
83
            }
84
        } catch (Exception e) {
85
86
        }
87
        return "";
88
    }
89
90
    public final boolean isMode(final String mode) {
91
        return getMode(false).equalsIgnoreCase(mode);
92
    }
93
94
    public final void toggle() {
95
        this.state = !this.state;
96
        if (this.state) {
97
            if (this.mc.thePlayer != null) {
98
                this.onEnable();
99
            }
100
            EventAPI.put(this);
101
        } else {
102
            EventAPI.remove(this);
103
            if (this.mc.thePlayer != null) {
104
                this.onDisable();
105
            }
106
        }
107
        GameHud.sortingUpdate = true;
108
    }
109
110
    public final boolean isToggled() {
111
        return this.state;
112
    }
113
114
    public void onEnable() {
115
116
    }
117
118
    public void onDisable() {
119
120
    }
121
122
    public Category getCategory() {
123
        return this.category;
124
    }
125
126
    public String getName() {
127
        return this.name;
128
    }
129
130
    public String getModuleDisplayname() {
131
        return this.name;
132
    }
133
134
    public void setKeyBind(final int keyCode) {
135
        this.key = keyCode;
136
    }
137
138
    public int getKey() {
139
        return this.key;
140
    }
141
142
    public void addBlockSelection(String name, ArrayList<Block> list) {
143
        Memeware.INSTANCE.getSettingsManager().addSetting(new BlockSelectionSetting(this, name, list));
144
    }
145
146
    public enum Category {
147
        COMBAT, MOVEMENT, PLAYER, MISC, RENDER, EXPLOIT;
148
149
        public String getName() {
150
            return StringUtils.capitalize(this.name().toLowerCase());
151
        }
152
153
    }
154
155
}

What this file does

The base class establishes the contract that proves inertness: toggle() subscribes the instance through EventAPI.put and the PubSub bus dispatches declared Consumer fields; NoHurtCam declares none, so nothing runs per tick. AntiBlind's eventConsumer0 is the same contract in action.

anticheat Countering Checks

The anticheat code that detects or counters the techniques this module uses. Full source, with the detection mechanism explained below each box.

anticheat Fight NoSwing (per-attack swing ledger)

NoSwing.java65 lines · Java
1
/*
2
 * This program is free software: you can redistribute it and/or modify
3
 *   it under the terms of the GNU General Public License as published by
4
 *   the Free Software Foundation, either version 3 of the License, or
5
 *   (at your option) any later version.
6
 *
7
 *   This program is distributed in the hope that it will be useful,
8
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 *   GNU General Public License for more details.
11
 *
12
 *   You should have received a copy of the GNU General Public License
13
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
14
 */
15
package fr.neatmonster.nocheatplus.checks.fight;
16
17
import org.bukkit.entity.Player;
18
19
import fr.neatmonster.nocheatplus.checks.Check;
20
import fr.neatmonster.nocheatplus.checks.CheckType;
21
22
/**
23
 * We require that the player moves their arm between attacks, this is basically what gets checked here.
24
 */
25
public class NoSwing extends Check {
26
27
    /**
28
     * Instantiates a new no swing check.
29
     */
30
    public NoSwing() {
31
        super(CheckType.FIGHT_NOSWING);
32
    }
33
34
    /**
35
     * Checks a player.
36
     * 
37
     * @param player
38
     *            the player
39
     * @return true, if successful
40
     */
41
    public boolean check(final Player player, final FightData data, final FightConfig cc) {
42
        boolean cancel = false;
43
44
        if (data.exemptArmSwing) {
45
            data.exemptArmSwing = false;
46
        }
47
        // Did they swing his arm before?
48
        else if (++data.noSwingCount <= 1) {
49
            // Yes, reward them with reduction of their violation level.
50
            data.noSwingVL *= 0.9D;
51
        } 
52
        else {
53
            data.noSwingCount = 0;
54
            // No, increase their violation level.
55
            data.noSwingVL += 1D;
56
57
            // Execute whatever actions are associated with this check and the violation level and find out if we should
58
            // cancel the event.
59
            cancel = executeActions(player, data.noSwingVL, 1D, cc.noSwingActions).willCancel();
60
        }
61
62
        return cancel;
63
    } 
64
65
}

How it counteracts this module

NCP's fight NoSwing enforces an arm swing between attacks: FightListener calls noSwing.check on the attack path, and a second consecutive attack with no intervening animation raises noSwingCount and the violation level, canceling at vl>2. The inert NoHurtCam neither attacks nor swings, so the ledger sees a vanilla stream and the check never engages. The entry is the honest boundary for a module with zero wire presence: the only animation-side checks that exist police the swing/attack pair, and this module produces neither side of it.

anticheat Post (packet-order stream)

Post.java124 lines · Java
1
package ac.grim.grimac.checks.impl.misc;
2
3
import ac.grim.grimac.api.storage.verbose.Verbose;
4
import ac.grim.grimac.checks.Check;
5
import ac.grim.grimac.checks.CheckData;
6
import ac.grim.grimac.checks.type.PacketReceiveListener;
7
import ac.grim.grimac.checks.type.PacketSendListener;
8
import ac.grim.grimac.checks.type.PostPredictionListener;
9
import ac.grim.grimac.checks.type.PostPredictionListener;
10
import ac.grim.grimac.player.GrimPlayer;
11
import ac.grim.grimac.utils.anticheat.update.PredictionComplete;
12
import ac.grim.grimac.utils.lists.EvictingQueue;
13
import com.github.retrooper.packetevents.PacketEvents;
14
import com.github.retrooper.packetevents.event.PacketReceiveEvent;
15
import com.github.retrooper.packetevents.event.PacketSendEvent;
16
import com.github.retrooper.packetevents.manager.server.ServerVersion;
17
import com.github.retrooper.packetevents.protocol.packettype.PacketType;
18
import com.github.retrooper.packetevents.protocol.packettype.PacketTypeCommon;
19
import com.github.retrooper.packetevents.protocol.player.ClientVersion;
20
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientEntityAction;
21
import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerEntityAnimation;
22
23
import java.util.ArrayDeque;
24
import java.util.List;
25
import java.util.Locale;
26
27
import static com.github.retrooper.packetevents.protocol.packettype.PacketType.Play.Client.*;
28
29
@CheckData(name = "Post", stableKey = "grim.post.invalid_order", description = "Sent packets out of the expected movement tick order")
30
public class Post extends Check implements PacketReceiveListener, PacketSendListener, PostPredictionListener {
31
    private static final Verbose V = Verbose.of("{str}");
32
33
    private final ArrayDeque<PacketTypeCommon> post = new ArrayDeque<>();
34
    // Due to 1.9+ missing the idle packet, we must queue flags
35
    // 1.8 clients will have the same logic for simplicity, although it's not needed
36
    private final List<String> flags = new EvictingQueue<>(10);
37
    private boolean sentFlying = false;
38
    private int isExemptFromSwingingCheck = Integer.MIN_VALUE;
39
40
    public Post(GrimPlayer player) {
41
        super(player);
42
    }
43
44
    @Override
45
    public void onPredictionComplete(final PredictionComplete predictionComplete) {
46
        if (flags.isEmpty()) {
47
            return;
48
        }
49
50
        // Okay, the user might be cheating, let's double check
51
        // 1.8 clients have the idle packet, and this shouldn't false on 1.8 clients
52
        // 1.9+ clients have predictions, which will determine if hidden tick skipping occurred
53
        if (player.isTickingReliablyFor(3)) {
54
            for (String flag : flags) {
55
                flag(V.write(verbose()).str(flag));
56
            }
57
        }
58
59
        flags.clear();
60
    }
61
62
    @Override
63
    public void onPacketSend(final PacketSendEvent event) {
64
        if (event.getPacketType() == PacketType.Play.Server.ENTITY_ANIMATION) {
65
            WrapperPlayServerEntityAnimation animation = new WrapperPlayServerEntityAnimation(event);
66
            if (animation.getEntityId() == player.entityID) {
67
                if (animation.getType() == WrapperPlayServerEntityAnimation.EntityAnimationType.SWING_MAIN_ARM ||
68
                        animation.getType() == WrapperPlayServerEntityAnimation.EntityAnimationType.SWING_OFF_HAND) {
69
                    isExemptFromSwingingCheck = player.lastTransactionSent.get();
70
                }
71
            }
72
        }
73
    }
74
75
    @Override
76
    public void onPacketReceive(final PacketReceiveEvent event) {
77
        if (isTickPacket(event.getPacketType())) { // Don't count teleports or duplicates as movements
78
            post.clear();
79
            sentFlying = true;
80
            return;
81
        }
82
83
        // 1.13+ clients can click inventory outside tick loop, so we can't post check those two packets on 1.13+
84
        PacketTypeCommon packetType = event.getPacketType();
85
        if (isTransaction(packetType) && player.packetStateData.lastTransactionPacketWasValid) {
86
            if (sentFlying && !post.isEmpty()) {
87
                flags.add(post.getFirst().toString().toLowerCase(Locale.ROOT).replace("_", " ") + " v" + player.getClientVersion().getReleaseName());
88
            }
89
            post.clear();
90
            sentFlying = false;
91
            return;
92
        }
93
94
        if (!sentFlying) {
95
            return;
96
        }
97
98
        if (PLAYER_ABILITIES.equals(packetType)
99
                || (HELD_ITEM_CHANGE.equals(packetType) && player.getClientVersion().isNewerThanOrEquals(ClientVersion.V_1_8))
100
                || INTERACT_ENTITY.equals(packetType) || PLAYER_BLOCK_PLACEMENT.equals(packetType)
101
                || ATTACK.equals(packetType) || SPECTATE_ENTITY.equals(packetType)
102
                || USE_ITEM.equals(packetType) || PLAYER_DIGGING.equals(packetType)) {
103
            post.add(event.getPacketType());
104
        } else if (CLICK_WINDOW.equals(packetType) && player.getClientVersion().isOlderThan(ClientVersion.V_1_13)) {
105
            // Why do 1.13+ players send the click window packet whenever? This doesn't make sense.
106
            post.add(event.getPacketType());
107
        } else if (ANIMATION.equals(packetType)
108
                && (player.getClientVersion().isNewerThanOrEquals(ClientVersion.V_1_9) // ViaVersion delays animations for 1.8 clients
109
                || PacketEvents.getAPI().getServerManager().getVersion().isOlderThanOrEquals(ServerVersion.V_1_8_8)) // when on 1.9+ servers
110
                && player.getClientVersion().isOlderThan(ClientVersion.V_1_13) // 1.13 clicking inventory causes weird animations
111
                && isExemptFromSwingingCheck < player.lastTransactionReceived.get()) { // Exempt when the server sends animations because viaversion
112
            post.add(event.getPacketType());
113
        } else if (ENTITY_ACTION.equals(packetType) // ViaRewind sends START_FALL_FLYING packets async for 1.8 clients on 1.9+ servers
114
                && (player.getClientVersion().isNewerThanOrEquals(ClientVersion.V_1_9) || new WrapperPlayClientEntityAction(event).getAction() != WrapperPlayClientEntityAction.Action.START_FLYING_WITH_ELYTRA)) {
115
            // https://github.com/GrimAnticheat/Grim/issues/824
116
            if (player.getClientVersion().isNewerThanOrEquals(ClientVersion.V_1_19_3) && player.inVehicle()) {
117
                return;
118
            }
119
            if (player.getClientVersion().isNewerThanOrEquals(ClientVersion.V_1_13) && new WrapperPlayClientEntityAction(event).getAction() == WrapperPlayClientEntityAction.Action.LEAVE_BED)
120
                return;
121
            post.add(event.getPacketType());
122
        }
123
    }
124
}

How it counteracts this module

Grim's Post check watches packet ordering against the movement tick stream: serverbound packets that arrive between a flying packet and its confirming transaction are queued and flagged at prediction completion, and the S0B side is onPacketSend, where a server ENTITY_ANIMATION for the player arms the swing exemption. The inert module emits nothing into the post queue and sends no C0A, so the ordering stream is identical to vanilla. The entry documents the S0B consumer that exists in Grim's tree and why a client-local camera edit cannot reach it.

anticheat FightNoSwing (arm-swing accounting)

FightNoSwing.java73 lines · Java
1
/*
2
 * This file is part of Hawk Anticheat.
3
 * Copyright (C) 2018 Hawk Development Team
4
 *
5
 * This program is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation, either version 3 of the License, or
8
 * (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
17
 */
18
19
package me.islandscout.hawk.check.combat;
20
21
import me.islandscout.hawk.HawkPlayer;
22
import me.islandscout.hawk.check.CustomCheck;
23
import me.islandscout.hawk.event.ArmSwingEvent;
24
import me.islandscout.hawk.event.Event;
25
import me.islandscout.hawk.event.InteractAction;
26
import me.islandscout.hawk.event.InteractEntityEvent;
27
import org.bukkit.entity.Player;
28
29
import java.util.HashMap;
30
import java.util.Map;
31
import java.util.UUID;
32
33
public class FightNoSwing extends CustomCheck {
34
35
    //PASSED (9/11/18)
36
37
    private final Map<UUID, Long> lastClientTickSwung;
38
39
    public FightNoSwing() {
40
        super("fightnoswing", "%player% failed noswing. VL: %vl%");
41
        lastClientTickSwung = new HashMap<>();
42
    }
43
44
    @Override
45
    protected void check(Event event) {
46
        if (event instanceof ArmSwingEvent)
47
            processSwing((ArmSwingEvent) event);
48
        else if (event instanceof InteractEntityEvent)
49
            processHit((InteractEntityEvent) event);
50
51
    }
52
53
    private void processSwing(ArmSwingEvent e) {
54
        lastClientTickSwung.put(e.getPlayer().getUniqueId(), e.getHawkPlayer().getCurrentTick());
55
    }
56
57
    private void processHit(InteractEntityEvent e) {
58
        if (e.getInteractAction() != InteractAction.ATTACK)
59
            return;
60
        Player p = e.getPlayer();
61
        HawkPlayer pp = e.getHawkPlayer();
62
        if (!lastClientTickSwung.containsKey(p.getUniqueId()) || pp.getCurrentTick() != lastClientTickSwung.get(p.getUniqueId())) {
63
            punish(pp, 1, true, e);
64
        } else {
65
            reward(pp);
66
        }
67
    }
68
69
    @Override
70
    public void removeData(Player p) {
71
        lastClientTickSwung.remove(p.getUniqueId());
72
    }
73
}

How it counteracts this module

Hawk's FightNoSwing scores ArmSwingEvent traffic: attacks that arrive without a preceding arm swing accumulate violation level with the check's decay pattern. Like every swing check it only engages when C02 attacks and C0A swings exist to mismatch. The module emits neither, so the check stays dormant. The entry is the honest statement that the swing side of the animation family cannot see a module that produces no packets at all.

anticheat KillAura NoSwing branch (swing timer)

KillAura.java114 lines · Java
1
package me.vrekt.arc.check.combat;
2
3
import me.vrekt.arc.Arc;
4
import me.vrekt.arc.check.Check;
5
import me.vrekt.arc.check.CheckType;
6
import me.vrekt.arc.data.combat.FightData;
7
import me.vrekt.arc.utilties.LocationHelper;
8
import org.bukkit.ChatColor;
9
import org.bukkit.entity.Entity;
10
import org.bukkit.entity.Player;
11
import org.bukkit.util.Vector;
12
13
public class KillAura extends Check {
14
15
    private double maxAngle, maxReach;
16
    private int maxSwingTime, maxAttacks, maxAttackPackets;
17
18
    public KillAura() {
19
        super(CheckType.KILLAURA);
20
21
        maxAngle = Arc.getCheckManager().getValueDouble(CheckType.KILLAURA, "max-direction-angle");
22
        maxSwingTime = Arc.getCheckManager().getValueInt(CheckType.KILLAURA, "max-swing-time");
23
        maxReach = Arc.getCheckManager().getValueDouble(CheckType.KILLAURA, "max-reach");
24
        maxAttacks = Arc.getCheckManager().getValueInt(CheckType.KILLAURA, "max-attacks");
25
        maxAttackPackets = Arc.getCheckManager().getValueInt(CheckType.KILLAURA, "max-attack-packets");
26
27
    }
28
29
    public boolean check(FightData data, Player player) {
30
        result.reset();
31
32
        Entity last = data.getLastAttackedEntity();
33
        Entity entity = data.getAttackedEntity();
34
35
        // Calculate angle stuff.
36
        Vector playerLocation = player.getLocation().toVector();
37
        Vector entityLocation = entity.getLocation().toVector();
38
        double angle = entityLocation.subtract(playerLocation).angle(player.getLocation().getDirection());
39
40
        if (last != null && !entity.equals(last)) {
41
            // check the angle between the two entities
42
            Vector lastLocation = last.getLocation().toVector();
43
            double angleToLast = lastLocation.subtract(playerLocation).angle(player.getLocation().getDirection());
44
            double angleDifference = Math.abs(angleToLast - angle);
45
            double distanceDifference = LocationHelper.distance(last.getLocation(), entity.getLocation());
46
            if (angleDifference > maxAngle && distanceDifference <= maxReach) {
47
                getCheck().setCheckName("Kill Aura " + ChatColor.GRAY + "(Multi)");
48
                result.set(checkViolation(player, "Angle difference greater than allowed. a=" + angleDifference + " e=" + maxAngle));
49
            }
50
        }
51
52
        // check yaw difference.
53
        if (angle > maxAngle) {
54
            getCheck().setCheckName("Kill Aura " + ChatColor.GRAY + "(Direction)");
55
            result.set(checkViolation(player, "Angle distance greater than allowed. a=" + angle + " e=" + maxAngle));
56
        }
57
58
        // check swing time.
59
        long time = System.currentTimeMillis() - data.getLastArmSwing();
60
        if (time > maxSwingTime) {
61
            getCheck().setCheckName("Kill Aura " + ChatColor.GRAY + "(NoSwing)");
62
            result.set(checkViolation(player, "Player did not swing their arm in time."));
63
        }
64
65
        // distance to entity excluding knockback.
66
        double distance = LocationHelper.distance(player.getLocation(), entity.getLocation().subtract(entity.getVelocity()));
67
        // check for reach
68
        if (distance > maxReach) {
69
            getCheck().setCheckName("Kill Aura " + ChatColor.GRAY + "(Reach)");
70
            result.set(checkViolation(player, "Entity is out of players range. d=" + distance + " e=" + maxReach));
71
        }
72
73
        // check max attacks
74
        if (data.getLastAttackCheck() == 0) {
75
            data.setLastAttackCheck(System.currentTimeMillis());
76
        }
77
        long lastAttack = System.currentTimeMillis() - data.getLastAttackCheck();
78
        if (lastAttack >= 1000) {
79
            // check if we exceeded the max attacks in the last second.
80
            int totalAttacks = data.getTotalAttacks();
81
            if (totalAttacks > maxAttacks) {
82
                getCheck().setCheckName("Kill Aura " + ChatColor.GRAY + "(Speed)");
83
                result.set(checkViolation(player, "Attacking too fast. a=" + totalAttacks + " e=" + maxAttacks));
84
            }
85
            // reset data for next check.
86
            data.setTotalAttacks(0);
87
            data.setLastAttackCheck(System.currentTimeMillis());
88
        }
89
90
        getCheck().setCheckName("KillAura");
91
        return result.failed();
92
    }
93
94
    public boolean checkFrequency(FightData data, Player player) {
95
        if (data.getLastAttackCheck() == 0) {
96
            data.setLastAttackCheck(System.currentTimeMillis());
97
            return false;
98
        }
99
100
        long time = System.currentTimeMillis() - data.getLastAttackCheck();
101
        if (time >= 1000) {
102
            data.setLastAttackCheck(System.currentTimeMillis());
103
            int totalPackets = data.getAttackPackets();
104
            if (totalPackets > maxAttackPackets) {
105
                data.setAttackPackets(0);
106
                getCheck().setCheckName("Kill Aura " + ChatColor.GRAY + "(Speed)");
107
                return checkViolation(player, "Attacking too fast a=" + totalPackets + " e=" + maxAttackPackets);
108
            }
109
        }
110
111
        return false;
112
    }
113
114
}

How it counteracts this module

Arc v2's KillAura NoSwing branch runs on EntityDamageByEntityEvent: when the elapsed time since the last ARM_ANIMATION packet exceeds max-swing-time (80ms by default) the check raises the NoSwing violation. The inert NoHurtCam never attacks, so no damage event is attributed to it and the swing timer never arms. The entry documents the only S0B-corpus Arc v2 check and why it is unreachable from a module whose only effect, in a hypothetical working form, would be a local camera offset.

← Back to Analysis Hub