using Content.Shared.Xenoarchaeology.Artifact.XAE.Components; using Robust.Shared.Physics; using Robust.Shared.Physics.Systems; namespace Content.Shared.Xenoarchaeology.Artifact.XAE; /// /// System for xeno artifact effect that make artifact pass through other objects. /// public sealed class XAERemoveCollisionSystem : BaseXAESystem { [Dependency] private readonly SharedPhysicsSystem _physics = default!; /// protected override void OnActivated(Entity ent, ref XenoArtifactNodeActivatedEvent args) { if (!TryComp(args.Artifact, out var fixtures)) return; foreach (var fixture in fixtures.Fixtures.Values) { _physics.SetHard(args.Artifact, fixture, false, fixtures); } } }