From e9944657c7ddefb3b8d2c8373c97fa47629ea1b8 Mon Sep 17 00:00:00 2001 From: salmonik Date: Mon, 26 Oct 2026 17:22:25 +0100 Subject: Triggerbot: crosshair entity trace, hostile-only - top-level Triggerbot feature (Active + Bind, default Mouse4, rebindable) - trace the crosshair ray from the eye with MASK_SHOT and TRACE_EVERYTHING; the filter ignores the local player - if the first entity hit is a live hostile NPC, press IN_ATTACK and fix the usercmd CRC; walls/props/friendly/neutral/corpses do not trigger - independent of Aimbot; config [triggerbot] active/bind --- src/hl2h.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/hl2h.h') diff --git a/src/hl2h.h b/src/hl2h.h index 98d93f4..28970b0 100644 --- a/src/hl2h.h +++ b/src/hl2h.h @@ -136,9 +136,17 @@ struct QAngle { float x, y, z; }; extern Vector g_cam_eye; extern Vector g_cam_view; QAngle vector_angles(const Vector &forward); +Vector angle_forward_vector(const QAngle &angles); float getfov(const QAngle &my_view, const QAngle &aim_ang); bool aimbot_apply(CUserCmd *cmd); -enum FeatureId { FEAT_BHOP = 0, FEAT_ABH = 1, FEAT_ESP = 2, FEAT_AIMBOT = 3 }; +bool triggerbot_apply(CUserCmd *cmd); +enum FeatureId { + FEAT_BHOP = 0, + FEAT_ABH = 1, + FEAT_ESP = 2, + FEAT_AIMBOT = 3, + FEAT_TRIGGERBOT = 4 +}; enum EspOption { ESP_OPT_SHOW_NEUTRAL = 0, ESP_OPT_SHOW_HEALTHBAR = 1, @@ -176,6 +184,7 @@ void draw_text_col(int x, int y, const char *s, int r, int g, int b); void esp_draw(); bool world_to_screen(const Vector &w, float &sx, float &sy); bool is_visible(const Vector &eye, const Vector &point); +void *trace_entity(const Vector &start, const Vector &end, void *ignore); // bones.cpp — client-side animated skeleton / hitbox access (see there) bool bones_update(int idx, void *ent); -- cgit v1.2.3