Fix aircraft targeting; add veterancy

This commit is contained in:
Paul Chote
2010-06-13 16:40:27 +12:00
parent 8397bc12b5
commit 3b4753d9a8
6 changed files with 28 additions and 10 deletions

View File

@@ -59,6 +59,8 @@ namespace OpenRA.Traits
// Special powers
public readonly string AbilityInsufficientPower = "nopowr1.aud";
public readonly string LevelUp = "hydrod1.aud";
}
public class EvaAlerts {}

View File

@@ -67,8 +67,8 @@ namespace OpenRA.Mods.RA
Level++;
// Game.Debug("{0} became Level {1}".F(self.Info.Name, Level));
Sound.PlayToPlayer(self.Owner, "hydrod1.aud", self.CenterLocation);
var eva = self.World.WorldActor.Info.Traits.Get<EvaAlertsInfo>();
Sound.PlayToPlayer(self.Owner, eva.LevelUp, self.CenterLocation);
self.World.AddFrameEndTask(w => w.Add(new CrateEffect(self, "levelup", new int2(0,-24))));
}
}

View File

@@ -12,6 +12,8 @@
IronCurtainable:
HiddenUnderFog:
RevealsShroud:
GainsExperience:
GivesExperience:
^Infantry:
Category: Infantry
@@ -27,6 +29,8 @@
HiddenUnderFog:
PoisonedByTiberium:
RevealsShroud:
GainsExperience:
GivesExperience:
^Ship:
Category: Ship
@@ -36,13 +40,18 @@
Selectable:
HiddenUnderFog:
RevealsShroud:
GainsExperience:
GivesExperience:
^Plane:
Category: Plane
Unit:
TargetType: Air
Selectable:
HiddenUnderFog:
RevealsShroud:
GainsExperience:
GivesExperience:
^Building:
Category: Building
@@ -60,14 +69,7 @@
EmitInfantryOnSell:
ActorTypes: c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,e1,e1,e1,e1,e1,e1,e1
MustBeDestroyed:
^Tree:
Category: Building
RenderBuilding:
Palette: terrain
Building:
Footprint: __ x_
Dimensions: 2,2
GivesExperience:
^Wall:
Category: Building
@@ -90,6 +92,15 @@
HasMakeAnimation: false
Palette: terrain
DamageStates: 2
GivesExperience:
^Tree:
Category: Building
RenderBuilding:
Palette: terrain
Building:
Footprint: __ x_
Dimensions: 2,2
^Husk:
Category: Vehicle

BIN
mods/cnc/levelup.shp Normal file

Binary file not shown.

View File

@@ -81,6 +81,9 @@
<sequence name="tag-primary" start="2" length="1" src="hpips" />
<sequence name="groups" start="0" length="10" src="pdigits" />
</unit>
<unit name="rank">
<sequence name="rank" start="0" length="4" />
</unit>
<unit name="flagfly">
<sequence name="idle" start="0" length="14" />
</unit>
@@ -119,6 +122,7 @@
<sequence name="idle" start="0" src="wcrate" />
</unit>
<unit name="crate-effects">
<sequence name="levelup" start="0" length="5" src="levelup" tick="200" />
</unit>
<unit name="ionsfx">
<sequence name="idle" start="0" length="15" />

View File

@@ -244,6 +244,7 @@ World:
NavalUnitLost: unitlost.aud
PrimaryBuildingSelected: pribldg1.aud
AbilityInsufficientPower: nopower1.aud
LevelUp: text2.aud
SpatialBins:
BinSize: 4
Shroud: