Disallow Dashing and Sliding while Throwing
This commit is contained in:
parent
4930aff6c2
commit
c1afc827e0
|
@ -575,7 +575,8 @@ void APlayerCharacter::EndCrouchCallback(const FInputActionInstance& Instance)
|
||||||
|
|
||||||
void APlayerCharacter::BeginSlideCallback(const FInputActionInstance& Instance)
|
void APlayerCharacter::BeginSlideCallback(const FInputActionInstance& Instance)
|
||||||
{
|
{
|
||||||
if (UNakatomiCMC* cmc = GetCharacterMovementComponent())
|
UNakatomiCMC* cmc = GetCharacterMovementComponent();
|
||||||
|
if (cmc && !IsThrowing)
|
||||||
{
|
{
|
||||||
cmc->EnableSlide();
|
cmc->EnableSlide();
|
||||||
}
|
}
|
||||||
|
@ -591,7 +592,8 @@ void APlayerCharacter::EndSlideCallback(const FInputActionInstance& Instance)
|
||||||
|
|
||||||
void APlayerCharacter::BeginDashCallback(const FInputActionInstance& Instance)
|
void APlayerCharacter::BeginDashCallback(const FInputActionInstance& Instance)
|
||||||
{
|
{
|
||||||
if (UNakatomiCMC* cmc = GetCharacterMovementComponent())
|
UNakatomiCMC* cmc = GetCharacterMovementComponent();
|
||||||
|
if (cmc && !IsThrowing)
|
||||||
{
|
{
|
||||||
cmc->EnableDash();
|
cmc->EnableDash();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue