public void InterruptCharactor() { var RelatedCharState = playerEntity.stateInterface.State; RelatedCharState.InterruptAction(); RelatedCharState.InterruptSwitchWeapon(); RelatedCharState.ForceBreakSpecialReload(null); RelatedCharState.ForceFinishGrenadeThrow(); PlayerStateUtil.AddPlayerState(EPlayerGameState.InterruptItem, playerEntity.gamePlay); if (playerEntity.hasThrowingAction) { playerEntity.throwingAction.ActionInfo.ClearState(); } }
public void InterruptCharactor() { var RelatedCharState = playerEntity.stateInterface.State; RelatedCharState.InterruptAction(); RelatedCharState.InterruptSwitchWeapon(); RelatedCharState.ForceBreakSpecialReload(null); RelatedCharState.ForceFinishGrenadeThrow(); playerEntity.AudioController().StopPullBoltAudio(); PlayerStateUtil.AddPlayerState(EPlayerGameState.InterruptItem, playerEntity.gamePlay); if (playerEntity.hasThrowingAction) { playerEntity.throwingAction.ActionData.InternalCleanUp(); } }