Make wieldable use entity position (#9538)
This commit is contained in:
@@ -177,7 +177,7 @@ namespace Content.Server.Wieldable
|
|||||||
|
|
||||||
if (component.WieldSound != null)
|
if (component.WieldSound != null)
|
||||||
{
|
{
|
||||||
SoundSystem.Play(component.WieldSound.GetSound(), Filter.Pvs(uid));
|
SoundSystem.Play(component.WieldSound.GetSound(), Filter.Pvs(uid), uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < component.FreeHandsRequired; i++)
|
for (var i = 0; i < component.FreeHandsRequired; i++)
|
||||||
@@ -207,7 +207,7 @@ namespace Content.Server.Wieldable
|
|||||||
{
|
{
|
||||||
if (component.UnwieldSound != null)
|
if (component.UnwieldSound != null)
|
||||||
{
|
{
|
||||||
SoundSystem.Play(component.UnwieldSound.GetSound(), Filter.Pvs(uid));
|
SoundSystem.Play(component.UnwieldSound.GetSound(), Filter.Pvs(uid), uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
args.User.Value.PopupMessage(Loc.GetString("wieldable-component-failed-wield",
|
args.User.Value.PopupMessage(Loc.GetString("wieldable-component-failed-wield",
|
||||||
|
|||||||
Reference in New Issue
Block a user