9#include "CoreMinimal.h"
10#include "Components/ActorComponent.h"
12#include "UHitStopSystem.generated.h"
20UCLASS(Blueprintable, BlueprintType, ClassGroup=(Dopple), meta=(BlueprintSpawnableComponent) )
21class ONEPIECE_API UHitStopSystem :
public UActorComponent
31 virtual
void BeginPlay() override;
38 virtual
void TickComponent(
float DeltaTime, ELevelTick TickType,
39 FActorComponentTickFunction* ThisTickFunction) override;
45 UFUNCTION(BlueprintCallable, Category="HitStop")
46 void InitSystem(ACharacter* InOwner);
53 UFUNCTION(BlueprintCallable, Category="HitStop")
54 void OnHitStop(AActor* Target, const
EDamageType Type);
60 UFUNCTION(BlueprintCallable, Category="HitStop")
75 TObjectPtr<class ACharacter> Owner;
78 TObjectPtr<class USkeletalMeshComponent> MeshComp;
81 TObjectPtr<class UCharacterMovementComponent> MoveComp;
89 double EndRealTimeSeconds = 0.0;
92 float SavedCustomTimeDilation = 1.0f;