diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-26 17:30:29 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-26 17:30:29 +0100 |
| commit | 92d388116cc19ef728d66ac67eaa4f584e63d895 (patch) | |
| tree | 5b9438cf8c2f1b4f01eef3eec4a6d91b42ac1acb /src/hl2h.h | |
| parent | Triggerbot: crosshair entity trace, hostile-only (diff) | |
| download | hl2h-92d388116cc19ef728d66ac67eaa4f584e63d895.tar.gz hl2h-92d388116cc19ef728d66ac67eaa4f584e63d895.zip | |
Silent aim: exact usercmd angle + fire, restore rendered view
- new top-level Silent aim feature (Active + Bind, default Mouse3)
- reuses the shared aim-target selection (bone checklist, nearest selected
point, world-only MASK_VISIBLE vischeck)
- writes the exact target angle into cmd->viewangles, sets IN_ATTACK for the
shot, then immediately restores engine view angles to the player's input
view (g_cam_view) so the camera stays where it was
- shares the vischeck/bone selection with the aimbot; independent of the
aimbot/triggerbot binds
- config [silentaim] active/bind
Diffstat (limited to 'src/hl2h.h')
| -rw-r--r-- | src/hl2h.h | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -140,12 +140,14 @@ Vector angle_forward_vector(const QAngle &angles); | |||
| 140 | float getfov(const QAngle &my_view, const QAngle &aim_ang); | 140 | float getfov(const QAngle &my_view, const QAngle &aim_ang); |
| 141 | bool aimbot_apply(CUserCmd *cmd); | 141 | bool aimbot_apply(CUserCmd *cmd); |
| 142 | bool triggerbot_apply(CUserCmd *cmd); | 142 | bool triggerbot_apply(CUserCmd *cmd); |
| 143 | bool silent_aim_apply(CUserCmd *cmd); | ||
| 143 | enum FeatureId { | 144 | enum FeatureId { |
| 144 | FEAT_BHOP = 0, | 145 | FEAT_BHOP = 0, |
| 145 | FEAT_ABH = 1, | 146 | FEAT_ABH = 1, |
| 146 | FEAT_ESP = 2, | 147 | FEAT_ESP = 2, |
| 147 | FEAT_AIMBOT = 3, | 148 | FEAT_AIMBOT = 3, |
| 148 | FEAT_TRIGGERBOT = 4 | 149 | FEAT_TRIGGERBOT = 4, |
| 150 | FEAT_SILENTAIM = 5 | ||
| 149 | }; | 151 | }; |
| 150 | enum EspOption { | 152 | enum EspOption { |
| 151 | ESP_OPT_SHOW_NEUTRAL = 0, | 153 | ESP_OPT_SHOW_NEUTRAL = 0, |
