Added Kill-Z Volume

This commit is contained in:
Kingsmedia 2022-05-29 18:54:58 +02:00
parent 2a5c6cb50a
commit 3da023c406
2 changed files with 5 additions and 0 deletions

Binary file not shown.

View File

@ -542,6 +542,11 @@ void ABlasterCharacter::ReceiveDamage(AActor* DamagedActor, float Damage, const
if (Health == 0.f)
{
if (DamageType->bCausedByWorld)
{
Eliminated(false);
return;
}
ABlasterGameMode* BlasterGameMode = GetWorld()->GetAuthGameMode<ABlasterGameMode>();
if (BlasterGameMode)
{