35 lines
617 B
C
35 lines
617 B
C
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "CoreMinimal.h"
|
||
|
#include "Pickup.h"
|
||
|
#include "JumpPickup.generated.h"
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
UCLASS()
|
||
|
class BLASTER_API AJumpPickup : public APickup
|
||
|
{
|
||
|
GENERATED_BODY()
|
||
|
|
||
|
protected:
|
||
|
virtual void OnSphereOverlap(
|
||
|
UPrimitiveComponent* OverlappedComponent,
|
||
|
AActor* OtherActor,
|
||
|
UPrimitiveComponent* OtherComp,
|
||
|
int32 OtherBodyIndex,
|
||
|
bool bFromSweep,
|
||
|
const FHitResult& SweepResult
|
||
|
) override;
|
||
|
|
||
|
private:
|
||
|
|
||
|
UPROPERTY(EditAnywhere)
|
||
|
float JumpZVelocity = 2500.f;
|
||
|
|
||
|
UPROPERTY(EditAnywhere)
|
||
|
float JumpBuffTime = 10.f;
|
||
|
};
|