Player Sessions Completed - working project at this point
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user