Add OnDamagedHitNiagaraSystem to NakatomiCharacter

This commit is contained in:
baz 2024-03-07 17:02:20 +00:00
parent 8e03d3e27d
commit e1ae4f60a8
2 changed files with 10 additions and 0 deletions

View File

@ -257,6 +257,11 @@ bool ANakatomiCharacter::GetCrouched()
return false; return false;
} }
UNiagaraSystem* ANakatomiCharacter::GetOnDamagedHitNiagaraSystem()
{
return OnDamagedHitNiagaraSystem;
}
void ANakatomiCharacter::CalculateHits(TArray<FHitResult>* hits, FVector* dir) void ANakatomiCharacter::CalculateHits(TArray<FHitResult>* hits, FVector* dir)
{ {
} }

View File

@ -45,6 +45,9 @@ public:
UPROPERTY(EditDefaultsOnly) UPROPERTY(EditDefaultsOnly)
TArray<UAnimMontage*> OnDamagedHitAnimMontages; TArray<UAnimMontage*> OnDamagedHitAnimMontages;
UPROPERTY(EditDefaultsOnly)
UNiagaraSystem* OnDamagedHitNiagaraSystem;
protected: protected:
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Meta = (AllowPrivateAccess = "true")) UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Meta = (AllowPrivateAccess = "true"))
UNakatomiCMC* NakatomiCMC; UNakatomiCMC* NakatomiCMC;
@ -115,6 +118,8 @@ public:
UFUNCTION(BlueprintCallable) UFUNCTION(BlueprintCallable)
bool GetCrouched(); bool GetCrouched();
UNiagaraSystem* GetOnDamagedHitNiagaraSystem();
protected: protected:
virtual void CalculateHits(TArray<FHitResult>* hits, FVector* dir); virtual void CalculateHits(TArray<FHitResult>* hits, FVector* dir);