aimbot smooth
This commit is contained in:
parent
e8b1d227cc
commit
4d216b662b
@ -49,4 +49,5 @@ namespace Config {
|
||||
bool rcs = 0;
|
||||
bool fov_circle = 0;
|
||||
ImVec4 fovCircleColor = ImVec4(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
float aimbot_smooth = 0.f;
|
||||
}
|
||||
|
||||
@ -48,4 +48,5 @@ namespace Config {
|
||||
extern bool rcs;
|
||||
extern bool fov_circle;
|
||||
extern ImVec4 fovCircleColor;
|
||||
extern float aimbot_smooth;
|
||||
}
|
||||
|
||||
@ -119,6 +119,7 @@ namespace internal_config
|
||||
j["antiflash"] = Config::antiflash;
|
||||
j["rcs"] = Config::rcs;
|
||||
j["fov_circle"] = Config::fov_circle;
|
||||
j["aimbot_smooth"] = Config::aimbot_smooth;
|
||||
|
||||
j["enemyChamsInvisible"] = Config::enemyChamsInvisible;
|
||||
j["enemyChams"] = Config::enemyChams;
|
||||
@ -217,6 +218,7 @@ namespace internal_config
|
||||
Config::aimbot = j.value("aimbot", false);
|
||||
Config::rcs = j.value("rcs", false);
|
||||
Config::aimbot_fov = j.value("aimbot_fov", 0.f);
|
||||
Config::aimbot_smooth = j.value("aimbot_smooth", 0.f);
|
||||
|
||||
Config::antiflash = j.value("antiflash", false);
|
||||
|
||||
|
||||
@ -81,8 +81,8 @@ void Aimbot() {
|
||||
continue;
|
||||
if (pawn->getHealth() <= 0)
|
||||
continue;
|
||||
/* if (!Config::team_check && pawn->getTeam() == lp->getTeam())
|
||||
continue;*/
|
||||
if (!Config::team_check && pawn->getTeam() == lp->getTeam())
|
||||
continue;
|
||||
Vector_t eye_pos = GetEntityEyePos(pawn);
|
||||
QAngle_t angle = CalcAngles(eye_pos, lep);
|
||||
angle.x *= -1.f;
|
||||
@ -107,7 +107,8 @@ void Aimbot() {
|
||||
// Проверяем, что цель всё ещё валидна
|
||||
if (!lockedTarget->handle().valid() || lockedTarget->getHealth() <= 0) {
|
||||
lockedTarget = nullptr;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
Vector_t eye_pos = GetEntityEyePos(lockedTarget);
|
||||
QAngle_t angle = CalcAngles(eye_pos, lep);
|
||||
angle.x *= -1.f;
|
||||
@ -117,8 +118,18 @@ void Aimbot() {
|
||||
angle -= ang_punch_angle * 2.f;
|
||||
angle.z = 0.f;
|
||||
angle = angle.Normalize();
|
||||
if (Config::aimbot_smooth > 0.f) {
|
||||
QAngle_t cur = *viewangles;
|
||||
QAngle_t delta = (angle - cur).Normalize();
|
||||
float smooth = Config::aimbot_smooth;
|
||||
angle = cur + delta * (1.f / smooth);
|
||||
angle = angle.Normalize();
|
||||
*viewangles = angle;
|
||||
}
|
||||
else {
|
||||
*viewangles = angle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
prevAimbotState = aimbotActive;
|
||||
|
||||
@ -146,6 +146,7 @@ void Menu::render() {
|
||||
|
||||
ImGui::Checkbox("Team Check", &Config::team_check);
|
||||
ImGui::SliderFloat("FOV", &Config::aimbot_fov, 0.f, 90.f);
|
||||
ImGui::SliderFloat("Smooth", &Config::aimbot_smooth, 0.f, 10.f, "%.2f");
|
||||
ImGui::Checkbox("Draw FOV Circle", &Config::fov_circle);
|
||||
if (Config::fov_circle) {
|
||||
ImGui::ColorEdit4("Circle Color##FovColor", (float*)&Config::fovCircleColor);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user