mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 08:02:23 -07:00
Start to add hit impact on the sample
This commit is contained in:
@@ -2,8 +2,13 @@
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "GameplayEffectExecutionCalculation.h"
|
||||
#include "Kismet/BlueprintFunctionLibrary.h"
|
||||
#include "CogSampleExecCalculation_Damage.generated.h"
|
||||
|
||||
class UCogSampleAbilitySystemComponent;
|
||||
struct FHitResult;
|
||||
struct FGameplayEffectContextHandle;
|
||||
|
||||
UCLASS()
|
||||
class UCogSampleExecCalculation_Damage : public UGameplayEffectExecutionCalculation
|
||||
{
|
||||
@@ -14,3 +19,20 @@ public:
|
||||
|
||||
virtual void Execute_Implementation(const FGameplayEffectCustomExecutionParameters& ExecutionParams, OUT FGameplayEffectCustomExecutionOutput& OutExecutionOutput) const override;
|
||||
};
|
||||
|
||||
UCLASS(meta = (ScriptName = "CogSampleFunctionLibrary_Damage"))
|
||||
class COGSAMPLE_API UCogSampleFunctionLibrary_Damage : public UBlueprintFunctionLibrary
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
static void ExecuteDamageGameplayCue(
|
||||
UCogSampleAbilitySystemComponent* TargetAbilitySystem,
|
||||
const FHitResult& HitResult,
|
||||
float HealthDamage,
|
||||
const FGameplayEffectContextHandle& EffectContext,
|
||||
bool IsPredicted);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user