Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void RenderLegitTab() {
- static int Aimbot_Tabs = 0;
- auto& style = ImGui::GetStyle();
- float group_w = ImGui::GetCurrentWindow()->Size.x - style.WindowPadding.x * 0.1;
- ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0));
- {
- render_tabs(Aimbot_Tab1, Aimbot_Tabs, group_w / _countof(Aimbot_Tab1), 25.0f);
- }
- auto settings = &g_Options.legitbot_items[weapon_index];
- ImGui::PopStyleVar();
- ImGui::BeginGroupBox("##aimbot_content");
- {
- if (Aimbot_Tabs == 0) {
- ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2{ style.WindowPadding.x, style.ItemSpacing.y });
- {
- ImGui::Columns(3, nullptr, false);
- ImGui::BeginChild("##aimbot_primary", ImVec2(0, 0), true);
- {
- // ImGui::Text("General -");
- //ImGui::Separator();
- ImGui::PushItemWidth(-1);
- ImGui::Text("Aimbot -");
- ImGui::Checkbox("Enabled", &settings->enabled);
- if (weapon_index == WEAPON_AWP || weapon_index == WEAPON_SSG08 ||
- weapon_index == WEAPON_AUG || weapon_index == WEAPON_SG553) {
- ImGui::Checkbox("Only In Zoom", &settings->only_in_zoom);
- }
- ImGui::Checkbox("On Key", &settings->on_key);
- if (settings->on_key) {
- ImGui::SameLine();
- ImGui::Hotkey("##Key bind", &settings->key);
- }
- ImGui::Checkbox("Auto Fire", &settings->autofire);
- if (settings->autofire) {
- ImGui::SameLine();
- ImGui::Hotkey("##Auto Fire bind", &settings->autofire_key);
- ImGui::Checkbox("Auto stop", &settings->autostop);
- }
- ImGui::Checkbox("Friendly fire", &settings->deathmatch);
- ImGui::Checkbox("Autowall", &settings->autowall);
- ImGui::Checkbox("Silent", &settings->silent);
- if (weapon_index == WEAPON_P250 ||
- weapon_index == WEAPON_USPS ||
- weapon_index == WEAPON_GLOCK ||
- weapon_index == WEAPON_FIVESEVEN ||
- weapon_index == WEAPON_TEC9 ||
- weapon_index == WEAPON_DEAGLE ||
- weapon_index == WEAPON_ELITE ||
- weapon_index == WEAPON_P2000) {
- ImGui::Checkbox("Autopistol", &settings->autopistol);
- }
- ImGui::Separator();
- ImGui::Text("Check options -");
- ImGui::Checkbox("Smoke check", &settings->smoke_check);
- ImGui::Checkbox("Flash check ", &settings->flash_check);
- ImGui::Checkbox("Jump check", &settings->jump_check);
- ImGui::PopItemWidth();
- }
- ImGui::EndChild();
- ImGui::NextColumn();
- float item_width = ImGui::GetColumnWidth() * 0.5f - ImGui::GetStyle().ItemSpacing.x;
- ImGui::PushItemWidth(item_width);
- if (ImGui::Combo(
- "##weapon_aimbot", &weapon_vector_index,
- [](void* data, int32_t idx, const char** out_text) {
- auto vec = reinterpret_cast<std::vector< WeaponName_t >*>(data);
- *out_text = vec->at(idx).name;
- return true;
- }, (void*)(&WeaponNames), WeaponNames.size())) {
- weapon_index = WeaponNames[weapon_vector_index].definition_index;
- }
- ImGui::PopItemWidth();
- RenderCurrentWeaponButton(item_width - ImGui::GetStyle().ItemSpacing.x);
- ImGui::BeginChild("##aimbot.misc", ImVec2(0, 0), true);
- {
- ImGui::PushItemWidth(-1);
- static char* priorities[] = {
- "Field of View",
- "Health",
- "Damage",
- "Distance"
- };
- static char* aim_types[] = {
- "Hitbox",
- "Nearest"
- };
- static char* smooth_types[] = {
- "Static",
- "Dynamic"
- };
- static char* fov_types[] = {
- "Static",
- "Dynamic"
- };
- static char* hitbox_list[] = {
- "Head",
- "Neck",
- "Pelvis",
- "Stomach",
- "Lower chest",
- "Chest",
- "Upper chest",
- };
- if (settings->enabled) {
- ImGui::Text("Priority:");
- ImGui::Combo("##aimbot.priority", &settings->priority, priorities, IM_ARRAYSIZE(priorities));
- ImGui::Text("Fov Type:");
- ImGui::Combo("##aimbot.fov_type", &settings->fov_type, fov_types, IM_ARRAYSIZE(fov_types));
- ImGui::Text("Aim Type:");
- ImGui::Combo("##aimbot.aim_type", &settings->aim_type, aim_types, IM_ARRAYSIZE(aim_types));
- if (settings->aim_type == 0) {
- ImGui::Text("Hitbox:");
- ImGui::Combo("##aimbot.hitbox", &settings->hitbox, hitbox_list, IM_ARRAYSIZE(hitbox_list));
- }
- ImGui::Text("Smooth Type:");
- ImGui::Combo("##aimbot.smooth_type", &settings->smooth_type, smooth_types, IM_ARRAYSIZE(smooth_types));
- ImGui::SliderFloat("##aimbot.fov", &settings->fov, 0, 30, "Fov: %.2f");
- if (settings->silent) {
- ImGui::SliderFloat("##aimbot.silent_fov", &settings->silent_fov, 0, 20, "Silent Fov: %.2f");
- }
- ImGui::SliderFloat("##aimbot.smooth", &settings->smooth, 1, 20, "Smooth: %.2f");
- if (!settings->silent) {
- ImGui::SliderInt("##aimbot.shot_delay", &settings->shot_delay, 0, 100, "Shot Delay: %.0f");
- }
- ImGui::SliderInt("##aimbot.kill_delay", &settings->kill_delay, 0, 1000, "Kill Delay: %.0f");
- if (settings->autowall) {
- ImGui::SliderInt("##aimbot.min_damage", &settings->min_damage, 1, 100, "Minimum Damage: %.0f");
- }
- ImGui::SliderFloat("##aimbot_backtrack_time", &settings->backtrack_time, 0.f, 0.2f, "Position Adjustment: %.2f");
- ImGui::PopItemWidth();
- }
- }
- ImGui::EndChild();
- ImGui::NextColumn();
- ImGui::BeginChild("##aimbot_third", ImVec2(0, 200), true);
- {
- ImGui::PushItemWidth(-1);
- ImGui::Text("Recoil Control System -");
- ImGui::Checkbox("Enabled##aimbot.rcs", &settings->rcs);
- if (settings->rcs) {
- static char* rcs_types[] = {
- "Standalone",
- "Recoil Control System"
- };
- ImGui::Combo("##aimbot.rcs_type", &settings->rcs_type, rcs_types, IM_ARRAYSIZE(rcs_types));
- ImGui::Checkbox("RCS Custom Fov", &settings->rcs_fov_enabled);
- if (settings->rcs_fov_enabled) {
- ImGui::SliderFloat("##aimbot.rcs_fov", &settings->rcs_fov, 0, 20, "RCS Fov: %.2f");
- }
- ImGui::Checkbox("RCS Custom Smooth", &settings->rcs_smooth_enabled);
- if (settings->rcs_smooth_enabled) {
- ImGui::SliderFloat("##aimbot.rcs_smooth", &settings->rcs_smooth, 1, 15, "RCS Smooth: %.2f");
- }
- ImGui::SliderInt("##aimbot.rcs_x", &settings->rcs_x, 0, 100, "RCS X: %.0f");
- ImGui::SliderInt("##aimbot.rcs_y", &settings->rcs_y, 0, 100, "RCS Y: %.0f");
- ImGui::SliderInt("##aimbot.rcs_start", &settings->rcs_start, 1, 30, "RCS Start: %.0f");
- ImGui::PopItemWidth();
- }
- }
- ImGui::EndChild();
- ImGui::BeginChild("##aimbot_anti_aim", ImVec2(0, -1), true);
- {
- ImGui::Text("Anti-Aim");
- ImGui::Combo("Desync", &g_Options.misc_desync, std::vector<std::string>{ "Disabled", "Static", "Manual" });
- if (!g_Options.misc_screen43) { ImGui::Checkbox("Drawing in 16:9", &g_Options.misc_screen169); }
- if (!g_Options.misc_screen169) { ImGui::Checkbox("Drawing in 4:3", &g_Options.misc_screen43); }
- if (g_Options.misc_screen169) {
- if (!g_Options.misc_screen43) {
- if (g_Options.misc_desync) {
- ImGui::Text("Inverse AA");
- ImGui::Hotkey("##InverseAntiAim", &g_Options.misc_desync_bind);
- ImGui::SameLine();
- ImGui::ColorEdit4("##AntiAim_Color", g_Options.color_esp_antiaim, ImGuiColorEditFlags_NoInputs);
- ImGui::Checkbox("Disable DS on Grenade", &g_Options.misc_disable_desync);
- }
- }
- }
- if (g_Options.misc_screen43){
- if (!g_Options.misc_screen169) {
- if (g_Options.misc_desync) {
- ImGui::Text("Inverse AA");
- ImGui::Hotkey("##InverseAntiAim", &g_Options.misc_desync_bind);
- ImGui::SameLine();
- ImGui::ColorEdit4("##AntiAim_Color", g_Options.color_esp_antiaim, ImGuiColorEditFlags_NoInputs);
- ImGui::Checkbox("Disable DS on Grenade", &g_Options.misc_disable_desync);
- }
- }
- }
- }
- ImGui::Columns(1, nullptr, false);
- }
- ImGui::PopStyleVar();
- }
- else if (Aimbot_Tabs == 1) {
- ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2{ style.WindowPadding.x, style.ItemSpacing.y });
- {
- ImGui::Columns(2, nullptr, false);
- ImGui::BeginChild("##aimbot_thebest", ImVec2(0, 0), true);
- {
- ImGui::Text("Triggerbot -");
- ImGui::Checkbox("Enable##485", &g_Options.enable_show_trigger);
- if (g_Options.enable_show_trigger) {
- if (!g_Options.enable_trigger_auto) {
- ImGui::Checkbox("Triggerbot key##444", &g_Options.enable_trigger);
- if (g_Options.enable_trigger) {
- ImGui::SameLine();
- ImGui::PushItemWidth(90.f);
- ImGui::Hotkey("##OnKey", &g_Options.trigger_key);
- ImGui::PopItemWidth();
- }
- }
- if (!g_Options.enable_trigger) {
- ImGui::Checkbox("Triggerbot automatic", &g_Options.enable_trigger_auto);
- }
- ImGui::SliderFloat("Trigger delay", &g_Options.trigger_delay, 0.0f, 150.0f, "%.3f");
- }
- }
- ImGui::EndChild();
- ImGui::NextColumn();
- ImGui::BeginChild("##other_aimbot_third", ImVec2(0, 200), true);
- {
- ImGui::Text("Hitbox -");
- ImGui::Selectable("Head", &g_Options.trigger_head);
- ImGui::Selectable("Chest", &g_Options.trigger_chest);
- ImGui::Selectable("Stomach", &g_Options.trigger_stomatch);
- ImGui::Selectable("Arms", &g_Options.trigger_arms);
- ImGui::Selectable("Legs", &g_Options.trigger_legs);
- }ImGui::EndChild();
- ImGui::BeginChild("##other_options_for", ImVec2(0, -1), true);
- {
- ImGui::Text("Check options -");
- ImGui::Checkbox("Auto stop", &g_Options.autostop2);
- ImGui::Checkbox("Flash check", &g_Options.trigger_flashcheck);
- ImGui::Checkbox("Smoke check", &g_Options.trigger_smokecheck);
- }ImGui::EndChild();
- ImGui::Columns(1, nullptr, false);
- }
- ImGui::PopStyleVar();
- }
- }
- ImGui::EndGroupBox();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement