ReAdded back old values. Finished Shotgun Class

This commit is contained in:
Marcel Hara 2023-11-06 17:27:05 +00:00
parent 783e7bd136
commit 4e4267cb38

View File

@ -28,7 +28,7 @@ void AShotgunClass::Fire()
FVector newStartTrace = UKismetMathLibrary::RandomPointInBoundingBox(traceStart, ShotgunBulletSpread);
traceEnd = newStartTrace + (GunStartArrow->GetForwardVector() * BulletDistance);
GetWorld()->LineTraceSingleByChannel(outHit, newStartTrace, traceEnd, ECC_Visibility, collisionParams);
DrawDebugLine(this->GetWorld(), newStartTrace, traceEnd, FColor::Red , false, 100.f, 0U, 1.f);
DrawDebugLine(this->GetWorld(), newStartTrace, traceEnd, FColor::Black , false, 0.2f, 0U, 0.2f);
currentAmmoCount --;
}
playerControllerRef->PlayerCameraManager->StartCameraShake(CameraShakeClass, 1);