Space Plunder
Loading...
Searching...
No Matches
ProjectileWeaponFramework.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 "ProjectileWeaponFramework.generated.h"
8
9
18UCLASS()
19class WEAPONSYSTEM_API AProjectileWeaponFramework : public AWeaponFramework
20{
21 GENERATED_BODY()
22
23public:
25
26 virtual void ServerShoot() override;
27
28
29
30protected:
31 virtual void BeginPlay() override;
32 // virtual void OnFinishSpawning() override;
33
34 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Projectile")
35 TSubclassOf<class AProjectileBase> Projectile;
36
37
38 virtual void Aiming(bool bIsAiming) override;
39
40 UFUNCTION(BlueprintCallable, Category="Projectile|Homing")
41 virtual void LockOnTarget();
42
43
44private:
45 UPROPERTY()
46 USceneComponent* HomingTarget = nullptr;
47
48 FTimerHandle HomingTimerHandle;
49
50 float CurrentLockOn = 0.0f;
51 UPROPERTY()
52 AActor* LockOnTargetActor = nullptr;
53
54};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition ProjectileBase.h:15
A class representing a projectile-based weapon framework.
Definition ProjectileWeaponFramework.h:20
A weapon base class.
Definition WeaponFramework.h:28