Grenade Rifle
The Grenade Rifle is a DualWeapon: the primary trigger fires a raycast rifle, the secondary fires explosive grenades.
Find it in Glowing Rifts/Modular Weapon System/Weapons/GrenadeRifle.prefab. Try it in the Blueprint Demo.
🧱 How It’s Built
| Part | Component |
|---|---|
| Root | DualWeapon with built-in input |
| Primary barrel | RaycastBarrel |
| Secondary barrel | ProjectileBarrel + FiringMode, firing ExplosiveBullet (ExplosiveAmmo) |
| Magazine | BulletMagazine (primary). Set a Secondary Magazine to limit grenades |
| Feedback | Recoil, muzzle flashes, sounds |
Tip
ExplosiveAmmo hurts every hitbox in its radius when it lands.