LEAP Documentation 40220
Documentation for the LEAP project
AnimNotifyState_Melee.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2018. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Animation/AnimNotifies/AnimNotifyState.h"
8#include "AnimNotifyState_Melee.generated.h"
9
10UCLASS()
11class PROJECTX_API UAnimNotifyState_Melee : public UAnimNotifyState
12{
13 GENERATED_UCLASS_BODY()
14
15public:
16 virtual void NotifyBegin(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation, float TotalDuration) override;
17 virtual void NotifyTick(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation, float FrameDeltaTime) override;
18 virtual void NotifyEnd(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation) override;
19
20protected:
21 virtual void GenerateHitBox(USkeletalMeshComponent* MeshComp, struct FHitBoxInfo& HitBox);
22 virtual void DrawHitboxPreview(USkeletalMeshComponent* MeshComp, const struct FHitBoxInfo& HitBox, float DeltaTime);
23 virtual void SendHitbox(USkeletalMeshComponent* MeshComp, const FHitBoxInfo& HitBox);
24 UWeaponInstanceMelee* GetWeaponInstance(USkeletalMeshComponent* MeshComp) const;
25
26protected:
27 UPROPERTY(EditAnywhere, Category = HitBox)
28 FName HitBoxSocketName = FName("");
29 UPROPERTY(EditAnywhere, Category = HitBox)
30 FVector HitBoxOffset = FVector(0, 0, 0);
31 UPROPERTY(EditAnywhere, Category = HitBox)
32 FRotator HitBoxRotation = FRotator(0, 0, 0);
33 UPROPERTY(EditAnywhere, Category = HitBox)
35 UPROPERTY(EditAnywhere, Category = HitBox)
36 FVector HitBoxExtent = FVector(1, 1, 1);
37 UPROPERTY(EditAnywhere, Category = HitBox)
38 bool bDebugHitbox = false;
39 UPROPERTY(EditAnywhere, Category = HitBox)
40 bool bDebugPersistentLines = false;
41
42 UPROPERTY()
43 float NotifyDuration = 0.f;
44 UPROPERTY()
45 float NotifyElapsed = 0.f;
46
47 mutable TWeakObjectPtr<UWeaponInstanceMelee> WeaponInstance = nullptr;
48};
EHitBoxShape
Definition: WeaponInstanceMelee.h:13
Definition: AnimNotifyState_Melee.h:12
Definition: WeaponInstanceMelee.h:41
Definition: WeaponInstanceMelee.h:21