RNG timers for IEDs + small tweaks (#22099)

This commit is contained in:
Nemanja
2023-12-02 21:21:51 -05:00
committed by GitHub
parent e5b294af21
commit e2eb80c0fe
7 changed files with 55 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
using Content.Server.Explosion.EntitySystems;
namespace Content.Server.Explosion.Components;
/// <summary>
/// This is used for randomizing a <see cref="RandomTimerTriggerComponent"/> on MapInit
/// </summary>
[RegisterComponent, Access(typeof(TriggerSystem))]
public sealed partial class RandomTimerTriggerComponent : Component
{
/// <summary>
/// The minimum random trigger time.
/// </summary>
[DataField]
public float Min;
/// <summary>
/// The maximum random trigger time.
/// </summary>
[DataField]
public float Max;
}