MCPcopy Create free account
hub / github.com/DruidMech/MultiplayerCourseBlasterGame / ExplodeDamage

Method ExplodeDamage

Source/Blaster/Weapon/Projectile.cpp:73–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void 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
98void AProjectile::Tick(float DeltaTime)
99{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected