Created ShakeScreenWarhead and removed the hardcoded shaking from NukeLaunch and MadTank

This commit is contained in:
Pavel Penev
2019-10-27 11:43:55 +02:00
committed by abcdefg30
parent 6220d7e62e
commit b00154e2bc
3 changed files with 34 additions and 10 deletions

View File

@@ -151,8 +151,6 @@ namespace OpenRA.Mods.Common.Effects
weapon.Impact(target, warheadArgs);
world.WorldActor.Trait<ScreenShaker>().AddEffect(20, pos, 5);
foreach (var flash in world.WorldActor.TraitsImplementing<FlashPaletteEffect>())
if (flash.Info.Type == flashType)
flash.Enable(-1);