#include "ThrowableItem.h" #include "Net/UnrealNetwork.h" #include "Templates/SubclassOf.h" void AThrowableItem::Simulate_Throw_Implementation(TSubclassOf ActorClass) { } void AThrowableItem::Server_Throw_Implementation(TSubclassOf ActorClass, const FVector& Location) { } void AThrowableItem::OnThrownActorDestroyed(AActor* Actor) { } void AThrowableItem::GetLifetimeReplicatedProps(TArray& OutLifetimeProps) const { Super::GetLifetimeReplicatedProps(OutLifetimeProps); DOREPLIFETIME(AThrowableItem, CooldownLeft); } AThrowableItem::AThrowableItem() { this->ThrowableClass = NULL; this->FPThrowMontage = NULL; this->TPThrowMontage = NULL; this->ThrowVelocity = 0.00f; this->InheritOwnerVelocityScale = 0.00f; this->ThrowAngle = 0.00f; this->CooldownAfterThrow = 1.00f; this->CanThrowBeforeEquipAnimFinish = false; this->CooldownAfterEquip = 0.25f; this->ThrowDelay = 0.00f; this->CooldownLeft = 0.00f; this->LoadoutItem = NULL; }