Exemplo n.º 1
0
 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);
         }
     }
 }
Exemplo n.º 2
0
 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));
             }
         }
     }
 }