positional sound!
This commit is contained in:
@@ -70,7 +70,7 @@ namespace OpenRA.Mods.RA
|
||||
self.World.Add(args.weapon.Projectile.Create(args));
|
||||
|
||||
if (!string.IsNullOrEmpty(args.weapon.Report))
|
||||
Sound.Play(args.weapon.Report + ".aud");
|
||||
Sound.Play(args.weapon.Report + ".aud", self.CenterLocation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace OpenRA.Mods.RA
|
||||
if (curtain != null)
|
||||
curtain.traits.Get<RenderBuilding>().PlayCustomAnim(curtain, "active");
|
||||
|
||||
Sound.Play("ironcur9.aud");
|
||||
Sound.Play("ironcur9.aud", order.TargetActor.CenterLocation);
|
||||
|
||||
order.TargetActor.traits.Get<IronCurtainable>().Activate(order.TargetActor,
|
||||
(int)((Info as IronCurtainPowerInfo).Duration * 25 * 60));
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace OpenRA.Mods.RA
|
||||
Util.CenterOfCell((1 / 24f * self.CenterLocation).ToInt2()),
|
||||
self.traits.Get<Unit>().Altitude, a)));
|
||||
|
||||
Sound.Play("chute1.aud");
|
||||
Sound.Play("chute1.aud", self.CenterLocation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace OpenRA.Mods.RA.SupportPowers
|
||||
|
||||
if (success)
|
||||
{
|
||||
Sound.Play("chrono2.aud");
|
||||
Sound.Play("chrono2.aud", chronosphere.CenterLocation);
|
||||
|
||||
// Trigger screen desaturate effect
|
||||
foreach (var a in self.World.Queries.WithTrait<ChronoshiftPaletteEffect>())
|
||||
|
||||
Reference in New Issue
Block a user