nuke lights code change (#19315)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -29,6 +29,7 @@ public sealed class NukeSystem : EntitySystem
|
|||||||
[Dependency] private readonly IRobustRandom _random = default!;
|
[Dependency] private readonly IRobustRandom _random = default!;
|
||||||
[Dependency] private readonly ITileDefinitionManager _tileDefManager = default!;
|
[Dependency] private readonly ITileDefinitionManager _tileDefManager = default!;
|
||||||
[Dependency] private readonly ItemSlotsSystem _itemSlots = default!;
|
[Dependency] private readonly ItemSlotsSystem _itemSlots = default!;
|
||||||
|
[Dependency] private readonly PointLightSystem _pointLight = default!;
|
||||||
[Dependency] private readonly PopupSystem _popups = default!;
|
[Dependency] private readonly PopupSystem _popups = default!;
|
||||||
[Dependency] private readonly ServerGlobalSoundSystem _sound = default!;
|
[Dependency] private readonly ServerGlobalSoundSystem _sound = default!;
|
||||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||||
@@ -455,6 +456,9 @@ public sealed class NukeSystem : EntitySystem
|
|||||||
|
|
||||||
_sound.PlayGlobalOnStation(uid, _audio.GetSound(component.ArmSound));
|
_sound.PlayGlobalOnStation(uid, _audio.GetSound(component.ArmSound));
|
||||||
|
|
||||||
|
// turn on the spinny light
|
||||||
|
_pointLight.SetEnabled(uid, true);
|
||||||
|
|
||||||
_itemSlots.SetLock(uid, component.DiskSlot, true);
|
_itemSlots.SetLock(uid, component.DiskSlot, true);
|
||||||
if (!nukeXform.Anchored)
|
if (!nukeXform.Anchored)
|
||||||
{
|
{
|
||||||
@@ -494,6 +498,9 @@ public sealed class NukeSystem : EntitySystem
|
|||||||
component.PlayedAlertSound = false;
|
component.PlayedAlertSound = false;
|
||||||
component.AlertAudioStream?.Stop();
|
component.AlertAudioStream?.Stop();
|
||||||
|
|
||||||
|
// turn off the spinny light
|
||||||
|
_pointLight.SetEnabled(uid, false);
|
||||||
|
|
||||||
// start bomb cooldown
|
// start bomb cooldown
|
||||||
_itemSlots.SetLock(uid, component.DiskSlot, false);
|
_itemSlots.SetLock(uid, component.DiskSlot, false);
|
||||||
component.Status = NukeStatus.COOLDOWN;
|
component.Status = NukeStatus.COOLDOWN;
|
||||||
|
|||||||
@@ -23,6 +23,14 @@
|
|||||||
- MachineMask
|
- MachineMask
|
||||||
layer:
|
layer:
|
||||||
- HalfWallLayer
|
- 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: NukeLabel
|
||||||
- type: Nuke
|
- type: Nuke
|
||||||
explosionType: Default
|
explosionType: Default
|
||||||
|
|||||||
BIN
Resources/Textures/Effects/LightMasks/double_cone.png
Normal file
BIN
Resources/Textures/Effects/LightMasks/double_cone.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
Reference in New Issue
Block a user