protected override void UpdateAnims() { base.UpdateAnims(); // if( !this.IsActiveState ) // return; CrouchState.AdjustRootFramePosition(m_ped); }
protected override void UpdateAnims() { base.UpdateAnims(); // if( !this.IsActiveState ) // return; // anim does not set correct velocity // set it to zero to make the ped stand in place // this should be done even if parent method changed active state if (m_model.RootFrame != null) { m_model.RootFrame.LocalVelocity = Vector3.zero; } // if( !this.IsActiveState ) // return; CrouchState.AdjustRootFramePosition(m_ped); }