#include "BasicThrowableItem.h" #include "Components/BoxComponent.h" #include "Components/SphereComponent.h" #include "Components/StaticMeshComponent.h" #include "CarriableComponent.h" #include "FirstPersonStaticMeshComponent.h" #include "InstantUsable.h" void ABasicThrowableItem::ThrowItem(const FVector& throwForce) { } void ABasicThrowableItem::ResetImpactSound() { } void ABasicThrowableItem::OnUsed(APlayerCharacter* User, EInputKeys Key) { } void ABasicThrowableItem::OnUsableChanged(bool CanUse) { } void ABasicThrowableItem::OnPickedUp() { } void ABasicThrowableItem::OnDropped() { } void ABasicThrowableItem::OnComponentHit(UPrimitiveComponent* HitComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit) { } ABasicThrowableItem::ABasicThrowableItem() { this->BoxComp = CreateDefaultSubobject(TEXT("BoxCollision")); this->UseSphere = CreateDefaultSubobject(TEXT("UseSphere")); this->CarriableComp = CreateDefaultSubobject(TEXT("Carriable")); this->UsableComp = CreateDefaultSubobject(TEXT("Usable")); this->WorldMeshComp = CreateDefaultSubobject(TEXT("ThirdpersonMesh")); this->ViewMeshComp = CreateDefaultSubobject(TEXT("FirstPersonMesh")); this->ImpactSound = NULL; this->SquaredMinImpactForce = 100.00f; this->ImpactAudioResetTime = 0.20f; this->SquaredMinThrowforce = 10.00f; }