LEAP Documentation 40220
Documentation for the LEAP project
BTTask_ProjectXMoveTo.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2022. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "BehaviorTree/Tasks/BTTask_MoveTo.h"
7#include "BTTask_ProjectXMoveTo.generated.h"
8
9class UWeaponComponent;
10
11UCLASS()
12class PROJECTX_API UBTTask_ProjectXMoveTo : public UBTTask_MoveTo
13{
14 GENERATED_BODY()
15
16public:
18
19 UPROPERTY(EditAnywhere)
20 bool bFireWeaponWhileMoving = false;
21 /* If the actor hasn't moved in this many ticks, give up this task */
22 UPROPERTY(EditAnywhere)
23 int32 GiveUpFailCount = 60;
24
25 virtual EBTNodeResult::Type ExecuteTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) override;
26 virtual void TickTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory, float DeltaSeconds) override;
27 virtual EBTNodeResult::Type AbortTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) override;
28 virtual UAITask_MoveTo* PrepareMoveTask(UBehaviorTreeComponent& OwnerComp, UAITask_MoveTo* ExistingTask, FAIMoveRequest& MoveRequest) override;
29
30 UFUNCTION()
31 void ReloadStart(UWeaponComponent* WeaponComponent);
32 UFUNCTION()
33 void ReloadStop(UWeaponComponent* WeaponComponent);
34};
Definition: BTTask_ProjectXMoveTo.h:13