Files
tbd-station-14/Content.Server/Weapon/Ranged/ServerRangedWeaponComponent.cs
Ephememory 8b1a711843 Fix clown not being clumsy (#5208)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2022-02-17 01:24:38 +11:00

36 lines
1.1 KiB
C#

using System;
using Content.Shared.Damage;
using Content.Shared.Sound;
using Content.Shared.Weapons.Ranged.Components;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.Weapon.Ranged
{
[RegisterComponent]
public sealed class ServerRangedWeaponComponent : SharedRangedWeaponComponent
{
public TimeSpan LastFireTime;
[ViewVariables(VVAccess.ReadWrite)]
[DataField("clumsyCheck")]
public bool ClumsyCheck { get; set; } = true;
[ViewVariables(VVAccess.ReadWrite)]
[DataField("clumsyExplodeChance")]
public float ClumsyExplodeChance { get; set; } = 0.5f;
[ViewVariables(VVAccess.ReadWrite)]
[DataField("canHotspot")]
public bool CanHotspot = true;
[DataField("clumsyWeaponHandlingSound")]
public SoundSpecifier ClumsyWeaponHandlingSound = new SoundPathSpecifier("/Audio/Items/bikehorn.ogg");
[DataField("clumsyWeaponShotSound")]
public SoundSpecifier ClumsyWeaponShotSound = new SoundPathSpecifier("/Audio/Weapons/Guns/Gunshots/bang.ogg");
}
}