Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (TabSelected == 1)
- {
- int weapon_id = g_Local.weapon.m_iWeaponID;
- if (cvar.menu_legit_global_section == 1)
- {
- if (cvar.menu_legit_sub_section == 1)
- weapon_id = WEAPON_GLOCK18;
- else if (cvar.menu_legit_sub_section == 2)
- weapon_id = WEAPON_P228;
- else if (cvar.menu_legit_sub_section == 3)
- weapon_id = WEAPON_DEAGLE;
- else if (cvar.menu_legit_sub_section == 4)
- weapon_id = WEAPON_ELITE;
- else if (cvar.menu_legit_sub_section == 5)
- weapon_id = WEAPON_FIVESEVEN;
- else if (cvar.menu_legit_sub_section == 6)
- weapon_id = WEAPON_USP;
- }
- else if (cvar.menu_legit_global_section == 2)
- {
- if (cvar.menu_legit_sub_section == 1)
- weapon_id = WEAPON_AWP;
- else if (cvar.menu_legit_sub_section == 2)
- weapon_id = WEAPON_SCOUT;
- else if (cvar.menu_legit_sub_section == 3)
- weapon_id = WEAPON_G3SG1;
- else if (cvar.menu_legit_sub_section == 4)
- weapon_id = WEAPON_SG550;
- }
- else if (cvar.menu_legit_global_section == 3)
- {
- if (cvar.menu_legit_sub_section == 1)
- weapon_id = WEAPON_M4A1;
- else if (cvar.menu_legit_sub_section == 2)
- weapon_id = WEAPON_GALIL;
- else if (cvar.menu_legit_sub_section == 3)
- weapon_id = WEAPON_FAMAS;
- else if (cvar.menu_legit_sub_section == 4)
- weapon_id = WEAPON_AUG;
- else if (cvar.menu_legit_sub_section == 5)
- weapon_id = WEAPON_AK47;
- else if (cvar.menu_legit_sub_section == 6)
- weapon_id = WEAPON_SG552;
- }
- else if (cvar.menu_legit_global_section == 4)
- {
- if (cvar.menu_legit_sub_section == 1)
- weapon_id = WEAPON_XM1014;
- else if (cvar.menu_legit_sub_section == 2)
- weapon_id = WEAPON_M3;
- }
- else if (cvar.menu_legit_global_section == 5)
- {
- if (cvar.menu_legit_sub_section == 1)
- weapon_id = WEAPON_M249;
- }
- else if (cvar.menu_legit_global_section == 6)
- {
- if (cvar.menu_legit_sub_section == 1)
- weapon_id = WEAPON_TMP;
- else if (cvar.menu_legit_sub_section == 2)
- weapon_id = WEAPON_P90;
- else if (cvar.menu_legit_sub_section == 3)
- weapon_id = WEAPON_MP5N;
- else if (cvar.menu_legit_sub_section == 4)
- weapon_id = WEAPON_MAC10;
- else if (cvar.menu_legit_sub_section == 5)
- weapon_id = WEAPON_UMP45;
- }
- static const char* const global_section[] =
- {
- "Pistol", "Sniper", "Rifle", "Shotgun", "Machine gun", "Submachine gun",
- };
- static const char* const pistol_section[] =
- {
- "glock18", "p228", "deagle", "elite", "fiveseven", "usp",
- };
- static const char* const snipers_section[] =
- {
- "awp", "scout", "g3sg1", "sg550",
- };
- static const char* const rifles_section[] =
- {
- "m4a1", "galil", "famas", "aug", "ak47", "sg552"
- };
- static const char* const shotgun_section[] =
- {
- "xm1014", "m3",
- };
- static const char* const machine_section[] =
- {
- "m249",
- };
- static const char* const submachine_section[] =
- {
- "tmp", "p90", "mp5", "mac10", "ump45",
- };
- static const char* const psilent_type[] =
- {
- "Normalize", "Automatic fire",
- };
- static const char* const accuracy_boost[] =
- {
- "None", "Bound box", "Recoil", "Recoil + spread",
- };
- ImGui::Spacing();
- ImGui::Next();
- ImGui::Checkbox("Active", &cvar.legit_active);
- ImGui::PushItemWidth(130.f);
- ImGui::SameLine(450);
- ImGui::Combo("Section", &cvar.menu_legit_global_section, global_section, IM_ARRAYSIZE(global_section));
- ImGui::SameLine();
- if (cvar.menu_legit_global_section == 0)
- {
- ImGui::Combo("Weapon", &cvar.menu_legit_sub_section, pistol_section, IM_ARRAYSIZE(pistol_section));
- if (cvar.menu_legit_sub_section > 6)
- cvar.menu_legit_sub_section = 6;
- }
- else if (cvar.menu_legit_global_section == 1)
- {
- ImGui::Combo("Weapon", &cvar.menu_legit_sub_section, snipers_section, IM_ARRAYSIZE(snipers_section));
- if (cvar.menu_legit_sub_section > 4)
- cvar.menu_legit_sub_section = 4;
- }
- else if (cvar.menu_legit_global_section == 2)
- {
- ImGui::Combo("Weapon", &cvar.menu_legit_sub_section, rifles_section, IM_ARRAYSIZE(rifles_section));
- if (cvar.menu_legit_sub_section > 6)
- cvar.menu_legit_sub_section = 6;
- }
- else if (cvar.menu_legit_global_section == 3)
- {
- ImGui::Combo("Weapon", &cvar.menu_legit_sub_section, shotgun_section, IM_ARRAYSIZE(shotgun_section));
- if (cvar.menu_legit_sub_section > 2)
- cvar.menu_legit_sub_section = 2;
- }
- else if (cvar.menu_legit_global_section == 4)
- {
- ImGui::Combo("Weapon", &cvar.menu_legit_sub_section, machine_section, IM_ARRAYSIZE(machine_section));
- if (cvar.menu_legit_sub_section > 1)
- cvar.menu_legit_sub_section = 1;
- }
- else if (cvar.menu_legit_global_section == 5)
- {
- ImGui::Combo("Weapon", &cvar.menu_legit_sub_section, submachine_section, IM_ARRAYSIZE(submachine_section));
- if (cvar.menu_legit_sub_section > 5)
- cvar.menu_legit_sub_section = 5;
- }
- ImGui::PopItemWidth();
- ImGui::Columns(2, nullptr, false);
- ImGui::SetColumnOffset(1, 420);
- ImGui::Spacing(3);
- ImGui::Next();
- ImGui::Text("Aimbot:");
- ImGui::Next();
- ImGui::BeginChild("##1", ImVec2(410, 435));
- ImGui::Spacing(3);
- ImGui::Next();
- ImGui::Checkbox("Enabled", &cvar.legit[weapon_id].aim);
- ImGui::Next();
- ImGui::Checkbox("Head", &cvar.legit[weapon_id].aim_head);
- ImGui::Next();
- ImGui::Checkbox("Chest", &cvar.legit[weapon_id].aim_chest);
- ImGui::Next();
- ImGui::Checkbox("Stomach", &cvar.legit[weapon_id].aim_stomach);
- ImGui::PushItemWidth(230.f);
- ImGui::Next();
- ImGui::SliderFloat("Reaction time", &cvar.legit[weapon_id].aim_reaction_time, 0, 1000, "%.2f ms");
- ImGui::Next();
- ImGui::SliderFloat("FOV", &cvar.legit[weapon_id].aim_fov, 0, 180, "%.2f");
- ImGui::Next();
- ImGui::SliderFloat("Smooth (auto aim)", &cvar.legit[weapon_id].aim_speed, 0, 300, "%.2f");
- ImGui::Next();
- ImGui::SliderFloat("Smooth in attack", &cvar.legit[weapon_id].aim_speed_in_attack, 0, 300, "%.2f");
- ImGui::Next();
- ImGui::SliderFloat("Smooth scale - FOV", &cvar.legit[weapon_id].aim_speed_scale_fov, 0, 100, "%.0f");
- ImGui::Next();
- ImGui::SliderFloat("Recoil compensation pitch", &cvar.legit[weapon_id].aim_recoil_compensation_pitch, 0, 100, "%.0f");
- ImGui::Next();
- ImGui::SliderFloat("Recoil compensation yaw", &cvar.legit[weapon_id].aim_recoil_compensation_yaw, 0, 100, "%.0f");
- ImGui::Next();
- ImGui::SliderFloat("Perfect silent", &cvar.legit[weapon_id].aim_psilent, 0, 1, u8"%.2f°");
- ImGui::Next();
- ImGui::Combo("Perfect silent type", &cvar.legit[weapon_id].aim_psilent_type, psilent_type, IM_ARRAYSIZE(psilent_type));
- ImGui::Next();
- ImGui::Checkbox("Automatic penetration", &cvar.legit[weapon_id].aim_automatic_penetration);
- ImGui::Next();
- ImGui::Checkbox("Huminaze", &cvar.legit[weapon_id].aim_humanize);
- ImGui::Next();
- ImGui::Combo("Accuracy boost", &cvar.legit[weapon_id].aim_accuracy, accuracy_boost, IM_ARRAYSIZE(accuracy_boost));
- ImGui::PopItemWidth();
- ImGui::EndChild();
- ImGui::NextColumn();
- ImGui::Spacing(2);
- ImGui::Text("Triggerbot:");
- ImGui::BeginChild("##2", ImVec2(405, 215));
- ImGui::Spacing(3);
- ImGui::Next();
- ImGui::Checkbox("Enabled##trigger", &cvar.legit[weapon_id].trigger);
- ImGui::Next();
- ImGui::Checkbox("Head##trigger", &cvar.legit[weapon_id].trigger_head);
- ImGui::Next();
- ImGui::Checkbox("Chest##trigger", &cvar.legit[weapon_id].trigger_chest);
- ImGui::Next();
- ImGui::Checkbox("Stomach##trigger", &cvar.legit[weapon_id].trigger_stomach);
- ImGui::PushItemWidth(230.f);
- ImGui::Next();
- ImGui::Checkbox("Automatic penetration##trigger", &cvar.legit[weapon_id].trigger_penetration);
- ImGui::Next();
- ImGui::Combo("Accuracy boost##trigger", &cvar.legit[weapon_id].trigger_accuracy, accuracy_boost, IM_ARRAYSIZE(accuracy_boost));
- ImGui::PopItemWidth();
- ImGui::Spacing(3);
- ImGui::Next();
- ImGui::EndChild();
- ImGui::Text("Other:");
- ImGui::BeginChild("##3", ImVec2(405, 198));
- ImGui::Spacing(3);
- ImGui::Next();
- ImGui::Checkbox("Friendly fire", &cvar.legit_teammates);
- ImGui::Next();
- ImGui::Checkbox("Automatic scope", &cvar.aim_autoscope);
- ImGui::Next();
- ImGui::Checkbox("Trigger only zoom", &cvar.trigger_only_zoomed);
- ImGui::PushItemWidth(230.f);
- ImGui::Next();
- ImGui::SliderFloat("Block after kill", &cvar.block_attack_after_kill, 0, 100, "%.2f ms");
- ImGui::Next();
- ImGui::SliderInt("Recoil comp. bullet start", &cvar.legit[weapon_id].aim_recoil_compensation_after_shots_fired, 0, 30);
- ImGui::PopItemWidth();
- ImGui::EndChild();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement