blaster/Source/Blaster/Weapon/Shotgun.h

26 lines
552 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:
2022-05-26 13:06:27 +00:00
virtual void FireShotgun(const TArray<FVector_NetQuantize>& HitTargets);
void ShotgunTraceEndWithScatter(const FVector& HitTarget, TArray<FVector_NetQuantize>& HitTargets);
2022-05-20 10:10:21 +00:00
private:
UPROPERTY(EditAnywhere, Category = "Weapon Scatter")
uint32 NumberOfPellets = 10;
};