Как выставить оружие самому в осирисе
Пытался разобраться но не очень понял
Это не работает:
6 ? 6 + 23 : 38 - то что прописано тут:
Пытался разобраться но не очень понял
Это не работает:
C++:
ImGui::Checkbox("Enabled", &config->aimbot[6 ? 6 + 23 : 38].enabled); // 6 - currentWeapon (ssg-08)
C++:
switch (currentCategory) {
case 0:
currentWeapon = 0;
ImGui::NewLine();
break;
case 1: {
static int currentPistol{ 0 };
static constexpr const char* pistols[]{ "All", "Glock-18", "P2000", "USP-S", "Dual Berettas", "P250", "Tec-9", "Five-Seven", "CZ-75", "Desert Eagle", "Revolver" };
ImGui::Combo("", ¤tPistol, [](void* data, int idx, const char** out_text) {
if (config->aimbot[idx ? idx : 35].enabled) {
static std::string name;
name = pistols[idx];
*out_text = name.append(" *").c_str();
} else {
*out_text = pistols[idx];
}
return true;
}, nullptr, IM_ARRAYSIZE(pistols));
currentWeapon = currentPistol ? currentPistol : 35;
break;
}
case 2: {
static int currentHeavy{ 0 };
static constexpr const char* heavies[]{ "All", "Nova", "XM1014", "Sawed-off", "MAG-7", "M249", "Negev" };
ImGui::Combo("", ¤tHeavy, [](void* data, int idx, const char** out_text) {
if (config->aimbot[idx ? idx + 10 : 36].enabled) {
static std::string name;
name = heavies[idx];
*out_text = name.append(" *").c_str();
} else {
*out_text = heavies[idx];
}
return true;
}, nullptr, IM_ARRAYSIZE(heavies));
currentWeapon = currentHeavy ? currentHeavy + 10 : 36;
break;
}
case 3: {
static int currentSmg{ 0 };
static constexpr const char* smgs[]{ "All", "Mac-10", "MP9", "MP7", "MP5-SD", "UMP-45", "P90", "PP-Bizon" };
ImGui::Combo("", ¤tSmg, [](void* data, int idx, const char** out_text) {
if (config->aimbot[idx ? idx + 16 : 37].enabled) {
static std::string name;
name = smgs[idx];
*out_text = name.append(" *").c_str();
} else {
*out_text = smgs[idx];
}
return true;
}, nullptr, IM_ARRAYSIZE(smgs));
currentWeapon = currentSmg ? currentSmg + 16 : 37;
break;
}
case 4: {
static int currentRifle{ 0 };
static constexpr const char* rifles[]{ "All", "Galil AR", "Famas", "AK-47", "M4A4", "M4A1-S", "SSG-08", "SG-553", "AUG", "AWP", "G3SG1", "SCAR-20" };
ImGui::Combo("", ¤tRifle, [](void* data, int idx, const char** out_text) {
if (config->aimbot[idx ? idx + 23 : 38].enabled) {
static std::string name;
name = rifles[idx];
*out_text = name.append(" *").c_str();
} else {
*out_text = rifles[idx];
}
return true;
}, nullptr, IM_ARRAYSIZE(rifles));
currentWeapon = currentRifle ? currentRifle + 23 : 38;
break;
}
}
Последнее редактирование: