insert & eject sound

This commit is contained in:
CaYpeN1
2024-03-23 12:05:59 +05:00
parent 60492620af
commit 7c074f9655
6 changed files with 18 additions and 2 deletions

View File

@@ -2,7 +2,6 @@
using Content.Shared.Weapons.Ranged.Components;
using Content.Shared.Weapons.Ranged.Systems;
using Robust.Server.GameObjects;
using Robust.Shared.Audio;
using Robust.Shared.Containers;
namespace Content.Server._White.WeaponModules;
@@ -112,7 +111,7 @@ public sealed class WeaponModulesSystem : EntitySystem
_appearanceSystem.SetData(weapon, ModuleVisualState.Module, "silencer", appearanceComponent);
weaponModulesComponent.UseEffect = true;
_gunSystem.setSound(weapon, new SoundPathSpecifier("/Audio/White/Weapons/Modules/silence.ogg"));
_gunSystem.setSound(weapon, component.NewSoundGunshot);
Dirty(module, weaponModulesComponent);
}