Play tap.ogg when no damage is being done (#9489)

This commit is contained in:
metalgearsloth
2022-07-07 13:37:47 +10:00
committed by GitHub
parent 94a9569d8f
commit 3135dfbebc
2 changed files with 34 additions and 20 deletions

View File

@@ -10,6 +10,10 @@ namespace Content.Server.Weapon.Melee.Components
[DataField("hitSound")]
public SoundSpecifier? HitSound;
[ViewVariables(VVAccess.ReadWrite)]
[DataField("noDamageSound")]
public SoundSpecifier NoDamageSound { get; set; } = new SoundPathSpecifier("/Audio/Weapons/tap.ogg");
[ViewVariables(VVAccess.ReadWrite)]
[DataField("missSound")]
public SoundSpecifier MissSound { get; set; } = new SoundPathSpecifier("/Audio/Weapons/punchmiss.ogg");