this is how you get the proper value
const auto desync_value = static_cast<int>(std::clamp(fabs(animations.fake_delta), 0.f, 58.f) / 58.f * 255.f);
to get fake_delta you need to maintain a seperate animstate and updating the animstates yaw with ur eyeangles and store you goalfeetyaw from that...