-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
67 additions
and
17 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+78 KB
Content/Characters/DwarfGrunt/Materials/Dwarf_Grunt_Equipment_Blue_MIC.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.98 KB
Content/Characters/DwarfGrunt/SkelMesh/DwarfGrunt_R_new_Skeleton.uasset
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.95 MB
Content/Characters/DwarfGrunt/Textures/T_Dwarf_Grunt_Equipment_Blue_D.uasset
Binary file not shown.
Binary file added
BIN
+4.12 MB
Content/Characters/DwarfGrunt/Textures/T_Dwarf_Grunt_Equipment_Blue_N.uasset
Binary file not shown.
Binary file added
BIN
+2.21 MB
Content/Characters/DwarfGrunt/Textures/T_Dwarf_Grunt_Equipment_M.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include "FPSAIGuard.h" | ||
#include "Perception/PawnSensingComponent.h" | ||
|
||
// Sets default values | ||
AFPSAIGuard::AFPSAIGuard() | ||
{ | ||
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it. | ||
PrimaryActorTick.bCanEverTick = true; | ||
|
||
PawnSensingComponent = CreateDefaultSubobject<UPawnSensingComponent>(TEXT("PawnSensingComponent")); | ||
PawnSensingComponent->OnSeePawn.AddDynamic(this, &AFPSAIGuard::OnPawnSeen); | ||
} | ||
|
||
// Called when the game starts or when spawned | ||
void AFPSAIGuard::BeginPlay() | ||
{ | ||
Super::BeginPlay(); | ||
|
||
} | ||
|
||
void AFPSAIGuard::OnPawnSeen(APawn* Pawn) | ||
{ | ||
if (Pawn == nullptr) | ||
{ | ||
return; | ||
} | ||
} | ||
|
||
// Called every frame | ||
void AFPSAIGuard::Tick(float DeltaTime) | ||
{ | ||
Super::Tick(DeltaTime); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
#include "GameFramework/Character.h" | ||
#include "FPSAIGuard.generated.h" | ||
|
||
class UPawnSensingComponent; | ||
|
||
UCLASS() | ||
class FPSGAME_API AFPSAIGuard : public ACharacter | ||
{ | ||
GENERATED_BODY() | ||
|
||
public: | ||
// Sets default values for this character's properties | ||
AFPSAIGuard(); | ||
|
||
protected: | ||
// Called when the game starts or when spawned | ||
virtual void BeginPlay() override; | ||
|
||
UPROPERTY(VisibleAnywhere, Category = "Components") | ||
UPawnSensingComponent* PawnSensingComponent; | ||
|
||
UFUNCTION() | ||
void OnPawnSeen(APawn* Pawn); | ||
|
||
|
||
public: | ||
// Called every frame | ||
virtual void Tick(float DeltaTime) override; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters