Some changes to the nuke damage model + screen shake

This commit is contained in:
Matthew Bowra-Dean
2010-03-09 17:59:00 +13:00
parent 56b1b45965
commit 61b52ffaf9
2 changed files with 20 additions and 1 deletions

View File

@@ -79,7 +79,9 @@ namespace OpenRA.Effects
void Explode(World world)
{
world.AddFrameEndTask(w => w.Remove(this));
Combat.DoImpact(pos.ToInt2(), pos.ToInt2(), weapon, Rules.ProjectileInfo[weapon.Projectile], Rules.WarheadInfo[weapon.Warhead], silo);
var warhead = Rules.WarheadInfo[weapon.Warhead];
Combat.DoImpact(pos.ToInt2(), pos.ToInt2(), weapon, Rules.ProjectileInfo[weapon.Projectile], warhead, silo, true);
world.WorldActor.traits.Get<ScreenShaker>().AddEffect(20, pos, 5);
}
public IEnumerable<Renderable> Render()