Section 13 complete, Damage numbers, added Block chance and Critical Hit chance
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "GameplayTagContainer.h"
|
||||
#include "AuraPlayerController.generated.h"
|
||||
|
||||
class UDamageTextComponent;
|
||||
class UAuraInputConfig;
|
||||
class UInputMappingContext;
|
||||
class UInputAction;
|
||||
@@ -27,6 +28,9 @@ public:
|
||||
AAuraPlayerController();
|
||||
virtual void PlayerTick(float DeltaTime) override;
|
||||
|
||||
UFUNCTION(Client, Reliable)
|
||||
void ShowDamageNumber(float DamageAmount, ACharacter* TargetCharacter, bool bCritical, bool bBlocked);
|
||||
|
||||
protected:
|
||||
virtual void BeginPlay() override;
|
||||
virtual void SetupInputComponent() override;
|
||||
@@ -76,5 +80,8 @@ private:
|
||||
|
||||
UPROPERTY(VisibleAnywhere, Category = "Input")
|
||||
TObjectPtr<USplineComponent> Spline;
|
||||
|
||||
|
||||
//Show Damage Numbers
|
||||
UPROPERTY(EditDefaultsOnly)
|
||||
TSubclassOf<UDamageTextComponent> DamageTextComponentClass;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user