| 91 | } |
| 92 | |
| 93 | void AWeapon::OnSphereEndOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex) |
| 94 | { |
| 95 | ABlasterCharacter* BlasterCharacter = Cast<ABlasterCharacter>(OtherActor); |
| 96 | if (BlasterCharacter) |
| 97 | { |
| 98 | if (WeaponType == EWeaponType::EWT_Flag && BlasterCharacter->GetTeam() == Team) return; |
| 99 | if (BlasterCharacter->IsHoldingTheFlag()) return; |
| 100 | BlasterCharacter->SetOverlappingWeapon(nullptr); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | void AWeapon::SetHUDAmmo() |
| 105 | { |
nothing calls this directly
no test coverage detected