Fix auto unzoom

Sourced from explowz/cathook@6144d50751
This commit is contained in:
BenCat07 2022-07-08 18:24:43 +02:00
parent e7d6c7797c
commit 0365daf550

View File

@ -316,9 +316,7 @@ void doAutoZoom(bool target_found)
if (target_found)
zoomTime.update();
if (isIdle || !zoomTime.check(3000))
{
current_user_cmd->buttons |= IN_ATTACK2;
}
return;
}
@ -379,6 +377,8 @@ static void CreateMove()
return;
}
doAutoZoom(false);
if (hacks::tf2::antianticheat::enabled)
fov = std::min(fov > 0.0f ? fov : FLT_MAX, 10.0f);
bool should_backtrack = hacks::tf2::backtrack::backtrackEnabled();