From 510243c46dbbd0c273f66caaec0c5f21db52812c Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Mon, 31 Jul 2023 20:57:25 +0200 Subject: [PATCH] Add can_shoot to aimbot --- src/features/aim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/aim.c b/src/features/aim.c index 263af0f..6d37d34 100644 --- a/src/features/aim.c +++ b/src/features/aim.c @@ -79,7 +79,7 @@ static vec3_t get_closest_delta(vec3_t viewangles) { } void aimbot(usercmd_t* cmd) { - if (!CVAR_ON(aimbot) || !(cmd->buttons & IN_ATTACK)) + if (!CVAR_ON(aimbot) || !(cmd->buttons & IN_ATTACK) || !can_shoot()) return; /* Calculate delta with the engine viewangles, not with the cmd ones */