Вопрос Weave v2 min dmg

Новичок
Статус
Оффлайн
Регистрация
26 Окт 2021
Сообщения
1
Реакции[?]
1
Поинты[?]
0
I've seen Weave's minimum dmg and it's cancer.
It's completely ignores the min dmg slider in the menu, and tries to get the best min dmg.


int health = anims-> player-> GetHealth ();

if (min_dmg> health)
min_dmg = health + 1;


How to imrpove this / change this cancer help me
 
ЧВК EB_LAN
Эксперт
Статус
Оффлайн
Регистрация
26 Янв 2021
Сообщения
1,545
Реакции[?]
516
Поинты[?]
191K
I've seen Weave's minimum dmg and it's cancer.
It's completely ignores the min dmg slider in the menu, and tries to get the best min dmg.






How to imrpove this / change this cancer help me
C++:
    auto IsVisible = [](C_BaseEntity* pEnt, Vector Hitbox)
    {
        trace_t Trace;
        g_Autowall.TraceLine(g::pLocalEntity->GetEyePosition(), Hitbox, MASK_SOLID, (IClientEntity*)g::pLocalEntity, &Trace);
 
        if (Trace.hit_entity == (IClientEntity*)pEnt)
            return true;
 
        if (Trace.fraction == 1.f)
            return true;
 
        return false;
    };
 
    for (auto point : Multipoint(pEnt, hitbox))
    {
        bestDamage = IsVisible(pEnt, point) ? SynchronizeMinDamageVisible() : SynchronizeMinDamageAutowall();
 
        auto Damage = g_Autowall.CanHit(point);
        if (Damage >= bestDamage)
        {
            bestDamage = Damage;
            return point;
        }
    }
Its just small example...
 
Сверху Снизу