nuke damage generalized (DamageModel=PerCell)

This commit is contained in:
Chris Forbes
2010-04-02 11:24:15 +13:00
parent c63697e181
commit 03a037a84f
6 changed files with 69 additions and 24 deletions

View File

@@ -76,8 +76,7 @@ namespace OpenRA.Effects
void Explode(World world)
{
world.AddFrameEndTask(w => w.Remove(this));
//var warhead = Rules.WarheadInfo[weapon.Warhead];
//Combat.DoImpact(pos.ToInt2(), pos.ToInt2(), weapon, Rules.ProjectileInfo[weapon.Projectile], warhead, silo, true);
Combat.DoExplosion(silo, "Atomic", pos.ToInt2(), 0);
world.WorldActor.traits.Get<ScreenShaker>().AddEffect(20, pos, 5);
}