fixed demotruck
This commit is contained in:
@@ -56,14 +56,11 @@ namespace OpenRA.Mods.Aftermath
|
|||||||
|
|
||||||
self.World.AddFrameEndTask( w =>
|
self.World.AddFrameEndTask( w =>
|
||||||
{
|
{
|
||||||
// Fire weapon
|
Combat.DoExplosion(self, info.PrimaryWeapon, detonateLocation, altitude);
|
||||||
//w.Add(new Bullet(info.PrimaryWeapon, detonatedBy.Owner, detonatedBy,
|
var report = self.GetPrimaryWeapon().Report;
|
||||||
// detonateLocation, detonateLocation, altitude, altitude));
|
if (report != null)
|
||||||
|
Sound.Play(report + ".aud");
|
||||||
|
|
||||||
//var weapon = Rules.WeaponInfo[info.PrimaryWeapon];
|
|
||||||
//if (!string.IsNullOrEmpty(weapon.Report))
|
|
||||||
// Sound.Play(weapon.Report + ".aud");
|
|
||||||
|
|
||||||
// Remove from world
|
// Remove from world
|
||||||
self.Health = 0;
|
self.Health = 0;
|
||||||
detonatedBy.Owner.Kills++;
|
detonatedBy.Owner.Kills++;
|
||||||
|
|||||||
Reference in New Issue
Block a user