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

83 lines
2.8 KiB
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "PlacementObstruction.h"
#include "Templates/SubclassOf.h"
#include "PlagueControlActor.generated.h"
class ACleanupPodItem;
class APlagueInfectionNode;
class APlayerCharacter;
class UNiagaraComponent;
class UPlagueUsable;
class UTerrainMaterial;
UCLASS(Blueprintable)
class APlagueControlActor : public AActor {
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Replicated, meta=(AllowPrivateAccess=true))
TArray<FPlacementObstruction> Obstructions;
protected:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
UNiagaraComponent* DebrisLightSystem;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
UPlagueUsable* CallWeaponPodUsable;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
UTerrainMaterial* TargetPlagueMaterial;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TSubclassOf<ACleanupPodItem> CleanupPodItem;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Replicated, meta=(AllowPrivateAccess=true))
float MinTimeBetweenWeaponPods;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float MinDistBetweenPods;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float MaxDistFromCenter;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float CanCallPodDistance;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float IgnoreDebrisLightSphere;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float DebrisLightDistanceFromGround;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float RemoveDebrisLightUpdateRate;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
bool DebugDrawDebrisLight;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
TWeakObjectPtr<APlagueInfectionNode> TargetedPlagueNode;
public:
APlagueControlActor();
virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
protected:
UFUNCTION(BlueprintCallable, BlueprintPure=false)
void SpawnPodHack(APlayerCharacter* Player) const;
UFUNCTION(BlueprintCallable)
void SetCanUseWeaponPod(bool Value);
UFUNCTION(BlueprintCallable)
void PushDebrisLights();
UFUNCTION(BlueprintCallable)
void EquipPlaguePod(APlayerCharacter* Player);
UFUNCTION(BlueprintCallable, BlueprintPure)
bool CanDropWeaponPod(float& TimeLeft);
};