Skip to content

Commit

Permalink
Fix telescope zooming with boom-bardier, resolves #898
Browse files Browse the repository at this point in the history
  • Loading branch information
Fueredoriku committed Dec 23, 2024
1 parent 33790ac commit bf0a9e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/Scripts/Augment/AugmentImplementations/Telescope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ void Start()
if (!gunController.Player || !gunController.Player.HUDController)
return;

// No zooming allowed on the BOOM-bardier!
if (gunController.GetComponentInChildren<DynamiteBarrel>())
return;

var playerMovement = gunController.Player.GetComponent<PlayerMovement>();
originalZoomFov = playerMovement.ZoomFov;
originalZoomSpeed = playerMovement.LookSpeedZoom;
Expand Down

0 comments on commit bf0a9e6

Please sign in to comment.