Skip to content

feat(combat): add AimBot VerticalDeadzone to hold yaw near vertical#8580

Open
mvanhorn wants to merge 2 commits into
CCBlueX:nextgenfrom
mvanhorn:feat/aimbot-vertical-deadzone-8358
Open

feat(combat): add AimBot VerticalDeadzone to hold yaw near vertical#8580
mvanhorn wants to merge 2 commits into
CCBlueX:nextgenfrom
mvanhorn:feat/aimbot-vertical-deadzone-8358

Conversation

@mvanhorn

Copy link
Copy Markdown

Summary

Adds a VerticalDeadzone option to AimBot that holds horizontal (yaw) assist when the target is near directly above or below the player. VerticalDeadzone is the angular size, in degrees, of a cone around straight up/down within which yaw assist is suppressed; pitch tracking is left untouched, so vertical aim still works.

The default is 0 (off), which preserves current behavior exactly. The suppression check in lookAt() is verticalDeadzone > 0f && abs(rawTargetPitch) >= 90f - verticalDeadzone; with the default the threshold is 90f, which the clamped pitch can never exceed, so the deadzone never engages.

Why

Reported in #8358: when you look almost straight up or down at a target, a small vertical move of the target maps to a large yaw change, so AimBot's yaw swings wildly near the pitch poles. The thread distilled the request to "if the target is already reachable with the current rotation, then do not rotate" - hold yaw while pitch keeps tracking. This option is the bounded, opt-in form of that: it only suppresses yaw inside a configurable cone around vertical, and defaults to off so existing configs are unaffected.

Changes

  • The deadzone is evaluated against the raw, unsmoothed target pitch captured from findNextTargetRotation() in the RotationUpdateEvent handler, not the smoothed per-tick targetRotation. Under a non-instant AngleSmooth the smoothed pitch lags the player's current pitch for the first ticks, so checking it would let yaw keep spinning in exactly the case this option targets.

Only ModuleAimbot.kt is touched.

Closes #8358

mvanhorn added 2 commits June 30, 2026 02:01
Adds a VerticalDeadzone angle (0..90, default 0 = off) to AimBot. When the
absolute pitch of the target rotation is within the deadzone of straight
up/down (|pitch| >= 90 - VerticalDeadzone), horizontal (yaw) assist holds the
player's current yaw instead of interpolating toward the target, while pitch
tracking is unchanged. Default 0 keeps existing behavior exactly.

Closes CCBlueX#8358
The deadzone read the smoothed per-tick rotation, whose pitch lags the real
target under non-instant AngleSmooth. Capture the unsmoothed target pitch and
gate yaw assist on that so the deadzone engages when the target is actually
near vertical.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] AimBot, deactivate horizontal-assist when directly above or below a person

1 participant