Change stun baton throwing to be a chance (#6830)

Co-authored-by: fishfish458 <fishfish458>
This commit is contained in:
Fishfish458
2022-02-20 18:17:34 -06:00
committed by GitHub
parent cce1af3d40
commit c208c4f5ba
2 changed files with 10 additions and 3 deletions

View File

@@ -30,6 +30,10 @@ namespace Content.Server.Stunnable.Components
[DataField("energyPerUse")]
public float EnergyPerUse { get; set; } = 50;
[ViewVariables(VVAccess.ReadWrite)]
[DataField("onThrowStunChance")]
public float OnThrowStunChance { get; set; } = 0.20f;
[DataField("stunSound")]
public SoundSpecifier StunSound { get; set; } = new SoundPathSpecifier("/Audio/Weapons/egloves.ogg");