protected override void OnLoopEnd() { LockAnimation = false; base.OnLoopEnd(); foreach (WeaponBase ActiveWeapon in PrimaryWeapons.ActiveWeapons) { if (ActiveWeapon.GetAnimationType(ActiveMovementStance) == AnimationTypes.FullAnimation) { ActiveWeapon.InitiateFollowingAttack(false, ActiveMovementStance, this); } } }
public void SetRobotAnimation(string ActiveMovementStance) { foreach (WeaponBase ActiveWeapon in PrimaryWeapons.ActiveWeapons) { if (ActiveWeapon.GetAnimationType(ActiveMovementStance) == AnimationTypes.FullAnimation) { ActiveWeapon.CurrentAnimation = SetAnimation(ActiveWeapon.GetAnimationName(ActiveMovementStance)); } else { SetAnimation(CurrentStanceAnimations.GetAnimationName(ActiveMovementStance)); if (ActiveWeapon.CurrentAnimation == null) { ActivatePartialWeapon(ActiveWeapon, ActiveWeapon.GetAnimationName(ActiveMovementStance)); } } } }