Hi ,
A great way to do something like this is to create two points in your character component script that will act as the zoom locations for your sniper rifle. When you press the zoom button (whatever button you choose), you can approach zooming in multiple ways, the two I personally use are:
- simple set the camera to the new zoom location. This approach gives you a solid zoom that is immediate, similar to the original Halo zoom that simply locks into place.
- Use a vinterp to lerp between the new zoom points, giving the illusion of adjusting a scope to the new zoom.
For the vignette and crosshairs you have a few options as well. You can create the overlay in UMG and call it when you switch to the new zoom. If you don’t want to do this, you can create a post process volume with the vignette and draw the crosshairs to the HUD using the HUD blueprint.