Get rid of the OverlayEffectsComponent stuff (#3010)
* Get rid of the OverlayEffectsComponent stuff because it just ended up creating workarounds for it's bugs, without removing any functionality * Flashes and Flashbangs use the same code now (the Flashable path because it's better)
This commit is contained in:
@@ -51,25 +51,11 @@ namespace Content.Server.StationEvents
|
||||
public override void Startup()
|
||||
{
|
||||
ResetTimeUntilPulse();
|
||||
|
||||
var componentManager = IoCManager.Resolve<IComponentManager>();
|
||||
|
||||
foreach (var overlay in componentManager.EntityQuery<ServerOverlayEffectsComponent>())
|
||||
{
|
||||
overlay.AddOverlay(SharedOverlayID.RadiationPulseOverlay);
|
||||
}
|
||||
|
||||
base.Startup();
|
||||
}
|
||||
|
||||
public override void Shutdown()
|
||||
{
|
||||
var componentManager = IoCManager.Resolve<IComponentManager>();
|
||||
|
||||
foreach (var overlay in componentManager.EntityQuery<ServerOverlayEffectsComponent>())
|
||||
{
|
||||
overlay.RemoveOverlay(SharedOverlayID.RadiationPulseOverlay);
|
||||
}
|
||||
base.Shutdown();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user