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

51 lines
1.6 KiB
C++
Executable file

#include "DetPack.h"
#include "GameFramework/ProjectileMovementComponent.h"
#include "ExplosionComponent.h"
#include "Net/UnrealNetwork.h"
#include "SimpleHealthComponent.h"
#include "SingleUsableComponent.h"
void ADetPack::UseFearStaggerUpgrades() {
}
void ADetPack::OnRep_IsMoving() {
}
void ADetPack::OnRep_HasExploded() {
}
void ADetPack::OnDetPackPickedUp(APlayerCharacter* User, EInputKeys Key) {
}
void ADetPack::OnDetPackDeath(UHealthComponentBase* HealthComponent) {
}
void ADetPack::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const {
Super::GetLifetimeReplicatedProps(OutLifetimeProps);
DOREPLIFETIME(ADetPack, VisualDamageRadius);
DOREPLIFETIME(ADetPack, HasExploded);
DOREPLIFETIME(ADetPack, IsMoving);
}
ADetPack::ADetPack() {
this->UpgradedStaggerChance = 0.00f;
this->UpgradedStaggerDuration = 0.00f;
this->UpgradedFearFactor = 0.00f;
this->VisualDamageRadius = 0.00f;
this->IncreasedFearRadius = 0.00f;
this->IncreasedStaggerRadius = 0.00f;
this->Movement = CreateDefaultSubobject<UProjectileMovementComponent>(TEXT("ProjectileMovement"));
this->Explosion = CreateDefaultSubobject<UExplosionComponent>(TEXT("Explosion"));
this->UseComp = CreateDefaultSubobject<USingleUsableComponent>(TEXT("UseComp"));
this->SimpleHealth = CreateDefaultSubobject<USimpleHealthComponent>(TEXT("SimpleHealth"));
this->Detonator = NULL;
this->HasExploded = false;
this->IsMoving = true;
this->ExplodesOnDeath = false;
this->HasExtraStaggerRadius = false;
this->HasExtraFearRadius = false;
}