평타 구현 완료

This commit is contained in:
2023-11-10 00:22:09 +09:00
parent 1cd43f4527
commit 8e4677250e
18 changed files with 31 additions and 24 deletions

BIN
Content/Character/Lb/BP_Lb.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Character/Lb/Effect/T_H_A.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Character/Lb/Effect/T_H_E.uasset (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Character/Lb/LB_BaseAttack.uasset (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Character/Monster/Knight/BP_Spear.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Character/Riana/BP_Riana.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Effect/LB/Sound/T_H_W.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/Maps/DevMap.umap (Stored with Git LFS)

Binary file not shown.

View File

@@ -34,7 +34,8 @@ void AHomingAttack::BeginPlay()
return; return;
} }
ProjectileMovement->HomingTargetComponent = State->GetCurrentAttackTarget()->GetRootComponent(); Target = State->GetCurrentAttackTarget();
ProjectileMovement->HomingTargetComponent = Target->GetRootComponent();
} }
// Called every frame // Called every frame

View File

@@ -23,6 +23,9 @@ protected:
UPROPERTY(EditAnywhere, BlueprintReadWrite) UPROPERTY(EditAnywhere, BlueprintReadWrite)
UProjectileMovementComponent* ProjectileMovement; UProjectileMovementComponent* ProjectileMovement;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
AActor* Target;
public: public:
// Called every frame // Called every frame
virtual void Tick(float DeltaTime) override; virtual void Tick(float DeltaTime) override;

View File

@@ -56,11 +56,11 @@ void ADefaultPlayerCharacter::Tick(float DeltaTime)
void ADefaultPlayerCharacter::Attack_Implementation() void ADefaultPlayerCharacter::Attack_Implementation()
{ {
Client_Attack(); NetMulticast_Attack();
BP_Attack(); BP_Attack();
} }
void ADefaultPlayerCharacter::Client_Attack_Implementation() void ADefaultPlayerCharacter::NetMulticast_Attack_Implementation()
{ {
BP_Attack(); BP_Attack();
} }

View File

@@ -26,8 +26,8 @@ public:
//Override me //Override me
UFUNCTION(BlueprintImplementableEvent) UFUNCTION(BlueprintImplementableEvent)
void BP_Attack(); void BP_Attack();
UFUNCTION(Client, Reliable) UFUNCTION(NetMulticast, Reliable)
void Client_Attack(); void NetMulticast_Attack();
UFUNCTION(BlueprintNativeEvent) UFUNCTION(BlueprintNativeEvent)
float TakeDamage( float Damage, float TakeDamage( float Damage,