97 lines
3.2 KiB
C++
Executable file
97 lines
3.2 KiB
C++
Executable file
#include "DoubleDrillItem.h"
|
|
#include "DamageComponent.h"
|
|
#include "DoubleDrillAggregator.h"
|
|
#include "FSDAudioComponent.h"
|
|
#include "FirstPersonParticleSystemComponent.h"
|
|
#include "Net/UnrealNetwork.h"
|
|
|
|
void ADoubleDrillItem::Server_StopMining_Implementation() {
|
|
}
|
|
|
|
void ADoubleDrillItem::Server_StartMining_Implementation() {
|
|
}
|
|
|
|
void ADoubleDrillItem::Server_DoDamage_Implementation(const TArray<FDoubleDrillDamageItem>& Targets) {
|
|
}
|
|
|
|
void ADoubleDrillItem::Server_DigBlock_Implementation(FVector_NetQuantize Start, FVector_NetQuantize End) {
|
|
}
|
|
|
|
void ADoubleDrillItem::OnTargetKilled(AActor* Target, UFSDPhysicalMaterial* PhysMat, bool wasDirectHit) {
|
|
}
|
|
|
|
|
|
|
|
void ADoubleDrillItem::OnRep_SimulatingMining() {
|
|
}
|
|
|
|
void ADoubleDrillItem::OnRep_IsGunslinging() {
|
|
}
|
|
|
|
void ADoubleDrillItem::OnDrillParticlesTimerElapsed() {
|
|
}
|
|
|
|
void ADoubleDrillItem::Client_Resupply_Implementation(float percentage) {
|
|
}
|
|
|
|
|
|
void ADoubleDrillItem::All_SimulateDigDebris_Implementation(FVector_NetQuantize Position, int32 DebrisIndex) {
|
|
}
|
|
|
|
void ADoubleDrillItem::All_SimulateDigBlock_Implementation(FVector_NetQuantize Position, bool SpawnParticles, int32 Material) {
|
|
}
|
|
|
|
void ADoubleDrillItem::All_SimulateDamage_Implementation(const TArray<FDoubleDrillDamageItem>& Targets) {
|
|
}
|
|
|
|
void ADoubleDrillItem::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const {
|
|
Super::GetLifetimeReplicatedProps(OutLifetimeProps);
|
|
|
|
DOREPLIFETIME(ADoubleDrillItem, IsMining);
|
|
DOREPLIFETIME(ADoubleDrillItem, IsGunslinging);
|
|
}
|
|
|
|
ADoubleDrillItem::ADoubleDrillItem() {
|
|
this->FP_Left_DrillParticles = CreateDefaultSubobject<UFirstPersonParticleSystemComponent>(TEXT("FP_Left_DrillParticles"));
|
|
this->FP_Right_DrillParticles = CreateDefaultSubobject<UFirstPersonParticleSystemComponent>(TEXT("FP_Right_DrillParticles"));
|
|
this->DamageComponent = CreateDefaultSubobject<UDamageComponent>(TEXT("Damage"));
|
|
this->AudioComponent = CreateDefaultSubobject<UFSDAudioComponent>(TEXT("audio"));
|
|
this->Aggregator = CreateDefaultSubobject<UDoubleDrillAggregator>(TEXT("Aggregator"));
|
|
this->FPMineMontage = NULL;
|
|
this->TPMineMontage = NULL;
|
|
this->FPOverheat = NULL;
|
|
this->TPOverheat = NULL;
|
|
this->FPGunsling = NULL;
|
|
this->TPGunsling = NULL;
|
|
this->DrillParticles = NULL;
|
|
this->DrillRumble = NULL;
|
|
this->BlockParticlesScaleFP = 1.00f;
|
|
this->BlockParticlesScaleTP = 1.00f;
|
|
this->State = EDoubleDrillState::Equipping;
|
|
this->MovementPenalty = 0.70f;
|
|
this->MiningRate = 0.00f;
|
|
this->HeatReductionPerKill = 0.00f;
|
|
this->CarveNoise = 0.10f;
|
|
this->CarverRayCastLength = 200.00f;
|
|
this->CarveTerrainDistanceCheck = 2.00f;
|
|
this->TimeToNextMine = 0.00f;
|
|
this->CurrentDrillSpeed = 0.00f;
|
|
this->DamageDistance = 150.00f;
|
|
this->DamageRadius = 50.00f;
|
|
this->FriendlyDamageRadius = 20.00f;
|
|
this->DamageRate = 3.00f;
|
|
this->Damage = 5.00f;
|
|
this->armorDamageMultiplier = 1.00f;
|
|
this->DamageClass = NULL;
|
|
this->FriendlyFireModifier = 0.10f;
|
|
this->MaxFuel = 0.00f;
|
|
this->Fuel = 0.00f;
|
|
this->FuelUsePerDig = 0.25f;
|
|
this->FuelUsePerMelee = 0.15f;
|
|
this->SupplyStatusWeight = 1.00f;
|
|
this->ShoutOutOfFuel = NULL;
|
|
this->DrillParticlesDuration = 0.25f;
|
|
this->IsMining = false;
|
|
this->IsGunslinging = false;
|
|
}
|
|
|