Use hitsound for 0 damage weapons (#14508)
This commit is contained in:
@@ -463,6 +463,10 @@ public abstract class SharedMeleeWeaponSystem : EntitySystem
|
|||||||
{
|
{
|
||||||
Audio.PlayPredicted(hitEvent.HitSoundOverride, meleeUid, user);
|
Audio.PlayPredicted(hitEvent.HitSoundOverride, meleeUid, user);
|
||||||
}
|
}
|
||||||
|
else if (component.Damage.Total.Equals(FixedPoint2.Zero) && component.HitSound != null)
|
||||||
|
{
|
||||||
|
Audio.PlayPredicted(component.HitSound, meleeUid, user);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Audio.PlayPredicted(component.NoDamageSound, meleeUid, user);
|
Audio.PlayPredicted(component.NoDamageSound, meleeUid, user);
|
||||||
|
|||||||
Reference in New Issue
Block a user