Fix attack sounds playing globally.
This commit is contained in:
@@ -102,7 +102,8 @@ namespace Content.Server.GameObjects.Components.Weapon.Melee
|
||||
}
|
||||
|
||||
var audioSystem = _entitySystemManager.GetEntitySystem<AudioSystem>();
|
||||
audioSystem.Play(hitEntities.Count > 0 ? _hitSound : "/Audio/weapons/punchmiss.ogg");
|
||||
var emitter = hitEntities.Count == 0 ? eventArgs.User : hitEntities[0];
|
||||
audioSystem.Play(hitEntities.Count > 0 ? _hitSound : "/Audio/weapons/punchmiss.ogg", emitter);
|
||||
|
||||
if (Arc != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user