using Content.Shared.Interaction.Events;
using Content.Shared.Popups;
using Content.Shared.Throwing;
+using Content.Shared.Weapons.Ranged.Components;
using Content.Shared.Weapons.Ranged.Events;
using Robust.Shared.Timing;
if (HasComp<PacifismAllowedGunComponent>(args.Used))
return;
+ if (TryComp<BatteryWeaponFireModesComponent>(args.Used, out var component))
+ if (component.FireModes[component.CurrentFireMode].PacifismAllowedMode)
+ return;
+
// Disallow firing guns in all cases.
ShowPopup(ent, args.Used, "pacified-cannot-fire-gun");
args.Cancel();
fireCost: 80
- proto: BulletDisablerSmgSpread
fireCost: 48
+ pacifismAllowedMode: true
- type: Item
size: Large
sprite: Objects/Weapons/Guns/Battery/inhands_64x.rsi
fireCost: 150
- proto: BulletDisabler
fireCost: 62.5
+ pacifismAllowedMode: true
- type: BatterySelfRecharger
autoRecharge: true
autoRechargeRate: 48