39 lines
1.2 KiB
C++
Executable file
39 lines
1.2 KiB
C++
Executable file
#pragma once
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/NoExportTypes.h"
|
|
#include "Engine/EngineTypes.h"
|
|
#include "ExplosionBaseComponent.h"
|
|
#include "ScaledEffect.h"
|
|
#include "ProjectileExplosion.generated.h"
|
|
|
|
class UForceFeedbackAttenuation;
|
|
class UForceFeedbackEffect;
|
|
class USoundCue;
|
|
|
|
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
|
|
class UProjectileExplosion : public UExplosionBaseComponent {
|
|
GENERATED_BODY()
|
|
public:
|
|
protected:
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
FScaledEffect ExplosionEffect;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
USoundCue* ExplosionSound;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
UForceFeedbackEffect* ForceFeedbackEffect;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
UForceFeedbackAttenuation* ForceFeedbackAttanuation;
|
|
|
|
public:
|
|
UProjectileExplosion();
|
|
UFUNCTION(BlueprintCallable)
|
|
void SpawnEffectsFromHit(const FHitResult& Hit);
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
void SpawnEffects(FVector Location, FVector Normal);
|
|
|
|
};
|
|
|