Add reworked Worker Enemy AI #3

Closed
baz wants to merge 24 commits from worker-ai into master
2 changed files with 5 additions and 0 deletions
Showing only changes of commit 78d363bc09 - Show all commits

View File

@ -21,6 +21,9 @@ EBTNodeResult::Type UBTTSetMovementSpeed::ExecuteTask(UBehaviorTreeComponent& ow
case EPatrolMovementEnum::WALK: case EPatrolMovementEnum::WALK:
enemyPawn->GetCharacterMovementComponent()->SetMaxWalkSpeed(walkSpeed); enemyPawn->GetCharacterMovementComponent()->SetMaxWalkSpeed(walkSpeed);
break; break;
case EPatrolMovementEnum::SPRINT:
enemyPawn->GetCharacterMovementComponent()->SetMaxWalkSpeed(sprintSpeed);
break;
default: default:
enemyPawn->GetCharacterMovementComponent()->SetMaxWalkSpeedToDefault(); enemyPawn->GetCharacterMovementComponent()->SetMaxWalkSpeedToDefault();
break; break;

View File

@ -26,6 +26,8 @@ private:
float walkSpeed = 500.0f; float walkSpeed = 500.0f;
float sprintSpeed = 750.0f;
public: public:
virtual EBTNodeResult::Type ExecuteTask(UBehaviorTreeComponent& owner, uint8* memory) override; virtual EBTNodeResult::Type ExecuteTask(UBehaviorTreeComponent& owner, uint8* memory) override;