Fixed BaseWeapon Recoil Crash Bug
This commit is contained in:
parent
eaf5f6ca46
commit
9ae158b4e8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user