-
Автор темы
- #1
Код:
if (!(pPlayer->m_fFlags() & 1 && LatestRecord.m_AnimationLayers.at(ROTATE_SERVER).at(ANIMATION_LAYER_MOVEMENT_LAND_OR_CLIMB).m_flWeight > 0.f && PreviousRecord.m_AnimationLayers.at(ROTATE_SERVER).at(ANIMATION_LAYER_MOVEMENT_LAND_OR_CLIMB).m_flWeight > 0.f)) {
auto seq_act = pPlayer->GetSequenceActivity(LatestRecord.m_AnimationLayers.at(ROTATE_SERVER).at(ANIMATION_LAYER_MOVEMENT_LAND_OR_CLIMB).m_nSequence);
if (seq_act == 988 || seq_act == 989) {
land_time = LatestRecord.m_AnimationLayers.at(ROTATE_SERVER).at(ANIMATION_LAYER_MOVEMENT_LAND_OR_CLIMB).m_flWeight / LatestRecord.m_AnimationLayers.at(ROTATE_SERVER).at(ANIMATION_LAYER_MOVEMENT_LAND_OR_CLIMB).m_flPlaybackRate;
land_in_cycle = land_time >= PreviousRecord.m_SimulationTime;
if (land_in_cycle && !is_landed) {
if (land_time < simulated_time) {
on_ground = true;
is_landed = true;
}
}
}
}
on_ground = PreviousRecord.m_Flags |= FL_ONGROUND;