-
Автор темы
- #1
C++:
void TriggerBalanceAdjust()
{
if (AnimState->m_velocity <= 1.0)
{
if (AnimState->m_lastOriginZ)
{
if (AnimState->m_isNotMoving) && (AnimState->m_lastOriginZ)
{
lastUpdateIncrement = AnimState->m_eyeTimer;
if (lastUpdateIncrement > 0.0)
{
currentFeetYaw = AnimState->m_currentFeetYaw;
goalFeetYaw = AnimState->m_goalFeetYaw;
feetDelta = currentFeetYaw - goalFeetYaw;
if (goalFeetYaw < currentFeetYaw)
{
if (feetDelta >= 180.0)
feetDelta = feetDelta - 360.0;
}
else if (feetDelta <= -180.0)
{
feetDelta = feetDelta + 360.0;
}
if ((feetDelta / lastUpdateIncrement) > 120.0)
{
animLayer[3].m_cycle = 0.0;
animLayer[3].m_weight = 0.0;
animLayer[3].m_sequence = (player, 979); // GetSequenceActivity
}
}
}
}
}
}
Последнее редактирование: