DRG-Femboy-Voice/Source/FSD/Public/CrossbowProjectileRicochet.h
2025-04-15 12:39:31 -07:00

35 lines
1.1 KiB
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "Components/ActorComponent.h"
#include "Engine/EngineTypes.h"
#include "CrossbowProjectileRicochet.generated.h"
class ACrossbowProjectileBase;
class UNiagaraSystem;
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
class UCrossbowProjectileRicochet : public UActorComponent {
GENERATED_BODY()
public:
private:
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
UNiagaraSystem* NiagaraTrailParticleSystem;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
int32 RicochetMax;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float RicochetRange;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
ACrossbowProjectileBase* CastedOwner;
public:
UCrossbowProjectileRicochet();
protected:
UFUNCTION(BlueprintCallable)
void Ricochet(const FHitResult& HitResult, const FVector& RelativeLocation);
};