27 lines
787 B
C#
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");
|
|
}
|