Skip to content

cl_dll: add gamepad aim assist (soft-lock) with debug overlay#375

Closed
02900 wants to merge 1 commit into
Velaron:mainfrom
02900:aim-assist
Closed

cl_dll: add gamepad aim assist (soft-lock) with debug overlay#375
02900 wants to merge 1 commit into
Velaron:mainfrom
02900:aim-assist

Conversation

@02900

@02900 02900 commented Jun 8, 2026

Copy link
Copy Markdown

Hold-to-aim soft-lock for gamepad/touch: while a bindable button (+aimassist) is held, acquire the nearest visible enemy within a wide cone and steer the crosshair toward it (magnetism) with sticky slowdown. All behaviour is governed by aim_assist* cvars and is off by default.

  • input_xash3d.cpp: target acquisition (team/alive/range/cone/LOS), magnetism + sticky in IN_Move, +/-aimassist commands and cvars. Eye uses the real camera origin (v_origin) to avoid close-range parallax; cone is distance-adjusted; LOS traces world-only.
  • aimassist HUD element: debug overlay (state, target, angles), view cone ring, aim-direction and nearest-enemy markers, head marker.
  • entity.cpp: glow shell over the target (HUD_AddEntity).
  • kb_act.lst: expose "Aim Assist" in the Controls key-binding menu.
  • aim_assist_debug acts as a master switch for all debug visuals.

Hold-to-aim soft-lock for gamepad/touch: while a bindable button
(+aimassist) is held, acquire the nearest visible enemy within a wide
cone and steer the crosshair toward it (magnetism) with sticky slowdown.
All behaviour is governed by aim_assist* cvars and is off by default.

- input_xash3d.cpp: target acquisition (team/alive/range/cone/LOS),
  magnetism + sticky in IN_Move, +/-aimassist commands and cvars.
  Eye uses the real camera origin (v_origin) to avoid close-range
  parallax; cone is distance-adjusted; LOS traces world-only.
- aimassist HUD element: debug overlay (state, target, angles), view
  cone ring, aim-direction and nearest-enemy markers, head marker.
- entity.cpp: glow shell over the target (HUD_AddEntity).
- kb_act.lst: expose "Aim Assist" in the Controls key-binding menu.
- aim_assist_debug acts as a master switch for all debug visuals.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@02900 02900 closed this Jun 8, 2026
@02900 02900 deleted the aim-assist branch June 8, 2026 20:23
@a1batross

Copy link
Copy Markdown
Collaborator

Awww look at this pussy, can't program without a slopbot? Do you need claude for simple math? Can't write a single line of code on your own?

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.

2 participants