Fixed BaseWeapon Recoil Crash Bug

This commit is contained in:
MH261677 2024-02-01 17:24:33 +00:00
parent eaf5f6ca46
commit 9ae158b4e8

View File

@ -101,6 +101,7 @@ void ABaseWeaponClass::GenerateRecoilVector()
void ABaseWeaponClass::ApplyRecoil(float DeltaTime) void ABaseWeaponClass::ApplyRecoil(float DeltaTime)
{ {
if (!endlessVendettaChar->bHasRifle) return;
if (recoilTime < 0.3) if (recoilTime < 0.3)
{ {
float amplitude = RecoilCurve->GetFloatValue(recoilTime); //get current value of curve in time float amplitude = RecoilCurve->GetFloatValue(recoilTime); //get current value of curve in time