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

@@ -154,7 +154,7 @@ namespace OpenRA.Mods.RA
};
if (args.weapon.Report != null)
Sound.Play(args.weapon.Report + ".aud", pos);
Sound.Play(args.weapon.Report.Random(attacker.World.SharedRandom) + ".aud", pos);
DoImpacts(args);
}