* Add access to gun components Found from an rmc14 PR. * Admin verbs proving why access needs to exist * Someone is probably going to post this pr to le reddit and complain about self-merges.
23 lines
815 B
C#
23 lines
815 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
|
|
{
|
|
[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;
|
|
}
|