Reorders Sound Systems signatures to match Popup Systems. (#8728)
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
|
||||
protected override void SplattedCreamPie(EntityUid uid, CreamPieComponent creamPie)
|
||||
{
|
||||
SoundSystem.Play(Filter.Pvs(creamPie.Owner), creamPie.Sound.GetSound(), creamPie.Owner, AudioHelpers.WithVariation(0.125f));
|
||||
SoundSystem.Play(creamPie.Sound.GetSound(), Filter.Pvs(creamPie.Owner), creamPie.Owner, AudioHelpers.WithVariation(0.125f));
|
||||
|
||||
if (EntityManager.TryGetComponent<FoodComponent?>(creamPie.Owner, out var foodComp) && _solutionsSystem.TryGetSolution(creamPie.Owner, foodComp.SolutionName, out var solution))
|
||||
{
|
||||
|
||||
@@ -110,7 +110,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
if (!component.Opened)
|
||||
{
|
||||
//Do the opening stuff like playing the sounds.
|
||||
SoundSystem.Play(Filter.Pvs(args.User), component.OpenSounds.GetSound(), args.User, AudioParams.Default);
|
||||
SoundSystem.Play(component.OpenSounds.GetSound(), Filter.Pvs(args.User), args.User, AudioParams.Default);
|
||||
|
||||
SetOpen(uid, true, component);
|
||||
return;
|
||||
@@ -132,7 +132,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
var solution = _solutionContainerSystem.Drain(uid, interactions, interactions.DrainAvailable);
|
||||
_spillableSystem.SpillAt(uid, solution, "PuddleSmear");
|
||||
|
||||
SoundSystem.Play(Filter.Pvs(uid), component.BurstSound.GetSound(), uid, AudioParams.Default.WithVolume(-4));
|
||||
SoundSystem.Play(component.BurstSound.GetSound(), Filter.Pvs(uid), uid, AudioParams.Default.WithVolume(-4));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -314,7 +314,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
Loc.GetString("drink-component-try-use-drink-success-slurp"), args.User, Filter.Pvs(args.User));
|
||||
}
|
||||
|
||||
SoundSystem.Play(Filter.Pvs(uid), args.Drink.UseSound.GetSound(), uid, AudioParams.Default.WithVolume(-2f));
|
||||
SoundSystem.Play(args.Drink.UseSound.GetSound(), Filter.Pvs(uid), uid, AudioParams.Default.WithVolume(-2f));
|
||||
|
||||
drained.DoEntityReaction(uid, ReactionMethod.Ingestion);
|
||||
_stomachSystem.TryTransferSolution(firstStomach.Value.Comp.Owner, drained, firstStomach.Value.Comp);
|
||||
|
||||
@@ -196,7 +196,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
_popupSystem.PopupEntity(Loc.GetString(args.Food.EatMessage, ("food", args.Food.Owner)), args.User, Filter.Entities(args.User));
|
||||
}
|
||||
|
||||
SoundSystem.Play(Filter.Pvs(uid), args.Food.UseSound.GetSound(), uid, AudioParams.Default.WithVolume(-1f));
|
||||
SoundSystem.Play(args.Food.UseSound.GetSound(), Filter.Pvs(uid), uid, AudioParams.Default.WithVolume(-1f));
|
||||
|
||||
// Try to break all used utensils
|
||||
foreach (var utensil in args.Utensils)
|
||||
@@ -299,7 +299,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
|
||||
foodSolution.DoEntityReaction(uid, ReactionMethod.Ingestion);
|
||||
_stomachSystem.TryTransferSolution(((IComponent) firstStomach.Value.Comp).Owner, foodSolution, firstStomach.Value.Comp);
|
||||
SoundSystem.Play(Filter.Pvs(target), food.UseSound.GetSound(), target, AudioParams.Default.WithVolume(-1f));
|
||||
SoundSystem.Play(food.UseSound.GetSound(), Filter.Pvs(target), target, AudioParams.Default.WithVolume(-1f));
|
||||
|
||||
if (string.IsNullOrEmpty(food.TrashPrototype))
|
||||
EntityManager.QueueDeleteEntity(food.Owner);
|
||||
|
||||
@@ -72,8 +72,8 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
}
|
||||
}
|
||||
|
||||
SoundSystem.Play(Filter.Pvs(uid), component.Sound.GetSound(), transform.Coordinates,
|
||||
AudioParams.Default.WithVolume(-2));
|
||||
SoundSystem.Play(component.Sound.GetSound(), Filter.Pvs(uid),
|
||||
transform.Coordinates, AudioParams.Default.WithVolume(-2));
|
||||
|
||||
component.Count--;
|
||||
// If someone makes food proto with 1 slice...
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
|
||||
if (_robustRandom.Prob(component.BreakChance))
|
||||
{
|
||||
SoundSystem.Play(Filter.Pvs(userUid), component.BreakSound.GetSound(), userUid, AudioParams.Default.WithVolume(-2f));
|
||||
SoundSystem.Play(component.BreakSound.GetSound(), Filter.Pvs(userUid), userUid, AudioParams.Default.WithVolume(-2f));
|
||||
EntityManager.DeleteEntity(component.Owner);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user