Add ability to have randomised reports for weapons

This commit is contained in:
Scott_NZ
2013-02-03 15:26:56 +13:00
parent e71135b511
commit f4da36065f
4 changed files with 7 additions and 7 deletions

View File

@@ -56,8 +56,8 @@ namespace OpenRA.Mods.RA
self.World.Add(args.weapon.Projectile.Create(args));
if (!string.IsNullOrEmpty(args.weapon.Report))
Sound.Play(args.weapon.Report + ".aud", self.CenterLocation);
if (args.weapon.Report != null)
Sound.Play(args.weapon.Report.Random(self.World.SharedRandom) + ".aud", self.CenterLocation);
}
}
}