Merge pull request #6030 from UberWaffe/CustomWarheads

Custom Warheads refactor
This commit is contained in:
Taryn Hill
2014-08-03 10:35:36 -05:00
59 changed files with 2275 additions and 1233 deletions

View File

@@ -65,9 +65,7 @@ namespace OpenRA.Mods.D2k
if (health.HP <= damageThreshold || --damageTicks > 0)
return;
foreach (var w in weapon.Warheads)
health.InflictDamage(self, self.World.WorldActor, w.Damage, w, false);
weapon.Impact(self.CenterPosition, self.World.WorldActor, 1f);
damageTicks = weapon.ROF;
}
}