-
Автор темы
- #1
C++:
float CalculateDesyncAngle(C_BasePlayer* player, animstate* animState) {
float velocity = player->GetVelocity();
float eyeAnglesY = player->GetEyeAnglesY();
float moveYaw = animState->GetMoveYaw();
float bodyYaw = eyeAnglesY + moveYaw;
float desyncAngle = bodyYaw - eyeAnglesY + (velocity / bodyYaw);
return desyncAngle;
}