Mass hallucinations event (#17321)
* paracusia component auto comp state * it works * rule component config
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using Content.Server.StationEvents.Events;
|
||||
using Robust.Shared.Audio;
|
||||
|
||||
namespace Content.Server.StationEvents.Components;
|
||||
|
||||
[RegisterComponent, Access(typeof(MassHallucinationsRule))]
|
||||
public sealed class MassHallucinationsRuleComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The maximum time between incidents in seconds
|
||||
/// </summary>
|
||||
[DataField("maxTimeBetweenIncidents", required: true), ViewVariables(VVAccess.ReadWrite)]
|
||||
public float MaxTimeBetweenIncidents;
|
||||
|
||||
/// <summary>
|
||||
/// The minimum time between incidents in seconds
|
||||
/// </summary>
|
||||
[DataField("minTimeBetweenIncidents", required: true), ViewVariables(VVAccess.ReadWrite)]
|
||||
public float MinTimeBetweenIncidents;
|
||||
|
||||
[DataField("maxSoundDistance", required: true), ViewVariables(VVAccess.ReadWrite)]
|
||||
public float MaxSoundDistance;
|
||||
|
||||
[DataField("sounds", required: true)]
|
||||
public SoundSpecifier Sounds = default!;
|
||||
}
|
||||
Reference in New Issue
Block a user