race specific BaseAttackNotifier
This commit is contained in:
@@ -19,6 +19,7 @@ namespace OpenRA.Mods.RA
|
|||||||
{
|
{
|
||||||
public readonly int NotifyInterval = 30; /* seconds */
|
public readonly int NotifyInterval = 30; /* seconds */
|
||||||
public readonly string Audio = "baseatk1.aud";
|
public readonly string Audio = "baseatk1.aud";
|
||||||
|
public readonly string Race = null;
|
||||||
|
|
||||||
public object Create(ActorInitializer init) { return new BaseAttackNotifier(this); }
|
public object Create(ActorInitializer init) { return new BaseAttackNotifier(this); }
|
||||||
}
|
}
|
||||||
@@ -34,6 +35,7 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
public void Damaged(Actor self, AttackInfo e)
|
public void Damaged(Actor self, AttackInfo e)
|
||||||
{
|
{
|
||||||
|
if (info.Race != null && info.Race != self.Owner.Country.Race) return;
|
||||||
/* only track last hit against our base */
|
/* only track last hit against our base */
|
||||||
if (!self.HasTrait<Building>())
|
if (!self.HasTrait<Building>())
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -176,6 +176,8 @@
|
|||||||
Dimensions: 1,1
|
Dimensions: 1,1
|
||||||
Footprint: x
|
Footprint: x
|
||||||
TerrainTypes: Rock, Concrete
|
TerrainTypes: Rock, Concrete
|
||||||
|
BuildSounds:
|
||||||
|
SellSounds:
|
||||||
GivesBuildableArea:
|
GivesBuildableArea:
|
||||||
Capturable:
|
Capturable:
|
||||||
CapturableBar:
|
CapturableBar:
|
||||||
|
|||||||
@@ -65,8 +65,15 @@ Player:
|
|||||||
PlayerColorPalette:
|
PlayerColorPalette:
|
||||||
BasePalette: d2k
|
BasePalette: d2k
|
||||||
PaletteFormat: d2k
|
PaletteFormat: d2k
|
||||||
BaseAttackNotifier:
|
BaseAttackNotifier@Atreides:
|
||||||
|
Race: atreides
|
||||||
Audio: AI_ATACK.AUD
|
Audio: AI_ATACK.AUD
|
||||||
|
BaseAttackNotifier@Harkonnen:
|
||||||
|
Race: harkonnen
|
||||||
|
Audio: HI_ATACK.AUD
|
||||||
|
BaseAttackNotifier@Ordos:
|
||||||
|
Race: ordos
|
||||||
|
Audio: OI_ATACK.AUD
|
||||||
|
|
||||||
World:
|
World:
|
||||||
OpenWidgetAtGameStart:
|
OpenWidgetAtGameStart:
|
||||||
|
|||||||
Reference in New Issue
Block a user