Created Death Sequence and UI
This commit is contained in:
parent
031a74352f
commit
3bb50d2ea5
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/BP_MainCharacter.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/BP_MainCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/FirstPerson/DeathScreen/DeathScreenBG.png
(Stored with Git LFS)
Normal file
BIN
EndlessVendetta/Content/FirstPerson/DeathScreen/DeathScreenBG.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
EndlessVendetta/Content/FirstPerson/DeathScreen/DeathScreenBG.uasset
(Stored with Git LFS)
Normal file
BIN
EndlessVendetta/Content/FirstPerson/DeathScreen/DeathScreenBG.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
EndlessVendetta/Content/FirstPerson/DeathScreen/DeathScreenText.png
(Stored with Git LFS)
Normal file
BIN
EndlessVendetta/Content/FirstPerson/DeathScreen/DeathScreenText.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
EndlessVendetta/Content/FirstPerson/DeathScreen/DeathScreenText.uasset
(Stored with Git LFS)
Normal file
BIN
EndlessVendetta/Content/FirstPerson/DeathScreen/DeathScreenText.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d51dad89e04472b811ae1150be3e20dc5bd0f8271a0bf74a6f1f844295e8b16f
|
||||||
|
size 66821
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:d8174773472453e8d92eaa8d5984fadd4542bd8e181402aa55ac8d95fbefd032
|
oid sha256:0cae384479ed9a01ca6f37421b573971efa8e75ec721a9ce461c34d202b15a9d
|
||||||
size 868721
|
size 868721
|
||||||
|
BIN
EndlessVendetta/Content/StarterContent/Architecture/Floor_400x400.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/StarterContent/Architecture/Floor_400x400.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
EndlessVendetta/Content/StarterContent/Blueprints/Blueprint_CeilingLight.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/StarterContent/Blueprints/Blueprint_CeilingLight.uasset
(Stored with Git LFS)
Binary file not shown.
@ -311,19 +311,20 @@ float AEndlessVendettaCharacter::TakeDamage(const float DamageAmount, FDamageEve
|
|||||||
{
|
{
|
||||||
GetWorld()->GetTimerManager().ClearTimer(RegenHealthTimerHandle);
|
GetWorld()->GetTimerManager().ClearTimer(RegenHealthTimerHandle);
|
||||||
}
|
}
|
||||||
UE_LOG(LogTemp, Warning, TEXT("Player is dead"));
|
// UE_LOG(LogTemp, Warning, TEXT("Player is dead"));
|
||||||
|
//
|
||||||
TArray<AActor*> FoundActors;
|
// TArray<AActor*> FoundActors;
|
||||||
UGameplayStatics::GetAllActorsWithTag(GetWorld(), FName(TEXT("Respawn")), FoundActors);
|
// UGameplayStatics::GetAllActorsWithTag(GetWorld(), FName(TEXT("Respawn")), FoundActors);
|
||||||
if (FoundActors.Num() > 0)
|
// if (FoundActors.Num() > 0)
|
||||||
{
|
// {
|
||||||
const AActor* RespawnPoint = FoundActors[0];
|
// const AActor* RespawnPoint = FoundActors[0];
|
||||||
SetActorLocationAndRotation(RespawnPoint->GetActorLocation(), RespawnPoint->GetActorRotation());
|
// SetActorLocationAndRotation(RespawnPoint->GetActorLocation(), RespawnPoint->GetActorRotation());
|
||||||
CurrentHealth = MaxHealth;
|
// CurrentHealth = MaxHealth;
|
||||||
return Super::TakeDamage(DamageAmount, DamageEvent, EventInstigator, DamageCauser);
|
// return Super::TakeDamage(DamageAmount, DamageEvent, EventInstigator, DamageCauser);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
UGameplayStatics::OpenLevel(this, FName(*GetWorld()->GetName()), false);
|
// UGameplayStatics::OpenLevel(this, FName(*GetWorld()->GetName()), false);
|
||||||
|
RunDeathSequence();
|
||||||
return Super::TakeDamage(DamageAmount, DamageEvent, EventInstigator, DamageCauser);
|
return Super::TakeDamage(DamageAmount, DamageEvent, EventInstigator, DamageCauser);
|
||||||
}
|
}
|
||||||
TookDamage.Broadcast();
|
TookDamage.Broadcast();
|
||||||
|
@ -292,6 +292,9 @@ protected:
|
|||||||
UFUNCTION(BlueprintImplementableEvent)
|
UFUNCTION(BlueprintImplementableEvent)
|
||||||
void StoppedHoldingInteract();
|
void StoppedHoldingInteract();
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintImplementableEvent)
|
||||||
|
void RunDeathSequence();
|
||||||
|
|
||||||
// APawn interface
|
// APawn interface
|
||||||
virtual void SetupPlayerInputComponent(UInputComponent* InputComponent) override;
|
virtual void SetupPlayerInputComponent(UInputComponent* InputComponent) override;
|
||||||
// End of APawn interface
|
// End of APawn interface
|
||||||
|
Loading…
x
Reference in New Issue
Block a user