36 lines
1 KiB
C++
Executable file
36 lines
1 KiB
C++
Executable file
#include "ThrowableItem.h"
|
|
#include "Net/UnrealNetwork.h"
|
|
#include "Templates/SubclassOf.h"
|
|
|
|
void AThrowableItem::Simulate_Throw_Implementation(TSubclassOf<AThrowableActor> ActorClass) {
|
|
}
|
|
|
|
void AThrowableItem::Server_Throw_Implementation(TSubclassOf<AThrowableActor> ActorClass, const FVector& Location) {
|
|
}
|
|
|
|
|
|
|
|
void AThrowableItem::OnThrownActorDestroyed(AActor* Actor) {
|
|
}
|
|
|
|
void AThrowableItem::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& 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;
|
|
}
|
|
|