From bb99c978c5f982e80a3007101fd61fe23635e242 Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 27 Oct 2026 13:19:00 +0100 Subject: Jumpbug: automatic duck+jump on damaging falls - Predict the landing speed from the current vertical velocity and a swept standing-hull ground trace; engage only when it exceeds PLAYER_MAX_SAFE_FALL_SPEED. - Press duck one command before the unduck window so FinishDuck's 36-unit origin raise places the feet ~37 units above the floor. - On the next command release duck and press jump: PlayerMove runs Duck() before CheckJumpButton, so FinishUnDuck sets ground, the jump executes, and CheckFalling never sees ground for the fall-damage check. - Measure the per-command fall from consecutive airborne origins instead of a fixed tick interval; clear IN_JUMP while waiting so the pogo latch is clear. - New Movement -> Jumpbug -> Active toggle (default on), config [jumpbug]. --- src/hl2h.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/hl2h.h') diff --git a/src/hl2h.h b/src/hl2h.h index fdc88c1..92ae3f1 100644 --- a/src/hl2h.h +++ b/src/hl2h.h @@ -128,8 +128,8 @@ struct CUserCmd { // --------------------------------------------------------------------------- enum { IN_ATTACK = 1 << 0, IN_JUMP = 1 << 1, IN_DUCK = 1 << 2, IN_USE = 1 << 5 }; -enum { FL_ONGROUND = 1 << 0, FL_INWATER = 1 << 9 }; -enum { MOVETYPE_NOCLIP = 8, MOVETYPE_LADDER = 9 }; +enum { FL_ONGROUND = 1 << 0, FL_DUCKING = 1 << 1, FL_INWATER = 1 << 9 }; +enum { MOVETYPE_WALK = 2, MOVETYPE_NOCLIP = 8, MOVETYPE_LADDER = 9 }; // --------------------------------------------------------------------------- // vector math @@ -152,7 +152,8 @@ enum FeatureId { FEAT_ESP = 2, FEAT_AIMBOT = 3, FEAT_TRIGGERBOT = 4, - FEAT_SILENTAIM = 5 + FEAT_SILENTAIM = 5, + FEAT_JUMPBUG = 6 }; enum EspOption { ESP_OPT_SHOW_NEUTRAL = 0, @@ -200,6 +201,7 @@ bool world_to_screen(const Vector &w, float &sx, float &sy); void set_silent_restore(const QAngle &angles); bool is_visible(const Vector &eye, const Vector &point); void *trace_entity(const Vector &start, const Vector &end, void *ignore); +float ground_distance(const Vector &origin, void *ignore, float max_dist); // bones.cpp — client-side animated skeleton / hitbox access (see there) bool bones_update(int idx, void *ent); -- cgit v1.2.3