From e1ae4f60a8564443728a40d4c5af36ff7ef57611 Mon Sep 17 00:00:00 2001 From: baz Date: Thu, 7 Mar 2024 17:02:20 +0000 Subject: [PATCH] Add OnDamagedHitNiagaraSystem to NakatomiCharacter --- Source/Nakatomi/NakatomiCharacter.cpp | 5 +++++ Source/Nakatomi/NakatomiCharacter.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Source/Nakatomi/NakatomiCharacter.cpp b/Source/Nakatomi/NakatomiCharacter.cpp index 8bd590b..dace3d2 100644 --- a/Source/Nakatomi/NakatomiCharacter.cpp +++ b/Source/Nakatomi/NakatomiCharacter.cpp @@ -257,6 +257,11 @@ bool ANakatomiCharacter::GetCrouched() return false; } +UNiagaraSystem* ANakatomiCharacter::GetOnDamagedHitNiagaraSystem() +{ + return OnDamagedHitNiagaraSystem; +} + void ANakatomiCharacter::CalculateHits(TArray* hits, FVector* dir) { } diff --git a/Source/Nakatomi/NakatomiCharacter.h b/Source/Nakatomi/NakatomiCharacter.h index 2e700d7..33a1b2e 100644 --- a/Source/Nakatomi/NakatomiCharacter.h +++ b/Source/Nakatomi/NakatomiCharacter.h @@ -45,6 +45,9 @@ public: UPROPERTY(EditDefaultsOnly) TArray OnDamagedHitAnimMontages; + UPROPERTY(EditDefaultsOnly) + UNiagaraSystem* OnDamagedHitNiagaraSystem; + protected: UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Meta = (AllowPrivateAccess = "true")) UNakatomiCMC* NakatomiCMC; @@ -115,6 +118,8 @@ public: UFUNCTION(BlueprintCallable) bool GetCrouched(); + UNiagaraSystem* GetOnDamagedHitNiagaraSystem(); + protected: virtual void CalculateHits(TArray* hits, FVector* dir);