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 // Special powers
public readonly string AbilityInsufficientPower = "nopowr1.aud"; public readonly string AbilityInsufficientPower = "nopowr1.aud";
public readonly string LevelUp = "hydrod1.aud";
} }
public class EvaAlerts {} public class EvaAlerts {}

View File

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

View File

@@ -12,6 +12,8 @@
IronCurtainable: IronCurtainable:
HiddenUnderFog: HiddenUnderFog:
RevealsShroud: RevealsShroud:
GainsExperience:
GivesExperience:
^Infantry: ^Infantry:
Category: Infantry Category: Infantry
@@ -27,6 +29,8 @@
HiddenUnderFog: HiddenUnderFog:
PoisonedByTiberium: PoisonedByTiberium:
RevealsShroud: RevealsShroud:
GainsExperience:
GivesExperience:
^Ship: ^Ship:
Category: Ship Category: Ship
@@ -36,13 +40,18 @@
Selectable: Selectable:
HiddenUnderFog: HiddenUnderFog:
RevealsShroud: RevealsShroud:
GainsExperience:
GivesExperience:
^Plane: ^Plane:
Category: Plane Category: Plane
Unit: Unit:
TargetType: Air
Selectable: Selectable:
HiddenUnderFog: HiddenUnderFog:
RevealsShroud: RevealsShroud:
GainsExperience:
GivesExperience:
^Building: ^Building:
Category: Building Category: Building
@@ -60,14 +69,7 @@
EmitInfantryOnSell: EmitInfantryOnSell:
ActorTypes: c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,e1,e1,e1,e1,e1,e1,e1 ActorTypes: c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,e1,e1,e1,e1,e1,e1,e1
MustBeDestroyed: MustBeDestroyed:
GivesExperience:
^Tree:
Category: Building
RenderBuilding:
Palette: terrain
Building:
Footprint: __ x_
Dimensions: 2,2
^Wall: ^Wall:
Category: Building Category: Building
@@ -90,6 +92,15 @@
HasMakeAnimation: false HasMakeAnimation: false
Palette: terrain Palette: terrain
DamageStates: 2 DamageStates: 2
GivesExperience:
^Tree:
Category: Building
RenderBuilding:
Palette: terrain
Building:
Footprint: __ x_
Dimensions: 2,2
^Husk: ^Husk:
Category: Vehicle 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="tag-primary" start="2" length="1" src="hpips" />
<sequence name="groups" start="0" length="10" src="pdigits" /> <sequence name="groups" start="0" length="10" src="pdigits" />
</unit> </unit>
<unit name="rank">
<sequence name="rank" start="0" length="4" />
</unit>
<unit name="flagfly"> <unit name="flagfly">
<sequence name="idle" start="0" length="14" /> <sequence name="idle" start="0" length="14" />
</unit> </unit>
@@ -119,6 +122,7 @@
<sequence name="idle" start="0" src="wcrate" /> <sequence name="idle" start="0" src="wcrate" />
</unit> </unit>
<unit name="crate-effects"> <unit name="crate-effects">
<sequence name="levelup" start="0" length="5" src="levelup" tick="200" />
</unit> </unit>
<unit name="ionsfx"> <unit name="ionsfx">
<sequence name="idle" start="0" length="15" /> <sequence name="idle" start="0" length="15" />

View File

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