Updated Recoil Pitch to Stop Being Perfect for Guns
This commit is contained in:
parent
73fa607cfb
commit
e62345d690
@ -106,6 +106,7 @@ void ABaseWeaponClass::ApplyRecoil(float DeltaTime)
|
|||||||
playerInWorld->AddControllerPitchInput(GetRecoilPitch(amplitude, recoilTime));
|
playerInWorld->AddControllerPitchInput(GetRecoilPitch(amplitude, recoilTime));
|
||||||
currentPitch += GetRecoilPitch(amplitude,recoilTime);
|
currentPitch += GetRecoilPitch(amplitude,recoilTime);
|
||||||
}
|
}
|
||||||
|
playerInWorld->AddControllerPitchInput(FMath::RandRange(-5 * DeltaTime, 5* DeltaTime));
|
||||||
GunStartArrow->AddRelativeRotation(FRotator(-GetRecoilPitch(amplitude, recoilTime), 0, 0));
|
GunStartArrow->AddRelativeRotation(FRotator(-GetRecoilPitch(amplitude, recoilTime), 0, 0));
|
||||||
playerInWorld->AddControllerYawInput(GetRecoilYaw(amplitude, recoilTime));
|
playerInWorld->AddControllerYawInput(GetRecoilYaw(amplitude, recoilTime));
|
||||||
UpdateSamples(amplitude, recoilTime);
|
UpdateSamples(amplitude, recoilTime);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user