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

Вопрос Update anims at the correct time

C++:
Expand Collapse Copy
auto bNewTick = [](int tc) -> bool
    {
        static int varTickCount = -1;

        if (varTickCount != tc)
        {
            varTickCount = tc;
            return true;
        }
        else
            return false;
    };

if(bNewtick(interfaces::globals->tick_count){
    //update anims
}

does the trick hf.
 
C++:
Expand Collapse Copy
auto bNewTick = [](int tc) -> bool
    {
        static int varTickCount = -1;

        if (varTickCount != tc)
        {
            varTickCount = tc;
            return true;
        }
        else
            return false;
    };

if(bNewtick(interfaces::globals->tick_count){
    //update anims
}

does the trick hf.
thanks I guess, I was also trying to go with
Код:
Expand Collapse Copy
g_cl.m_local->m_flSimulationTime() != g_cl.m_local->m_flOldSimulationTime();
but if that does the job thanks then, also do I need to add UpdateClientAnimations (local)? here?

if(bNewtick(interfaces::globals->tick_count){
//update anims
}
 
thanks I guess, I was also trying to go with
Код:
Expand Collapse Copy
g_cl.m_local->m_flSimulationTime() != g_cl.m_local->m_flOldSimulationTime();
but if that does the job thanks then, also do I need to add UpdateClientAnimations (local)? here?

if(bNewtick(interfaces::globals->tick_count){
//update anims
}
dude wtf.....
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Hi so I'm trying to make some okay animfix, but I can't get the UpdateAnims to update at the correct time. Any help? (local ofcourse)
createmove animfix n1
When you use fns for animfix, you will not be able to fix everything that you need, as well as your afix will directly depend on ping and many other factors, it is best to do an animfix in createmove.
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Назад
Сверху Снизу