Temporary: Add shake to building destroy

This commit is contained in:
alzeih
2010-02-27 16:46:57 +13:00
parent d66ff356ed
commit 39b91bc894

View File

@@ -93,7 +93,10 @@ namespace OpenRa.Traits
public void Damaged(Actor self, AttackInfo e)
{
if (e.DamageState == DamageState.Dead)
{
ScreenShaker.registerShakeEffect(10, self.Location.ToFloat2()*new float2(24, 24), 3);
Sound.Play("kaboom22.aud");
}
}
public void ResolveOrder(Actor self, Order order)