Подведи собственные итоги года совместно с YOUGAME и забери ценные призы! Перейти

Вопрос Weave v2 min dmg

Новичок
Новичок
Статус
Оффлайн
Регистрация
26 Окт 2021
Сообщения
1
Реакции
1
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
 
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++:
Expand Collapse Copy
    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...
 
Назад
Сверху Снизу