if ( !bIsOnground )
{
//
// s/o estk for this correction :^)
// -L3D451R7
auto currently_ducking = m_record->m_fFlags & 2;
if ( ( m_previous->m_fFlags & 2 ) != currently_ducking )
{
float duck_modifier;
if ( currently_ducking )
duck_modifier = 9.f;
else
duck_modifier = -9.f;
vecAnimVelocity.z += duck_modifier;
}
}
// L3D451R7, raxer23 (c)
void C_BasePlayer::TryInitiateAnimation( C_AnimationLayer* pLayer, int nSequence ) {
if( !pLayer || nSequence < 2 )
return;
pLayer->m_flPlaybackRate = GetLayerSequenceCycleRate( pLayer, nSequence );
pLayer->m_nSequence = nSequence;
pLayer->m_flCycle = pLayer->m_flWeight = 0.f;
};