Подпишитесь на наш Telegram-канал, чтобы всегда быть в курсе важных обновлений! Перейти

C++ Two-shot for LW past

EyeAngel = ты просто пидр
Начинающий
Начинающий
Статус
Оффлайн
Регистрация
16 Сен 2019
Сообщения
82
Реакции
21
переделал хуево с JS сама JS
aim.cpp [Line 400]
C++:
Expand Collapse Copy
    auto minimum_damage = get_minimum_damage(false, record->player->m_iHealth());;
    if (g_cfg.ragebot.TwoShot)
    {
        if (record->player->m_iHealth() >= 80)
            minimum_damage = get_minimum_damage(false, 51);
        if (record->player->m_iHealth() <= 79)
            minimum_damage = get_minimum_damage(false, 41);
        if (record->player->m_iHealth() >= 40 && record->player->m_iHealth() <= 59)
            minimum_damage = get_minimum_damage(false, 31);
        if (record->player->m_iHealth() >= 20 && record->player->m_iHealth() <= 39)
            minimum_damage = get_minimum_damage(false, 21);
    }
    auto minimum_visible_damage = get_minimum_damage(true, record->player->m_iHealth());
    if (!g_cfg.ragebot.TwoShot)
    {
        if (record->player->m_iHealth() >= 80)
            minimum_visible_damage = get_minimum_damage(true, 51);
        if (record->player->m_iHealth() <= 79)
            minimum_visible_damage = get_minimum_damage(true, 41);
        if (record->player->m_iHealth() >= 40 && record->player->m_iHealth() <= 59)
            minimum_visible_damage = get_minimum_damage(true, 31);
        if (record->player->m_iHealth() >= 20 && record->player->m_iHealth() <= 39)
            minimum_visible_damage = get_minimum_damage(true, 21);
    }
 
???
C++:
Expand Collapse Copy
void SetDamage() {
    /* ... */
    
    minimum_damage = get_minimum_damage(g_cfg.ragebot.TwoShot, (int)(record->player->m_iHealth() / 2));
    
    /* ... */
}
 
???
C++:
Expand Collapse Copy
void SetDamage() {
    /* ... */
   
    minimum_damage = get_minimum_damage(g_cfg.ragebot.TwoShot, (int)(record->player->m_iHealth() / 2));
   
    /* ... */
}
чел
minimum_damage = get_minimum_damage(true (int)(record->player->m_iHealth() / 2)); // true- visible false-Wall
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
переделал хуево с JS сама JS
aim.cpp [Line 400]
C++:
Expand Collapse Copy
    auto minimum_damage = get_minimum_damage(false, record->player->m_iHealth());;
    if (g_cfg.ragebot.TwoShot)
    {
        if (record->player->m_iHealth() >= 80)
            minimum_damage = get_minimum_damage(false, 51);
        if (record->player->m_iHealth() <= 79)
            minimum_damage = get_minimum_damage(false, 41);
        if (record->player->m_iHealth() >= 40 && record->player->m_iHealth() <= 59)
            minimum_damage = get_minimum_damage(false, 31);
        if (record->player->m_iHealth() >= 20 && record->player->m_iHealth() <= 39)
            minimum_damage = get_minimum_damage(false, 21);
    }
    auto minimum_visible_damage = get_minimum_damage(true, record->player->m_iHealth());
    if (!g_cfg.ragebot.TwoShot)
    {
        if (record->player->m_iHealth() >= 80)
            minimum_visible_damage = get_minimum_damage(true, 51);
        if (record->player->m_iHealth() <= 79)
            minimum_visible_damage = get_minimum_damage(true, 41);
        if (record->player->m_iHealth() >= 40 && record->player->m_iHealth() <= 59)
            minimum_visible_damage = get_minimum_damage(true, 31);
        if (record->player->m_iHealth() >= 20 && record->player->m_iHealth() <= 39)
            minimum_visible_damage = get_minimum_damage(true, 21);
    }
Ты же даже включение дт не отследил :FailFish:
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Так можно же просто хп на 2 делить..
 
переделал хуево с JS сама JS
aim.cpp [Line 400]
C++:
Expand Collapse Copy
    auto minimum_damage = get_minimum_damage(false, record->player->m_iHealth());;
    if (g_cfg.ragebot.TwoShot)
    {
        if (record->player->m_iHealth() >= 80)
            minimum_damage = get_minimum_damage(false, 51);
        if (record->player->m_iHealth() <= 79)
            minimum_damage = get_minimum_damage(false, 41);
        if (record->player->m_iHealth() >= 40 && record->player->m_iHealth() <= 59)
            minimum_damage = get_minimum_damage(false, 31);
        if (record->player->m_iHealth() >= 20 && record->player->m_iHealth() <= 39)
            minimum_damage = get_minimum_damage(false, 21);
    }
    auto minimum_visible_damage = get_minimum_damage(true, record->player->m_iHealth());
    if (!g_cfg.ragebot.TwoShot)
    {
        if (record->player->m_iHealth() >= 80)
            minimum_visible_damage = get_minimum_damage(true, 51);
        if (record->player->m_iHealth() <= 79)
            minimum_visible_damage = get_minimum_damage(true, 41);
        if (record->player->m_iHealth() >= 40 && record->player->m_iHealth() <= 59)
            minimum_visible_damage = get_minimum_damage(true, 31);
        if (record->player->m_iHealth() >= 20 && record->player->m_iHealth() <= 39)
            minimum_visible_damage = get_minimum_damage(true, 21);
    }
а куда пихать,я тупой :kek:
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
better like this
C++:
Expand Collapse Copy
    int enemy_hp = record->player->m_iHealth();
    auto weapon_info = weapon->get_csweapon_info();

    // Check if our damage will result in a 1 shot kill to the pelvis.
    if (weapon_info->iDamage >= enemy_hp) {
        // Force our minimum damage to the enemies health.
        minimum_damage = get_minimum_damage(false, enemy_hp);
    }

    // If we can't kill them in 1 shot to the pelvis, check if we can 2 shot them.
    else if (weapon_info->iDamage >= enemy_hp / 2) {
        // Force our minimum damage to half of the enemies health.
        minimum_damage = get_minimum_damage(false, enemy_hp / 2);
    }
 
Последнее редактирование:
Назад
Сверху Снизу