Add can_shoot to aimbot

This commit is contained in:
8dcc 2023-07-31 20:57:25 +02:00
parent fb6ed02dd4
commit 510243c46d
1 changed files with 1 additions and 1 deletions

View File

@ -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 */