blaster/Source/Blaster/Weapon/Shotgun.h

27 lines
522 B
C
Raw Normal View History

2022-05-20 10:10:21 +00:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "HitScanWeapon.h"
#include "Shotgun.generated.h"
/**
*
*/
UCLASS()
class BLASTER_API AShotgun : public AHitScanWeapon
{
GENERATED_BODY()
public:
virtual void Fire(const FVector& HitTarget) override;
2022-05-26 12:29:39 +00:00
void ShotgunTraceEndWithScatter(const FVector& HitTarget, TArray<FVector>& HitTargets);
2022-05-20 10:10:21 +00:00
private:
UPROPERTY(EditAnywhere, Category = "Weapon Scatter")
uint32 NumberOfPellets = 10;
};