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

105 lines
3.6 KiB
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "SpecialAttackComponent.h"
#include "Templates/SubclassOf.h"
#include "LineSpikeAttack.generated.h"
class AActor;
class ULineSpikeTaskBase;
class UMaterialInstance;
class UMaterialInterface;
class UNiagaraComponent;
class UNiagaraSystem;
class USoundCue;
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
class ULineSpikeAttack : public USpecialAttackComponent {
GENERATED_BODY()
public:
protected:
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
UMaterialInterface* TentacleMaterial;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
UMaterialInstance* ActiveMaterial;
UPROPERTY(EditAnywhere, Export, Transient, meta=(AllowPrivateAccess=true))
TArray<TWeakObjectPtr<UNiagaraComponent>> ActiveParticles;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
UNiagaraSystem* TentacleImpactParticles;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
UNiagaraSystem* StartWaveParticles;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
USoundCue* TentacleImpactSound;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
USoundCue* TentacleExitSound;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
USoundCue* StartWaveSound;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
UNiagaraComponent* Tentacles;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
TArray<ULineSpikeTaskBase*> Sequence;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
TArray<AActor*> Children;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
int32 SequenceLoops;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TSubclassOf<AActor> SpikeClass;
UPROPERTY(BlueprintReadWrite, EditAnywhere, ReplicatedUsing=OnRep_TentaclesBurried, meta=(AllowPrivateAccess=true))
bool TentaclesBurried;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float MaxStepUpheight;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float firstSpikeDelay;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float MaxDistanceToGround;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float DistanceBetweenSpikes;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float TimeBetweenSpikes;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float TentacleStretchPower;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float TentacleSearchDistance;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float TentacleInGroundOffset;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
int32 MinSpikeCount;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
int32 MaxFails;
public:
ULineSpikeAttack();
virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
protected:
UFUNCTION(BlueprintCallable)
void OnRep_TentaclesBurried();
public:
UFUNCTION(BlueprintCallable, NetMulticast, Unreliable)
void All_PlayEffects();
};