[박치영] Player Death 모션 추가
parent
607c4abf36
commit
9ed92d3a96
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -755,7 +755,13 @@ void ACombatPlayerCharacter::RotateToTargetUpdate(float Value)
|
||||||
|
|
||||||
void ACombatPlayerCharacter::PerformDeath()
|
void ACombatPlayerCharacter::PerformDeath()
|
||||||
{
|
{
|
||||||
EnableRagdoll();
|
if(!DeathAnimations.IsEmpty())
|
||||||
|
{
|
||||||
|
const int randomIdx = FMath::RandRange(0, DeathAnimations.Num() - 1);
|
||||||
|
PlayAnimMontage(DeathAnimations[randomIdx]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
EnableRagdoll();
|
||||||
|
|
||||||
if(bHitFront) //충돌을 좀 더 그럴싸하게 하기 위해서 피격방향으로 충격
|
if(bHitFront) //충돌을 좀 더 그럴싸하게 하기 위해서 피격방향으로 충격
|
||||||
ApplyHitReactionPhysicsVelocity(2000.f);
|
ApplyHitReactionPhysicsVelocity(2000.f);
|
||||||
|
|
|
@ -220,6 +220,8 @@ public:
|
||||||
TObjectPtr<UAnimMontage> KnockdownFrontMontage;
|
TObjectPtr<UAnimMontage> KnockdownFrontMontage;
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Montage", meta = (AllowPrivateAccess = "true"))
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Montage", meta = (AllowPrivateAccess = "true"))
|
||||||
TObjectPtr<UAnimMontage> KnockdownBackMontage;
|
TObjectPtr<UAnimMontage> KnockdownBackMontage;
|
||||||
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Montage|Death", meta = (AllowPrivateAccess = "true"))
|
||||||
|
TArray<TObjectPtr<UAnimMontage>> DeathAnimations;
|
||||||
|
|
||||||
private: //Timeline
|
private: //Timeline
|
||||||
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Timeline", meta = (AllowPrivateAccess = "true"))
|
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Timeline", meta = (AllowPrivateAccess = "true"))
|
||||||
|
|
Loading…
Reference in New Issue