ATheSwarmActor::ATheSwarmActor(const class FObjectInitializer& PCIP) :Super(PCIP)
{
	velocity = FVector::ZeroVector;
	
	// Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = true;
	SetTickGroup(ETickingGroup::TG_PostPhysics);
	 
	behave = Behaviours::IDLE;
}
AGWWeaponRanged::AGWWeaponRanged(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
	bReplicates = true;

	PrimaryActorTick.bCanEverTick = true;
	PrimaryActorTick.bStartWithTickEnabled = false;
	PrimaryActorTick.bAllowTickOnDedicatedServer = true;
	PrimaryActorTick.bRunOnAnyThread = true;
	PrimaryActorTick.TickGroup = ETickingGroup::TG_DuringPhysics;
	SetTickGroup(ETickingGroup::TG_DuringPhysics);


	bIsWeaponFiring = false;

	ReloadEndCount = 0;
}