Exemplo n.º 1
0
 public void CharacterUnarm(Action holsterStartFinished, Action holsterEndFinished, float unarmParam)
 {
     logger.Info("[Tmp]Interrupt");
     RelatedCharState.InterruptAction();
     RelatedCharState.ForceFinishGrenadeThrow();
     RelatedCharState.Holster(holsterStartFinished, holsterEndFinished, unarmParam);
 }
Exemplo n.º 2
0
 public void CharacterDrawInterrupt()
 {
     logger.Info("[Tmp]Interrupt");
     PlayerStateUtil.AddPlayerState(EPlayerGameState.InterruptItem, entity.gamePlay);
     RelatedCharState.InterruptAction();
     RelatedCharState.ForceFinishGrenadeThrow();
     Owner.AudioController().StopPullBoltAudio();
 }
Exemplo n.º 3
0
 public void ThrowActionExecute()
 {
     if (!entity.hasThrowingAction)
     {
         return;
     }
     Core.WeaponLogic.Throwing.ThrowingActionInfo actionInfo = RelatedThrowAction;
     if (actionInfo.IsReady && actionInfo.IsPull)
     {
         //若已拉栓,销毁ThrowingEntity
         actionInfo.IsInterrupt = true;
     }
     //打断投掷动作
     RelatedCharState.ForceFinishGrenadeThrow();
     //清理手雷状态
     actionInfo.ClearState();
 }
Exemplo n.º 4
0
        public void ThrowActionExecute()
        {
            if (!entity.hasThrowingAction)
            {
                return;
            }
            ThrowingActionData actionData = RelatedThrowAction;

            if (actionData.IsReady && actionData.IsPull)
            {
                //若已拉栓,销毁ThrowingEntity
                actionData.IsInterrupt = true;
            }

            //打断投掷动作
            RelatedCharState.ForceFinishGrenadeThrow();
            //清理手雷状态
            actionData.InternalCleanUp();
        }
Exemplo n.º 5
0
 public void CharacterUnarm(System.Action holsterStartFinished, System.Action holsterEndFinished, float unarmParam)
 {
     RelatedCharState.InterruptAction();
     RelatedCharState.ForceFinishGrenadeThrow();
     RelatedCharState.Holster(holsterStartFinished, holsterEndFinished, unarmParam);
 }
Exemplo n.º 6
0
 public void CharacterDrawInterrupt()
 {
     PlayerStateUtil.AddPlayerState(EPlayerGameState.InterruptItem, entity.gamePlay);
     RelatedCharState.InterruptAction();
     RelatedCharState.ForceFinishGrenadeThrow();
 }
Exemplo n.º 7
0
 public void CharacterUnarm(System.Action unarm, float unarmParam)
 {
     RelatedCharState.InterruptAction();
     RelatedCharState.ForceFinishGrenadeThrow();
     RelatedCharState.Unarm(unarm, unarmParam);
 }