Update aim.c, settings.h, and 2 more files...

This commit is contained in:
2025-04-04 18:55:08 -04:00
parent 6a640a716c
commit 51c3b979ea
4 changed files with 25 additions and 14 deletions

View File

@@ -190,7 +190,11 @@ extern "C" void menu_render(void) {
if (ImGui::SliderFloat("FOV", &g_settings.aimbot_fov, 0.1f, 360.0f, "%.1f")) {
}
if (ImGui::SliderFloat("Smoothing", &g_settings.aimbot_smooth, 1.0f, 100.0f, "%.1f")) {
ImGui::Checkbox("Enable Smoothing", &g_settings.aimbot_smoothing_enabled);
if (g_settings.aimbot_smoothing_enabled) {
if (ImGui::SliderFloat("Smoothing", &g_settings.aimbot_smooth, 1.0f, 100.0f, "%.1f")) {
}
}
const char* hitbox_items[] = { "Head", "Chest", "Stomach", "Pelvis", "Nearest" };
@@ -529,9 +533,11 @@ static void render_fallback_menu(void) {
i_engine->pfnDrawConsoleString(x1+30, y, buffer);
y += 15;
snprintf(buffer, sizeof(buffer), "- Smoothing: %.1f", g_settings.aimbot_smooth);
i_engine->pfnDrawConsoleString(x1+30, y, buffer);
y += 15;
if (g_settings.aimbot_smoothing_enabled) {
snprintf(buffer, sizeof(buffer), "- Smoothing: %.1f", g_settings.aimbot_smooth);
i_engine->pfnDrawConsoleString(x1+30, y, buffer);
y += 15;
}
}
y += 10;