Files
wwdpublic/Content.Server/Chemistry/Components/SolutionInjectWhileEmbeddedComponent.cs
Kutosss 76bf1599b1 [PORT] Шприцеметы (#439)
* шприцеметы епта

* Update PacifismAllowedGunComponent.cs

* фикс

* Update tags.yml

* Update lathe.yml
2025-04-12 08:55:59 +03:00

34 lines
1.1 KiB
C#

namespace Content.Server.Chemistry.Components;
/// <summary>
/// Used for embeddable entities that should try to inject their
/// contained solution into the entity they are embedded in over time.
/// </summary>
[RegisterComponent]
public sealed partial class SolutionInjectWhileEmbeddedComponent : BaseSolutionInjectOnEventComponent
{
/// <summary>
/// The interval between injection attempts, in seconds.
/// </summary>
[DataField]
public float UpdateInterval = 3.0f;
/// <summary>
/// Maximum number of injections that can be performed before the component removes itself.
/// Null means unlimited.
/// </summary>
[DataField]
public int? Injections = 5;
/// <summary>
/// Used to override the PierceArmor setting when fired from a SyringeGun.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public bool? PierceArmorOverride;
/// <summary>
/// Used to speed up injections when fired from a SyringeGun.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public float SpeedMultiplier = 1f;
}