Compare commits
No commits in common. "d6770f8d4bf248ad7c7929c9ac8c8275ab138ead" and "95a7b28db261f6822ab30f17ee52b33883a27562" have entirely different histories.
d6770f8d4b
...
95a7b28db2
BIN
Content/Weapons/Shotgun/Shotgun.uasset (Stored with Git LFS)
BIN
Content/Weapons/Shotgun/Shotgun.uasset (Stored with Git LFS)
Binary file not shown.
|
@ -142,9 +142,7 @@ void AEnemyCharacter::OnDamaged()
|
|||
{
|
||||
Super::OnDamaged();
|
||||
|
||||
if (AEnemyAIController* controller = Cast<AEnemyAIController>(GetController()))
|
||||
{
|
||||
controller->GetBlackboardComponent()->SetValueAsFloat("CurrentHealth", GetHealthComponent()->GetCurrentHealth());
|
||||
}
|
||||
AEnemyAIController* controller = Cast<AEnemyAIController>(GetController());
|
||||
controller->GetBlackboardComponent()->SetValueAsFloat("CurrentHealth", GetHealthComponent()->GetCurrentHealth());
|
||||
}
|
||||
|
||||
|
|
|
@ -275,15 +275,12 @@ void ANakatomiCharacter::PlayOnFireAnimations()
|
|||
|
||||
void ANakatomiCharacter::OnDamaged()
|
||||
{
|
||||
if (OnDamagedHitAnimMontages.Num() > 0)
|
||||
int32 randomAnimMontage = FMath::RandRange(0,OnDamagedHitAnimMontages.Num()-1);
|
||||
|
||||
if (OnDamagedHitAnimMontages[randomAnimMontage] != nullptr)
|
||||
{
|
||||
int32 randomAnimMontage = FMath::RandRange(0,OnDamagedHitAnimMontages.Num()-1);
|
||||
|
||||
if (OnDamagedHitAnimMontages[randomAnimMontage] != nullptr)
|
||||
{
|
||||
//TODO: Disable movement while playing animation montage
|
||||
// PlayAnimMontage(OnDamagedHitAnimMontages[randomAnimMontage]);
|
||||
}
|
||||
//TODO: Disable movement while playing animation montage
|
||||
// PlayAnimMontage(OnDamagedHitAnimMontages[randomAnimMontage]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue