public void ApplyKnockdown() { if (isKnockedDown) { return; } isKnockedDown = true; StartCoroutine(KnockdownTimer()); animController.SetAnimBool(animController.animData.isKnockedDown, true); animController.PlayAnimationHash(animController.animData.knockDownAnimationClass); limbsController.EnableEntireRagdoll(); hitboxController.DisableHitboxes(); healthController.doorCollider.SetActive(false); healthController.notificationCollider.SetActive(false); if (inventoryController.currentWeaponRuntime != null) { droppedWeapon = inventoryController.currentWeaponRuntime; } inventoryController.DropCurrentInHandWeapon(false); StartCoroutine(DisableAnimatorTimer()); knockDownNotificationCollider.enabled = true; stateController.ChangeState(AIStateType.KNOCKEDDOWN); }
public virtual void EnableRagdoll() { LimbsController limbController = GetComponentInParent <LimbsController>(); limbController.EnableEntireRagdoll(); }