38 lines
1 KiB
C++
Executable file
38 lines
1 KiB
C++
Executable file
#pragma once
|
|
#include "CoreMinimal.h"
|
|
#include "AmmoDrivenWeapon.h"
|
|
#include "Templates/SubclassOf.h"
|
|
#include "AssaultRifle.generated.h"
|
|
|
|
class AActor;
|
|
class UFSDPhysicalMaterial;
|
|
class UStatusEffect;
|
|
|
|
UCLASS(Blueprintable)
|
|
class AAssaultRifle : public AAmmoDrivenWeapon {
|
|
GENERATED_BODY()
|
|
public:
|
|
protected:
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
|
|
float KillsResetAccuracyDuration;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
|
|
bool KillsTriggersStatusEffect;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
TSubclassOf<UStatusEffect> KillTriggeredStatusEffect;
|
|
|
|
public:
|
|
AAssaultRifle();
|
|
protected:
|
|
UFUNCTION(BlueprintCallable)
|
|
void OnTimerElapsed();
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
void OnEnemyKilled(AActor* Target, UFSDPhysicalMaterial* PhysMat, bool wasDirectHit);
|
|
|
|
UFUNCTION(BlueprintCallable, Client, Reliable)
|
|
void Client_ResetAccuracy();
|
|
|
|
};
|
|
|