100% Blueprint based solution for guns of any type. This method allows high precision shot with very low performance cost. Multiplayer ready!
Smart Projectile is a great solution when it comes to shots. This is an actor component what you can add to your weapon blueprint or to your character blueprint. It's based on the player camera position so you have to get a reference to the player camera. With a simple collision sphere you can also enable to check your muzzle position for walls and also give you the ability to use it in third person perspective or for vehicles if you want. With update v1.1 you find a child actor class for tpp based characters which automatically calculate the hit location from the camera based on the gun muzzle position like common games that also do.
You can customize your shots with velocity and gravity and you can also decrease these values over distance the get a more realistic feeling in your game. You can also easily set up Zeroing for your guns or set the close combat distance which means at this distance you will use only a single hit scan function to save performance in your game.
About performance, Smart Projectile do not use any type of physics object that spawn in the world to detect the hit.
Multiplayer ready. In the project you can find a very basic multiplayer setup to test Smart Projectile with it.
Number of Blueprints: 4
Network Replicated: Yes
Supported Development Platforms: PC
Documentation: Tutorial in Project