#include "NeedleSprayer.h" #include "Components/PointLightComponent.h" #include "Components/SceneComponent.h" #include "Components/SkeletalMeshComponent.h" #include "NiagaraComponent.h" #include "HitscanComponent.h" void ANeedleSprayer::OnHit(const FHitResult& Result, bool IsPenetrating) { } ANeedleSprayer::ANeedleSprayer() { this->Root = CreateDefaultSubobject(TEXT("Root")); this->SKMesh = CreateDefaultSubobject(TEXT("Mesh")); this->FireComponent = CreateDefaultSubobject(TEXT("HitscanComponent")); this->OnSpawnedEffectComponent = CreateDefaultSubobject(TEXT("OnSpawnedEffect")); this->MuzzleFlashLight = CreateDefaultSubobject(TEXT("MuzzleFlash")); this->MuzzleFlashParticleSys = CreateDefaultSubobject(TEXT("MuzzleFlashNiagara")); this->ImpactParticleComponent = CreateDefaultSubobject(TEXT("ImpactNiagara")); this->ShotOriginPivot = CreateDefaultSubobject(TEXT("ShotOriginPivot")); this->HitscanComponent = NULL; this->SoundEnd = NULL; this->ReloadAnimation = NULL; this->MaxRotations = 15; this->LinesPerRotation = 18; this->DeployDelay = 0.50f; this->LifeTime = 15.00f; this->TimeBetweenRotations = 0.06f; this->RearmTime = 1.10f; this->AvoidCloseOffset = 350.00f; this->ShotOriginOffset = 60.00f; this->MaxRearms = 1; this->PlayAnimationOnBeginPlay = true; this->PlayAnimationOnReload = false; this->DrawDebugLines = false; this->DebugLinesDuration = 0.40f; }