Add support for TS-style tinted target flashes.

This commit is contained in:
Paul Chote
2021-07-03 23:28:48 +01:00
committed by abcdefg30
parent 9291263609
commit 7a93ff3258
8 changed files with 88 additions and 14 deletions

View File

@@ -64,10 +64,10 @@ namespace OpenRA.Mods.Common.Traits
if (tick / 4 < captorOwners.Count && tick % 4 == 0)
{
var captorOwner = captorOwners[tick / 4];
self.World.Add(new FlashTarget(self, captorOwner));
self.World.Add(new FlashTarget(self, captorOwner.Color));
foreach (var captor in captors)
if (captor.Owner == captorOwner)
self.World.Add(new FlashTarget(captor, captorOwner));
self.World.Add(new FlashTarget(captor, captorOwner.Color));
}
if (++tick >= Info.Interval)