ReAdded back old values. Finished Shotgun Class
This commit is contained in:
		
							parent
							
								
									783e7bd136
								
							
						
					
					
						commit
						4e4267cb38
					
				| @ -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); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user