moved weapon report from bullet/missile to attackbase

This commit is contained in:
Chris Forbes
2009-12-13 12:26:49 +13:00
parent edc954cc8a
commit 42bd51f2b0
5 changed files with 4 additions and 10 deletions

View File

@@ -94,6 +94,9 @@ namespace OpenRa.Game.Traits
Game.world.Add(new Bullet(weaponName, self.Owner, self,
firePos, target.CenterLocation.ToInt2()));
if (!string.IsNullOrEmpty(weapon.Report))
Sound.Play(weapon.Report + ".aud");
foreach (var na in self.traits.WithInterface<INotifyAttack>())
na.Attacking(self);