Add blacklist support for steptriggers (#14354)

This commit is contained in:
metalgearsloth
2023-03-07 06:11:27 +11:00
committed by GitHub
parent f4ccfc5e35
commit 320217cd69
5 changed files with 41 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.StepTrigger.Systems;
using Content.Shared.Whitelist;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
@@ -39,6 +40,12 @@ public sealed class StepTriggerComponent : Component
/// </summary>
[DataField("requiredTriggeredSpeed")]
public float RequiredTriggerSpeed = 3.5f;
/// <summary>
/// If any entities occupy the blacklist on the same tile then steptrigger won't work.
/// </summary>
[DataField("blacklist")]
public EntityWhitelist? Blacklist;
}
[RegisterComponent]