DRG-Femboy-Voice/Source/FSD/Private/LineCutterProjectile.cpp
2025-04-15 12:39:31 -07:00

72 lines
2.5 KiB
C++
Executable file

#include "LineCutterProjectile.h"
#include "Particles/ParticleSystemComponent.h"
#include "Components/SceneComponent.h"
#include "DamageComponent.h"
#include "Net/UnrealNetwork.h"
void ALineCutterProjectile::UpdateBeamLocations() {
}
void ALineCutterProjectile::TerrainSweep(const FVector& Left, const FVector& Right) {
}
void ALineCutterProjectile::SpawnDecal(FHitResult& Result) {
}
void ALineCutterProjectile::Server_RemoveDebris_Implementation(int32 instance, int32 Component) {
}
void ALineCutterProjectile::OnRep_LineRotation() {
}
void ALineCutterProjectile::Fire(const FVector& Origin, const FVector& Direction, float Distance) {
}
void ALineCutterProjectile::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const {
Super::GetLifetimeReplicatedProps(OutLifetimeProps);
DOREPLIFETIME(ALineCutterProjectile, LineRotation);
DOREPLIFETIME(ALineCutterProjectile, RotationMode);
}
ALineCutterProjectile::ALineCutterProjectile() {
this->SwipeRadius = 5.00f;
this->DoubleLineDistanceMultiplier = 2.00f;
this->OverlapRadius = 5.00f;
this->DestroyOnTerrainCollision = true;
this->IsDead = false;
this->bHasReversedDirection = false;
this->FlyStraighTime = 0.20f;
this->EletricDecalSize = EImpactDecalSize::Small;
this->ImpactDecalSize = EImpactDecalSize::Small;
this->LineRoot = CreateDefaultSubobject<USceneComponent>(TEXT("LineRoot"));
this->LeftSphere = NULL;
this->RightSphere = NULL;
this->LeftSphere2 = NULL;
this->RightSphere2 = NULL;
this->LeftSphere3 = NULL;
this->RightSphere3 = NULL;
this->BeamParticle = NULL;
this->BeamParticle2 = NULL;
this->BeamParticle3 = NULL;
this->LeftHitParticles = CreateDefaultSubobject<UParticleSystemComponent>(TEXT("LeftImpact"));
this->RightHitParticles = CreateDefaultSubobject<UParticleSystemComponent>(TEXT("RightImpact"));
this->RotationSpeed = 400.00f;
this->RotationMode = ELineRotation::None;
this->ShouldExplode = false;
this->OnlyOne = false;
this->IsDoubleLine = false;
this->HasPlasmaTrail = false;
this->LineMaxSize = 150.00f;
this->LineExpansionDelay = 0.25f;
this->TimeToLineExpansion = 0.35f;
this->FireRate = 0.01f;
this->DamageComponent = CreateDefaultSubobject<UDamageComponent>(TEXT("DamageComponent"));
this->InitialDamageComponent = CreateDefaultSubobject<UDamageComponent>(TEXT("InitialDamageComponent"));
this->InitialHitDamageMultiplier = 5;
this->InhibitImpactDecalsTime = 0.00f;
this->MinTimeBetweenImpactDecals = 0.15f;
}