| 71 | } |
| 72 | |
| 73 | void AProjectile::ExplodeDamage() |
| 74 | { |
| 75 | APawn* FiringPawn = GetInstigator(); |
| 76 | if (FiringPawn && HasAuthority()) |
| 77 | { |
| 78 | AController* FiringController = FiringPawn->GetController(); |
| 79 | if (FiringController) |
| 80 | { |
| 81 | UGameplayStatics::ApplyRadialDamageWithFalloff( |
| 82 | this, // World context object |
| 83 | Damage, // BaseDamage |
| 84 | 10.f, // MinimumDamage |
| 85 | GetActorLocation(), // Origin |
| 86 | DamageInnerRadius, // DamageInnerRadius |
| 87 | DamageOuterRadius, // DamageOuterRadius |
| 88 | 1.f, // DamageFalloff |
| 89 | UDamageType::StaticClass(), // DamageTypeClass |
| 90 | TArray<AActor*>(), // IgnoreActors |
| 91 | this, // DamageCauser |
| 92 | FiringController // InstigatorController |
| 93 | ); |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | void AProjectile::Tick(float DeltaTime) |
| 99 | { |
nothing calls this directly
no outgoing calls
no test coverage detected