Sonic rifle was created as a heavy rifle that fires a sonic wave. Before firing, the rifle builds up a charge, which enhances projectile, explosion on impact, and blast wave. While flying, the projectile also gets stronger and affects the surrounding physical elements. Upon impact with a target, an explosion occurs that scatters physical objects, emitting a blast wave.
Overview video can be found here
Tech info, poly count and creation process can be found here
Settings info here
The asset includes a rifle model, scope, clip, animations, sounds, materials & particle effects
Included are sample reload animations and a simulated aiming (IK) for First Person Character skeleton
All rifle logic is written in its AnimBP (Including barrel animation dynamics, sound dynamics, projectile charging, visual effects and shot event)
Each node and each action of the code is commented so that you can use it as an example when integrating logic into your project.
Code is made in the reference style, in testing levels the rifle is included as a PickUp actor
Added a showcase level where you can find an additional, simplified version of the rifle dynamics (without animBP) and various separate parts of the asset
The projectile and how it affects physics can be found in the SonicRifleProjectile Blueprint. Each node is also commented, projectile and explosion setting can be found inside (in variables tab)
The rifle and its parts have a collision and a tuned Physics asset
Lightmaps are set.
Added scope front lens FX (noise distortion). Back lens improved with Render Target
The first person character blueprint includes events such as aiming, shooting, and reloading.
Sonic rifle also can be used for 3rd person character gameplay
Update 1.1: Minor fix of normals and tangents
Features:
Number of Unique Meshes: 4
Collision: Convex hull
Vertex Count: 20k for rifle, 2,5k for scope, 300 for clip
LODs: Yes, auto-generated, rifle poly reduction down to 5k
Number of Materials and Material Instances: 2 for Rifle + 9 for parts and effects
Number of Textures: 12 for rifle + parts, 3 for effects
Texture Resolutions: Original 4k - rifle and scope., 2k - clip
Supported Development Platforms:
Windows: yes
Mac: yes
Documentation: here
Please pay attention!
The visual and sound effects in this asset are designed in such a way that they can cause involuntary fright at initial use. Be careful!