Вопрос Clantag [LW]

С++
Начинающий
Статус
Оффлайн
Регистрация
18 Янв 2021
Сообщения
88
Реакции[?]
8
Поинты[?]
0
Ребят подскажите как убрать агроничение в case clantag

Код:
    if (g_cfg.misc.clantag_spammer)
    {
        auto nci = m_engine()->GetNetChannelInfo();

        if (!nci)
            return;

        static auto time = -1;

        auto ticks = TIME_TO_TICKS(nci->GetAvgLatency(FLOW_OUTGOING)) + (float)m_globals()->m_tickcount; //-V807
        auto intervals = 0.5f / m_globals()->m_intervalpertick;

        auto main_time = (int)(ticks / intervals) % 15;

        if (main_time != time && !m_clientstate()->iChokedCommands)
        {
            auto tag = crypt_str("");

            switch (main_time)
            {
            case 0:
                tag = crypt_str(""); //-V1037
                break;
            case 1:
                tag = crypt_str("");
                break;
            case 2:
                tag = crypt_str("");
                break;
            case 3:
                tag = crypt_str("");
                break;
            case 4:
                tag = crypt_str("");
                break;
            case 5:
                tag = crypt_str("");
                break;
            case 6:
                tag = crypt_str("");
                break;
            case 7:
                tag = crypt_str("");
                break;
            case 8:
                tag = crypt_str("");
                break;
            case 9:
                tag = crypt_str("");
                break;
            case 10:
                tag = crypt_str("");
                break;
            case 11:
                tag = crypt_str("");
                break;
            case 12:
                tag = crypt_str("");
                break;
            case 13:
                tag = crypt_str("");
                break;
            case 14:
                tag = crypt_str("");
                break;

            }

            apply(tag);
            time = main_time;
        }

        removed = false;
    }
}
 
Участник
Статус
Оффлайн
Регистрация
26 Апр 2018
Сообщения
852
Реакции[?]
181
Поинты[?]
0
Ребят подскажите как убрать агроничение в case clantag

Код:
    if (g_cfg.misc.clantag_spammer)
    {
        auto nci = m_engine()->GetNetChannelInfo();

        if (!nci)
            return;

        static auto time = -1;

        auto ticks = TIME_TO_TICKS(nci->GetAvgLatency(FLOW_OUTGOING)) + (float)m_globals()->m_tickcount; //-V807
        auto intervals = 0.5f / m_globals()->m_intervalpertick;

        auto main_time = (int)(ticks / intervals) % 15;

        if (main_time != time && !m_clientstate()->iChokedCommands)
        {
            auto tag = crypt_str("");

            switch (main_time)
            {
            case 0:
                tag = crypt_str(""); //-V1037
                break;
            case 1:
                tag = crypt_str("");
                break;
            case 2:
                tag = crypt_str("");
                break;
            case 3:
                tag = crypt_str("");
                break;
            case 4:
                tag = crypt_str("");
                break;
            case 5:
                tag = crypt_str("");
                break;
            case 6:
                tag = crypt_str("");
                break;
            case 7:
                tag = crypt_str("");
                break;
            case 8:
                tag = crypt_str("");
                break;
            case 9:
                tag = crypt_str("");
                break;
            case 10:
                tag = crypt_str("");
                break;
            case 11:
                tag = crypt_str("");
                break;
            case 12:
                tag = crypt_str("");
                break;
            case 13:
                tag = crypt_str("");
                break;
            case 14:
                tag = crypt_str("");
                break;

            }

            apply(tag);
            time = main_time;
        }

        removed = false;
    }
}
вырезать это говно и найти нормальное
 
Начинающий
Статус
Оффлайн
Регистрация
26 Мар 2017
Сообщения
10
Реакции[?]
0
Поинты[?]
0
Ребят подскажите как убрать агроничение в case clantag

Код:
    if (g_cfg.misc.clantag_spammer)
    {
        auto nci = m_engine()->GetNetChannelInfo();

        if (!nci)
            return;

        static auto time = -1;

        auto ticks = TIME_TO_TICKS(nci->GetAvgLatency(FLOW_OUTGOING)) + (float)m_globals()->m_tickcount; //-V807
        auto intervals = 0.5f / m_globals()->m_intervalpertick;

        auto main_time = (int)(ticks / intervals) % 15;

        if (main_time != time && !m_clientstate()->iChokedCommands)
        {
            auto tag = crypt_str("");

            switch (main_time)
            {
            case 0:
                tag = crypt_str(""); //-V1037
                break;
            case 1:
                tag = crypt_str("");
                break;
            case 2:
                tag = crypt_str("");
                break;
            case 3:
                tag = crypt_str("");
                break;
            case 4:
                tag = crypt_str("");
                break;
            case 5:
                tag = crypt_str("");
                break;
            case 6:
                tag = crypt_str("");
                break;
            case 7:
                tag = crypt_str("");
                break;
            case 8:
                tag = crypt_str("");
                break;
            case 9:
                tag = crypt_str("");
                break;
            case 10:
                tag = crypt_str("");
                break;
            case 11:
                tag = crypt_str("");
                break;
            case 12:
                tag = crypt_str("");
                break;
            case 13:
                tag = crypt_str("");
                break;
            case 14:
                tag = crypt_str("");
                break;

            }

            apply(tag);
            time = main_time;
        }

        removed = false;
    }
}
эмм, добавить 15...999 case и все.
 
Сверху Снизу