Space Plunder
Loading...
Searching...
No Matches
MeleeWeaponFramework.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "MeleeWeaponFramework.generated.h"
8
9
19UCLASS()
20class WEAPONSYSTEM_API AMeleeWeaponFramework : public AWeaponFramework
21{
22 GENERATED_BODY()
23
24public:
25
27
28
29
30 virtual void ServerShoot() override;
31 // virtual void OnFinishSpawning() override;
32
33 // UFUNCTION(BlueprintPure, Category="Weapon System|Melee")
34 // bool GetIsAttacking() const {return bIsAttacking;}
35 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Weapons")
36 float AttackRadius = 100.f;
37 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Weapons")
38 float AttackRange = 100.f;
39
40
41
42protected:
43 //- Add to Weapon Stats
44 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Melee Combat|Combo")
45 float ComboTime = 2.0f;
46
47private:
48
49 // bool bIsAttacking = false;
50 int32 ComboHits = 0;
51 void ComboReset();
52 FHitResult HitResult;
53
54 FTimerHandle ComboTimerHandle;
55 float Damage = 0.0f;
56
57
58
59 FName NotifyName;
60};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
This class represents a melee weapon.
Definition MeleeWeaponFramework.h:21
A weapon base class.
Definition WeaponFramework.h:28