Player Sessions Completed - working project at this point

This commit is contained in:
Norman Lansing
2026-04-07 06:36:11 -04:00
parent b7c4a07d00
commit 1370b05ff4
458 changed files with 287 additions and 36 deletions

View File

@@ -359,10 +359,7 @@ void UCombatComponent::Server_FireWeapon_Implementation(const FVector_NetQuantiz
bLethal = IPlayerInterface::Execute_DoDamage(Impact.GetActor(), Damage, GetOwner());
bHit = true;
}
else
{
bHit = false;
}
OnRoundReported.Broadcast(GetOwner(), Impact.GetActor(), bHit, bHeadShot, bLethal);
if (GetNetMode() != NM_ListenServer || !Cast<APawn>(GetOwner())->IsLocallyControlled())
@@ -549,7 +546,7 @@ void UCombatComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActo
if (APlayerController* PC = Cast<APlayerController>(OwningPawn->GetController()); IsValid(PC))
{
FVector2D ViewportSize;
FVector2D ViewportSize{};
if (GEngine && GEngine->GameViewport)
{
GEngine->GameViewport->GetViewportSize(ViewportSize);
@@ -615,7 +612,7 @@ FVector UCombatComponent::HitScanTrace(float SweepRadius, FHitResult& OutHit)
ResponseParams.CollisionResponse.SetResponse(ECC_WorldDynamic, ECR_Block);
ResponseParams.CollisionResponse.SetResponse(ECC_PhysicsBody, ECR_Block);
FVector2D ViewportSize;
FVector2D ViewportSize{};
if (GEngine && GEngine->GameViewport)
{
GEngine->GameViewport->GetViewportSize(ViewportSize);