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

33 lines
1.3 KiB
C++
Executable file

#include "FriendlyParasite.h"
#include "Components/SphereComponent.h"
#include "DamageComponent.h"
#include "Net/UnrealNetwork.h"
void AFriendlyParasite::SelectNewTarget(UHealthComponentBase* Health) {
}
void AFriendlyParasite::OnEnemyCollisionEnter(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult) {
}
void AFriendlyParasite::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const {
Super::GetLifetimeReplicatedProps(OutLifetimeProps);
DOREPLIFETIME(AFriendlyParasite, TargetEnemy);
}
AFriendlyParasite::AFriendlyParasite() {
this->Collision = CreateDefaultSubobject<USphereComponent>(TEXT("Collision"));
this->FindEnemyCollision = CreateDefaultSubobject<USphereComponent>(TEXT("FindEnemyCollision"));
this->DamageComponent = CreateDefaultSubobject<UDamageComponent>(TEXT("DamageComponent"));
this->MoveSpeed = 350.00f;
this->DamageBeforeDeath = 1000.00f;
this->CountDirectDMG = true;
this->CountAreaDMG = false;
this->StartFollowRange = 1500.00f;
this->DamageRange = 350.00f;
this->DamageTime = 0.25f;
this->FoldoutRange = 0.00f;
this->SpinRange = 0.00f;
this->TargetEnemy = NULL;
}