feat(combat): add AimBot VerticalDeadzone to hold yaw near vertical#8580
Open
mvanhorn wants to merge 2 commits into
Open
feat(combat): add AimBot VerticalDeadzone to hold yaw near vertical#8580mvanhorn wants to merge 2 commits into
mvanhorn wants to merge 2 commits into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
VerticalDeadzoneoption to AimBot that holds horizontal (yaw) assist when the target is near directly above or below the player.VerticalDeadzoneis 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 inlookAt()isverticalDeadzone > 0f && abs(rawTargetPitch) >= 90f - verticalDeadzone; with the default the threshold is90f, 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
findNextTargetRotation()in theRotationUpdateEventhandler, not the smoothed per-ticktargetRotation. Under a non-instantAngleSmooththe 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.ktis touched.Closes #8358