Merge branch 'WeaponSystem' into BackupBuild

This commit is contained in:
Rafal Swierczek 2023-10-16 11:41:42 +01:00
commit f641053ce9

View File

@ -106,6 +106,7 @@ void ABaseWeaponClass::ApplyRecoil(float DeltaTime)
playerInWorld->AddControllerPitchInput(GetRecoilPitch(amplitude, recoilTime));
currentPitch += GetRecoilPitch(amplitude,recoilTime);
}
playerInWorld->AddControllerPitchInput(FMath::RandRange(-5 * DeltaTime, 5* DeltaTime));
GunStartArrow->AddRelativeRotation(FRotator(-GetRecoilPitch(amplitude, recoilTime), 0, 0));
playerInWorld->AddControllerYawInput(GetRecoilYaw(amplitude, recoilTime));
UpdateSamples(amplitude, recoilTime);