From f26da3e84f2810f18e0fe22522345bf44c4dfd3b Mon Sep 17 00:00:00 2001 From: Wizzard <25581244+Wizzard@users.noreply.toomuchslop.com> Date: Wed, 20 Sep 2023 22:47:45 -0400 Subject: [PATCH] Added back aim_autoshoot --- src/features/aim.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/features/aim.c b/src/features/aim.c index 35c8154..0ec62d7 100644 --- a/src/features/aim.c +++ b/src/features/aim.c @@ -90,7 +90,6 @@ static vec3_t get_closest_delta(vec3_t viewangles) { } void aimbot(usercmd_t* cmd) { - static bool shouldShootNextFrame = false; static bool hasAdjustedView = false; if (!CVAR_ON(aim_aimbot) || !can_shoot()) @@ -99,8 +98,13 @@ void aimbot(usercmd_t* cmd) { vec3_t engine_viewangles; i_engine->GetViewAngles(engine_viewangles); vec3_t best_delta = get_closest_delta(engine_viewangles); - + if (!vec_is_zero(best_delta)) { + + if (!lastShotHit) { + best_delta.y += 0.5f; + } + engine_viewangles.x += best_delta.x; engine_viewangles.y += best_delta.y; engine_viewangles.z += best_delta.z;