id EstimateAbsVelocity( IClientEntity* p, Vector& vel )
{
typedef void (__thiscall* EstimateAbsVelocityFn)( IClientEntity* thisptr, Vector& vel );
static EstimateAbsVelocityFn pfnEstimateAbsVelocity = NULL;
if ( !pfnEstimateAbsVelocity )
{
pfnEstimateAbsVelocity = (EstimateAbsVelocityFn) dwFindPattern(
(DWORD)GetModuleHandle("client.dll"), 0x690000,
(PBYTE)"\x55\x8B\xEC\x83\xEC\x0C\x56\x8B\xF1\xE8\x00\x00\x00\x00\x3B\xF0", "xx????xxxx");//+16
if(!pfnEstimateAbsVelocity)
return;
}
pfnEstimateAbsVelocity( p, vel );
}