WORKING airstrike

This commit is contained in:
Chris Forbes
2010-04-10 11:32:53 +12:00
parent 388e871da1
commit 058bb1d2ad
3 changed files with 9 additions and 4 deletions

View File

@@ -55,6 +55,7 @@ namespace OpenRA.Mods.Cnc
var a = w.CreateActor("a10", startPos, Owner);
a.traits.Get<Unit>().Facing = Util.GetFacing(order.TargetLocation - startPos, 0);
a.traits.Get<Unit>().Altitude = a.Info.Traits.Get<PlaneInfo>().CruiseAltitude;
a.traits.Get<CarpetBomb>().SetTarget(order.TargetLocation);
a.CancelActivity();
a.QueueActivity(new Fly(order.TargetLocation));

View File

@@ -123,8 +123,11 @@
<unit name="ionsfx">
<sequence name="idle" start="0" length="15" />
</unit>
<unit name="atomic">
<sequence name="up" start="0" length="*" src="atomicup" />
<sequence name="down" start="0" length="*" src="atomicdn" />
</unit>
<unit name="atomic">
<sequence name="up" start="0" length="*" src="atomicup" />
<sequence name="down" start="0" length="*" src="atomicdn" />
</unit>
<unit name="bomblet">
<sequence name="idle" start="0" length="7" />
</unit>
</sequences>

View File

@@ -482,3 +482,4 @@ A10:
Ammo: 10
CarpetBomb:
Weapon: Napalm
Range: 3