Make (Harvester|Base)AttackNotifiers visible to team mates and spectators
This commit is contained in:
@@ -68,7 +68,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech", info.Notification, self.Owner.Faction.InternalName);
|
Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech", info.Notification, self.Owner.Faction.InternalName);
|
||||||
|
|
||||||
if (radarPings != null)
|
if (radarPings != null)
|
||||||
radarPings.Add(() => self.Owner == self.World.LocalPlayer, self.CenterPosition, info.RadarPingColor, info.RadarPingDuration);
|
radarPings.Add(() => self.Owner.IsAlliedWith(self.World.RenderPlayer), self.CenterPosition, info.RadarPingColor, info.RadarPingDuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
lastAttackTime = self.World.WorldTick;
|
lastAttackTime = self.World.WorldTick;
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech", info.Notification, self.Owner.Faction.InternalName);
|
Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech", info.Notification, self.Owner.Faction.InternalName);
|
||||||
|
|
||||||
if (radarPings != null)
|
if (radarPings != null)
|
||||||
radarPings.Add(() => self.Owner == self.World.LocalPlayer, self.CenterPosition, info.RadarPingColor, info.RadarPingDuration);
|
radarPings.Add(() => self.Owner.IsAlliedWith(self.World.RenderPlayer), self.CenterPosition, info.RadarPingColor, info.RadarPingDuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
lastAttackTime = self.World.WorldTick;
|
lastAttackTime = self.World.WorldTick;
|
||||||
|
|||||||
Reference in New Issue
Block a user