fish-station/Content.Shared/Weapons/Melee/Components/InfectOnMeleeComponent.cs
Vigers Ray b52f640b5a
Порт стрельбы со старлайна (#2640)
Co-authored-by: KaiserMaus <kaiser.ratte@gmail.com>
2025-08-08 22:25:02 +03:00

27 lines
787 B
C#

using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.Weapons.Melee;
[RegisterComponent]
[NetworkedComponent]
public sealed partial class InfectOnMeleeComponent : Component
{
/// <summary>
/// infection chance determines the % chance that target will be infected.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public float InfectionChance = 0.05f;
/// <summary>
/// If this is true then target will be cluwned.
/// </summary>
[DataField("cluwnification")]
public bool Cluwinification = false;
/// <summary>
/// Sound played on infection.
/// </summary>
[DataField]
public SoundSpecifier InfectionSound = new SoundPathSpecifier("/Audio/Weapons/Guns/Gunshots/Magic/staff_animation.ogg");
}