Add ability to have randomised reports for weapons
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user