Files
wwdpublic/Content.Server/_White/PVS/PVSIgnoreSystem.cs
Gersoon 3fa3c5af9f Almagest update 2 (#1104)
* AutoEquip+redEdit

* guns+projectile+equip for red

* rsi fix

* +blue

* review suggestion

* startingGear + deleteSpawnOnGamerule

* DeleteSpawnOnGamerule + map

* +magboots for marine

* 1

* 2

* 3

* +grenades

* final + fix

* fix

* fix2

* fix3

* Update Content.Server/_White/PVS/PVSIgnoreSystem.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Server/Mining/MeteorSystem.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Server/Mining/MeteorSystem.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Server/Mining/MeteorSystem.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Server/_White/PVS/PVSIgnoreSystem.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Server/Projectiles/ProjectileSystem.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Shared/_White/PVS/PVSIgnoreComponent.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Server/Projectiles/ProjectileSystem.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Server/Projectiles/ProjectileSystem.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update Content.Server/Projectiles/ProjectileSystem.cs

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: RedFoxIV <38788538+RedFoxIV@users.noreply.github.com>

* Fix govna ya ebal

* fixWalls

* Apply suggestions from code review

Co-authored-by: RedFoxIV <38788538+RedFoxIV@users.noreply.github.com>
Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* fix hz

* fix hz2

---------

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>
Co-authored-by: RedFoxIV <38788538+RedFoxIV@users.noreply.github.com>
2026-04-04 19:12:16 +03:00

21 lines
707 B
C#

using Robust.Server.GameStates;
namespace Content.Server._White.PVS;
public sealed class PVSIgnoreSystem : EntitySystem
{
[Dependency] private readonly PvsOverrideSystem _pvsOverride = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<PVSIgnoreComponent, ComponentStartup>(OnStartup);
SubscribeLocalEvent<PVSIgnoreComponent, ComponentShutdown>(OnShutdown);
}
private void OnStartup(EntityUid uid, PVSIgnoreComponent comp, ComponentStartup args) => _pvsOverride.AddGlobalOverride(uid);
private void OnShutdown(EntityUid uid, PVSIgnoreComponent comp, ComponentShutdown args) => _pvsOverride.RemoveGlobalOverride(uid);
}