positional sound!

This commit is contained in:
Chris Forbes
2010-05-12 21:39:49 +12:00
parent 4bb268075c
commit dd52aa1728
19 changed files with 60 additions and 29 deletions

View File

@@ -73,7 +73,8 @@ namespace OpenRA.Mods.Aftermath
Game.controller.CancelInputMode();
self.CancelActivity();
self.QueueActivity(new Teleport(order.TargetLocation));
Sound.Play("chrotnk1.aud");
Sound.Play("chrotnk1.aud", self.CenterLocation);
Sound.Play("chrotnk1.aud", Game.CellSize * order.TargetLocation.ToFloat2());
chargeTick = 25 * self.Info.Traits.Get<ChronoshiftDeployInfo>().ChargeTime;
foreach (var a in self.World.Queries.WithTrait<ChronoshiftPaletteEffect>())

View File

@@ -58,7 +58,7 @@ namespace OpenRA.Mods.Aftermath
Combat.DoExplosion(self, info.PrimaryWeapon, detonateLocation, altitude);
var report = self.GetPrimaryWeapon().Report;
if (report != null)
Sound.Play(report + ".aud");
Sound.Play(report + ".aud", self.CenterLocation);
// Remove from world
self.Health = 0;