mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-14 19:29:53 +01:00
* Entity<T>, skipping Magazine and ChamberMagazine * missed some * AUGH!! * ballistic examine * dotnet hates me * WHY ARE YOU CALLED THAT!!!! * cheers aada
23 lines
714 B
C#
23 lines
714 B
C#
using Content.Shared.Weapons.Ranged.Components;
|
|
using Content.Shared.Weapons.Ranged.Systems;
|
|
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Shared.Weapons.Ranged;
|
|
|
|
/// <summary>
|
|
/// Wrapper around a magazine (handled via ItemSlot). Passes all AmmoProvider logic onto it.
|
|
/// </summary>
|
|
[RegisterComponent, Virtual]
|
|
[Access(typeof(SharedGunSystem))]
|
|
public partial class MagazineAmmoProviderComponent : AmmoProviderComponent
|
|
{
|
|
[DataField]
|
|
public SoundSpecifier? SoundAutoEject = new SoundPathSpecifier("/Audio/Weapons/Guns/EmptyAlarm/smg_empty_alarm.ogg");
|
|
|
|
/// <summary>
|
|
/// Should the magazine automatically eject when empty.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool AutoEject = false;
|
|
}
|