Files
OpenZen/src/main
Shirona1337 87b774563c refactor(combat,movement): restore KillAura/NoSlow from Recaf source
KillAura
  - Field set realigned with the obfuscated jar: drop rotationsMode,
    attackMode, targetHud, noUseItem, aboveTarget; keep 12 boolean /
    7 number / 3 mode + sprintCounter.
  - Settings renamed per the user's config sheet: Infinity Switch,
    Keep Sprint, Max APS, Min APS, Switch Delay (Attack Times), FoV,
    Priority. Defaults: attackMobs/multiAttack/keepSprint=true,
    aimRange=4, maxAps=12, minAps=9, Priority=FoV.
  - New Test/More Particles/Ignore skip ticks/Fake AutoBlock/Delay
    Mode settings now drive real behaviour:
      * test  -> "attack player above" branch in isValidTarget
      * ignoreSkipTicks -> attack pacing guard in onPreMotion
      * morePart -> magicCrit+crit in attackEntity
      * delayMode "1.8" smooths attacks across ticks; "1.9" uses
        sprintCounter + attackStrengthScale gating
      * fakeAutoBlock surfaces to OldHitting (see below)
  - Target ESP turned into a 4-mode ModeSetting (None/Spiral/Box/Tab)
    with the original hurt-tinted box and tab renderers wired through
    RenderUtil + EntityUtil.
  - attackEntity bridged back through ForgeHooksClient.onMouseButton*
    so Forge mouse listeners still see the synthesised swings.
  - doAttack now bails on isWebPlacing first and surfaces an
    AntiBots-skip notice via ChatUtil.print.
  - All settings + internal flags moved to inline field initializers;
    constructor only does super(...) and INSTANCE = this.

NoSlow (was FastUse)
  - Rename module, file, INSTANCE type, mods.toml-facing display name,
    and all call sites (ModuleManager, MinecraftPatch).
  - Mode option list now ("Grim V3", "NoSlow") with Grim V3 default;
    isGrimMode probes the new label.
  - User-facing settings renamed (Bow / Crossbow / Food / Potion drop
    the NoSlow suffix). Bow/Crossbow defaults flipped to false.
  - Settings + state moved to inline initializers; constructor only
    does super(...), INSTANCE = this, checkAndFallbackMode().

OldHitting
  - isKillAuraAttacking now gates on the restored fakeAutoBlock flag,
    matching the obfuscated jar's animation trigger.

ReflectionUtil-side knock-on cleanup (the SRG/mojmap remap helpers
introduced earlier) is what made these field-name swaps safe at
runtime in both dev and DLL-injected environments.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 09:48:37 +08:00
..