diff --git a/Content.Server/Nuke/NukeSystem.cs b/Content.Server/Nuke/NukeSystem.cs index fc1b367d5a..6adbd7ffc8 100644 --- a/Content.Server/Nuke/NukeSystem.cs +++ b/Content.Server/Nuke/NukeSystem.cs @@ -29,6 +29,7 @@ public sealed class NukeSystem : EntitySystem [Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly ITileDefinitionManager _tileDefManager = default!; [Dependency] private readonly ItemSlotsSystem _itemSlots = default!; + [Dependency] private readonly PointLightSystem _pointLight = default!; [Dependency] private readonly PopupSystem _popups = default!; [Dependency] private readonly ServerGlobalSoundSystem _sound = default!; [Dependency] private readonly SharedAudioSystem _audio = default!; @@ -455,6 +456,9 @@ public sealed class NukeSystem : EntitySystem _sound.PlayGlobalOnStation(uid, _audio.GetSound(component.ArmSound)); + // turn on the spinny light + _pointLight.SetEnabled(uid, true); + _itemSlots.SetLock(uid, component.DiskSlot, true); if (!nukeXform.Anchored) { @@ -494,6 +498,9 @@ public sealed class NukeSystem : EntitySystem component.PlayedAlertSound = false; component.AlertAudioStream?.Stop(); + // turn off the spinny light + _pointLight.SetEnabled(uid, false); + // start bomb cooldown _itemSlots.SetLock(uid, component.DiskSlot, false); component.Status = NukeStatus.COOLDOWN; diff --git a/Resources/Prototypes/Entities/Objects/Devices/nuke.yml b/Resources/Prototypes/Entities/Objects/Devices/nuke.yml index f5a23c01e7..abb6ae1b9b 100644 --- a/Resources/Prototypes/Entities/Objects/Devices/nuke.yml +++ b/Resources/Prototypes/Entities/Objects/Devices/nuke.yml @@ -23,6 +23,14 @@ - MachineMask layer: - HalfWallLayer + - type: PointLight + enabled: false + radius: 4 + energy: 2.0 + color: "#FF4020" + mask: /Textures/Effects/LightMasks/double_cone.png + - type: RotatingLight + speed: 120 - type: NukeLabel - type: Nuke explosionType: Default diff --git a/Resources/Textures/Effects/LightMasks/double_cone.png b/Resources/Textures/Effects/LightMasks/double_cone.png new file mode 100644 index 0000000000..469e222f44 Binary files /dev/null and b/Resources/Textures/Effects/LightMasks/double_cone.png differ