Начинающий
Статус
Оффлайн
Регистрация
17 Июн 2018
Сообщения
6
Реакции[?]
0
Поинты[?]
0
Irishka
(don't send any hate comments just point out what could be improved)

lonelylove :
How do you manage to spread such a shit when there is a leaked source of cs in the public.
 
Начинающий
Статус
Оффлайн
Регистрация
29 Сен 2020
Сообщения
43
Реакции[?]
15
Поинты[?]
0
so much which has to be fixed with that, not only that it can break under many conditions for example dormancy, no it also can let u mag dump on it due to animation desync (yes this exists in legacy).
so u better fix ur anims first and go with some logic of maybe try to hit it just when u rly noticed the lby update and add a miss count on it
 
retard
Пользователь
Статус
Оффлайн
Регистрация
13 Мар 2021
Сообщения
366
Реакции[?]
67
Поинты[?]
10K
so much which has to be fixed with that, not only that it can break under many conditions for example dormancy, no it also can let u mag dump on it due to animation desync (yes this exists in legacy).
so u better fix ur anims first and go with some logic of maybe try to hit it just when u rly noticed the lby update and add a miss count on it
I did a okay lby pred without anims, it does the job. Thanks anyway.
 
Начинающий
Статус
Оффлайн
Регистрация
3 Окт 2020
Сообщения
86
Реакции[?]
7
Поинты[?]
0
Like, supremacy's LBY prediction is okay and all, but it's very simple. So here's a better one (don't send any hate comments just point out what could be improved)

C++:
if (data->m_records.size() >= 2)
        {
        LagRecord* previous = data->m_records[1].get();

        if (previous)
        {
            if (record->m_body != previous->m_body)
            {
                record->m_eye_angles.y = record->m_body;
                data->m_body_update = record->m_anim_time + 1.1f;
                record->m_mode = Modes::RESOLVE_BODY;
                return;
            }
        }
    }
enjoy I guess (btw I got this from guy on discord)

Forgot to add this is mostly public code
this has so many errors you're either autistic or new to source engine. Check 2018 source. Not sure how people still are so retarded that cant check an open source game and fix its shit. bare in mind it has been leaked for 1 year now
 
Начинающий
Статус
Оффлайн
Регистрация
8 Сен 2017
Сообщения
33
Реакции[?]
2
Поинты[?]
0
shit code

Код:
static float NextLBYUpdate[65];
static float Add[65];

/*if (CurrentRecord.Dormant) {
            NextLBYUpdate[Player->EntIndex()] = -1;
                        Add[Player->EntIndex()] = -1;
            Global::NextLBYUpdate[Player->EntIndex()] = NextLBYUpdate[Player->EntIndex()];
        }*/

        if (Player->GetAnimationTime() >= NextLBYUpdate[Player->EntIndex()])
        {
            CurrentRecord.PredLBYFlick = true;
            Add[Player->EntIndex()] = 1.1f;
            NextLBYUpdate[Player->EntIndex()] = Player->GetAnimationTime() + Add[Player->EntIndex()];
            Global::NextLBYUpdate[Player->EntIndex()] = NextLBYUpdate[Player->EntIndex()];
        }
        else
            CurrentRecord.PredLBYFlick = false;

        if (CurrentRecord.LBY != Player->m_flLowerBodyYawTarget() && !CurrentRecord.Dormant && !Player->IsDormant())
        {
            CurrentRecord.LBYFlick = true;
            Add[Player->EntIndex()] = g_GlobalVars->interval_per_tick + 1.1f;
            NextLBYUpdate[Player->EntIndex()] = Player->GetAnimationTime() + Add[Player->EntIndex()];
            Global::NextLBYUpdate[Player->EntIndex()] = NextLBYUpdate[Player->EntIndex()];
        }
        else
            CurrentRecord.LBYFlick = false;

        if (CurrentRecord.Velocity.Length2D() > 0.1f && !CurrentRecord.Fakewalking) {
            Add[Player->EntIndex()] = 0.22f;
            NextLBYUpdate[Player->EntIndex()] = Player->GetAnimationTime() + Add[Player->EntIndex()];
            Global::NextLBYUpdate[Player->EntIndex()] = NextLBYUpdate[Player->EntIndex()];
        }
Credits: KlawN
 
Начинающий
Статус
Оффлайн
Регистрация
29 Сен 2020
Сообщения
43
Реакции[?]
15
Поинты[?]
0
im pretty sure anim time is m_flcycle so idk what you mean here
shit code

Код:
static float NextLBYUpdate[65];
static float Add[65];

/*if (CurrentRecord.Dormant) {
            NextLBYUpdate[Player->EntIndex()] = -1;
                        Add[Player->EntIndex()] = -1;
            Global::NextLBYUpdate[Player->EntIndex()] = NextLBYUpdate[Player->EntIndex()];
        }*/

        if (Player->GetAnimationTime() >= NextLBYUpdate[Player->EntIndex()])
        {
            CurrentRecord.PredLBYFlick = true;
            Add[Player->EntIndex()] = 1.1f;
            NextLBYUpdate[Player->EntIndex()] = Player->GetAnimationTime() + Add[Player->EntIndex()];
            Global::NextLBYUpdate[Player->EntIndex()] = NextLBYUpdate[Player->EntIndex()];
        }
        else
            CurrentRecord.PredLBYFlick = false;

        if (CurrentRecord.LBY != Player->m_flLowerBodyYawTarget() && !CurrentRecord.Dormant && !Player->IsDormant())
        {
            CurrentRecord.LBYFlick = true;
            Add[Player->EntIndex()] = g_GlobalVars->interval_per_tick + 1.1f;
            NextLBYUpdate[Player->EntIndex()] = Player->GetAnimationTime() + Add[Player->EntIndex()];
            Global::NextLBYUpdate[Player->EntIndex()] = NextLBYUpdate[Player->EntIndex()];
        }
        else
            CurrentRecord.LBYFlick = false;

        if (CurrentRecord.Velocity.Length2D() > 0.1f && !CurrentRecord.Fakewalking) {
            Add[Player->EntIndex()] = 0.22f;
            NextLBYUpdate[Player->EntIndex()] = Player->GetAnimationTime() + Add[Player->EntIndex()];
            Global::NextLBYUpdate[Player->EntIndex()] = NextLBYUpdate[Player->EntIndex()];
        }
Credits: KlawN
never seen such a shit paste tranny code
 
Начинающий
Статус
Оффлайн
Регистрация
27 Авг 2021
Сообщения
3
Реакции[?]
0
Поинты[?]
0
[QUOTE ="cold1337, post: 2338847, member: 45201"]
shit code

Код:
static float NextLBYUpdate[65];
static float Add[65];

/*if (CurrentRecord.Dormant) {
            NextLBYUpdate[Player->EntIndex()] = -1;
                        Add[Player->EntIndex()] = -1;
            Global::NextLBYUpdate[Player->EntIndex()] = NextLBYUpdate[Player->EntIndex()];
        }*/

        if (Player->GetAnimationTime() >= NextLBYUpdate[Player->EntIndex()])
        {
            CurrentRecord.PredLBYFlick = true;
            Add[Player->EntIndex()] = 1.1f;
            NextLBYUpdate[Player->EntIndex()] = Player->GetAnimationTime() + Add[Player->EntIndex()];
            Global::NextLBYUpdate[Player->EntIndex()] = NextLBYUpdate[Player->EntIndex()];
        }
        else
            CurrentRecord.PredLBYFlick = false;

        if (CurrentRecord.LBY != Player->m_flLowerBodyYawTarget() && !CurrentRecord.Dormant && !Player->IsDormant())
        {
            CurrentRecord.LBYFlick = true;
            Add[Player->EntIndex()] = g_GlobalVars->interval_per_tick + 1.1f;
            NextLBYUpdate[Player->EntIndex()] = Player->GetAnimationTime() + Add[Player->EntIndex()];
            Global::NextLBYUpdate[Player->EntIndex()] = NextLBYUpdate[Player->EntIndex()];
        }
        else
            CurrentRecord.LBYFlick = false;

        if (CurrentRecord.Velocity.Length2D() > 0.1f && !CurrentRecord.Fakewalking) {
            Add[Player->EntIndex()] = 0.22f;
            NextLBYUpdate[Player->EntIndex()] = Player->GetAnimationTime() + Add[Player->EntIndex()];
            Global::NextLBYUpdate[Player->EntIndex()] = NextLBYUpdate[Player->EntIndex()];
        }
Credits: KlawN
[/ QUOTE]
it doesn't work right
 
Похожие темы
Ответы
9
Просмотры
346
Ответы
0
Просмотры
116
Ответы
0
Просмотры
135
Ответы
0
Просмотры
262
Сверху Снизу