Bullet Magazine

The BulletMagazine is a classic ammo system used in most traditional firearms. It inherits from the base Magazine component and introduces functionality for reloading, both manually and automatically.

Add Component: Glowing Rifts > Modular Weapon > Bullet Magazine

This magazine tracks a finite number of bullets (the clip) and requires a reload when empty. It also exposes events for integrating reload animations, sounds, VFX and more.

✅ Ideal For

  • Pistols
  • Assault rifles
  • SMGs
  • Shotguns

⚙️ How It Works

  • The weapon checks if the clip holds enough bullets for the barrel’s Bullets Fired.
  • When a shot is fired, the clip value is decremented.
  • If the clip reaches zero:
    • The On Depleted event is triggered.
    • If Auto Reload is enabled, the reload process begins.
  • When a reload is triggered, the On Start Reload and On Reload Complete events fire in sequence.

📐 Inspector Overview

FieldDescription
ClipCurrent number of bullets available
Clip SizeMaximum capacity of the magazine
Events > On DepletedEvent triggered when the clip reaches zero
Events > On Start ReloadInvoked at the start of a reload sequence
Events > On Reload CompleteCalled when the reload finishes and the clip is refilled
Auto ReloadIf enabled, reloads automatically when the clip is empty. A full-auto weapon resumes firing after the reload if the trigger is still held
Reload TimeTime in seconds required to complete a reload

🎮 Integration Tips

  • Hook On Start Reload to reload animations or sound effects.
  • Use On Reload Complete to reset visuals or play reload confirmation sounds.
  • Combine with HUD elements to show remaining bullets in the clip.
  • try to sync the reload time with the animation’s length