Skip to content

Commit

Permalink
Fix infinite lazur ammo glitch
Browse files Browse the repository at this point in the history
Turns out we haven't had the isFiring variable working properly for ages
  • Loading branch information
toberge committed Feb 3, 2025
1 parent 8acb19b commit 5c0552f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Assets/Animation/Augments/Lazur/Cannon_CannonAction.anim
Original file line number Diff line number Diff line change
Expand Up @@ -2107,7 +2107,7 @@ AnimationClip:
m_AdditiveReferencePoseClip: {fileID: 0}
m_AdditiveReferencePoseTime: 0
m_StartTime: 0
m_StopTime: 1.3333334
m_StopTime: 1.3166667
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
Expand Down Expand Up @@ -11057,7 +11057,7 @@ AnimationClip:
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 1.3333334
- time: 1.3
functionName: EndFiring
data:
objectReferenceParameter: {fileID: 0}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Augment/AugmentImplementations/Revolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected override void Reload(GunStats stats)

isReloadInProgress = true;
animator.SetTrigger("Reload");
gunController.onReload?.Invoke(stats);
// gunController.onReload?.Invoke(stats);
}

public void TriggerSteam()
Expand Down
2 changes: 2 additions & 0 deletions Assets/Scripts/Augment/GunController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ private void FixedUpdate()
}
if (ShouldFire())
{
isFiring = true;
FireGun();
}
}
Expand Down Expand Up @@ -209,6 +210,7 @@ private void RpcFire(Quaternion rotation)
}
catch (Exception e)
{
isFiring = false;
Debug.LogError("Failed to fire gun!");
Debug.LogError(e);
}
Expand Down

0 comments on commit 5c0552f

Please sign in to comment.