diff --git a/src/features/anti_aim.c b/src/features/anti_aim.c index ed5ebf4..90c84f6 100644 --- a/src/features/anti_aim.c +++ b/src/features/anti_aim.c @@ -12,6 +12,15 @@ float random_float(float min, float max) { } void anti_aim(usercmd_t* cmd) { + if (cmd->buttons & IN_ATTACK || cmd->buttons & IN_USE) { + if (cmd->buttons & IN_ATTACK) { + i_engine->pfnClientCmd("echo \"Attack detected. Spinbot stopped.\""); + } else if (cmd->buttons & IN_USE) { + i_engine->pfnClientCmd("echo \"Use key detected. Spinbot stopped.\""); + } + return; + } + if (!CVAR_ON(movement_antiaim)) { return; } @@ -45,3 +54,4 @@ void anti_aim(usercmd_t* cmd) { } } +