Play Dash AnimMontage when Dashing
This commit is contained in:
parent
957da3946a
commit
957867ecd4
BIN
Content/AnimStarterPack/ABP_Manequin.uasset (Stored with Git LFS)
BIN
Content/AnimStarterPack/ABP_Manequin.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/AnimStarterPack/dash_Montage.uasset (Stored with Git LFS)
BIN
Content/AnimStarterPack/dash_Montage.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Player/PlayerCharacter.uasset (Stored with Git LFS)
BIN
Content/Player/PlayerCharacter.uasset (Stored with Git LFS)
Binary file not shown.
|
@ -385,6 +385,8 @@ void UNakatomiCMC::PerformDash()
|
|||
FHitResult Hit;
|
||||
SafeMoveUpdatedComponent(FVector::ZeroVector, NewRotation, false, Hit);
|
||||
|
||||
NakatomiCharacterOwner->PlayAnimMontage(Dash_Montage);
|
||||
|
||||
SetMovementMode(MOVE_Falling);
|
||||
|
||||
DashStartDelegate.Broadcast();
|
||||
|
|
|
@ -94,6 +94,9 @@ class NAKATOMI_API UNakatomiCMC : public UCharacterMovementComponent
|
|||
UPROPERTY(EditDefaultsOnly)
|
||||
float Dash_CooldownDuration = 1.0f;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly)
|
||||
UAnimMontage* Dash_Montage;
|
||||
|
||||
bool Safe_bWantsToSprint;
|
||||
bool Safe_bWantsToSlide;
|
||||
bool Safe_bWantsToAds;
|
||||
|
|
Loading…
Reference in New Issue