int __fastcall C_Hooks::hkSetupVelocity(LPVOID pEcx, uint32_t)
{
C_BasePlayer* pPlayer = (C_BasePlayer*)((uintptr_t)(pEcx) - 0x4);
static auto& lagrecord = g_LagCompensation->GetPlayerRecords(pPlayer->EntIndex());
if (!pPlayer || !pPlayer->IsPlayer() || pPlayer->EntIndex() - 1 > 63 || !pPlayer->IsAlive() || !g_sdk.local || !lagrecord.empty())
return g_sdk.hooks.originals.setup_velocity(pEcx);
auto& record = lagrecord.front();
if (!record.m_bAnimResolved)
return g_sdk.hooks.originals.setup_velocity(pEcx);
}