2022-06-01 19:59:58 +10:00
|
|
|
using Content.Shared.Weapons.Ranged.Components;
|
2022-07-29 14:13:12 +12:00
|
|
|
using Robust.Shared.Audio;
|
2022-06-01 19:59:58 +10:00
|
|
|
|
|
|
|
|
namespace Content.Shared.Weapons.Ranged;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Wrapper around a magazine (handled via ItemSlot). Passes all AmmoProvider logic onto it.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, Virtual]
|
2023-08-22 18:14:33 -07:00
|
|
|
public partial class MagazineAmmoProviderComponent : AmmoProviderComponent
|
2022-06-01 19:59:58 +10:00
|
|
|
{
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("soundAutoEject")]
|
|
|
|
|
public SoundSpecifier? SoundAutoEject = new SoundPathSpecifier("/Audio/Weapons/Guns/EmptyAlarm/smg_empty_alarm.ogg");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Should the magazine automatically eject when empty.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("autoEject")]
|
|
|
|
|
public bool AutoEject = false;
|
|
|
|
|
}
|