File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -3582,14 +3582,20 @@ void AHuman::Update()
3582
3582
}
3583
3583
bool climbing = m_ArmClimbing[FGROUND] || m_ArmClimbing[BGROUND];
3584
3584
3585
+ if (m_StrideSound) {
3586
+ m_StrideSound->SetPosition (m_Pos);
3587
+ if (m_StrideSound->GetLoopSetting () < 0 ) {
3588
+ if (!m_StrideSound->IsBeingPlayed ()) { m_StrideSound->Play (); }
3589
+ } else if (restarted && !climbing) {
3590
+ m_StrideSound->Play ();
3591
+ }
3585
3592
}
3586
3593
if (restarted) {
3587
- if (! climbing) {
3588
- if (m_StrideSound) { m_StrideSound-> Play (m_Pos); }
3589
- RunScriptedFunctionInAppropriateScripts ( " OnStride " );
3594
+ if (climbing) {
3595
+ m_WalkAngle[FGROUND] = Matrix ();
3596
+ m_WalkAngle[BGROUND] = Matrix ( );
3590
3597
} else {
3591
- m_WalkAngle[FGROUND] = Matrix ();
3592
- m_WalkAngle[BGROUND] = Matrix ();
3598
+ RunScriptedFunctionInAppropriateScripts (" OnStride" );
3593
3599
}
3594
3600
}
3595
3601
You can’t perform that action at this time.
0 commit comments