WORKING airstrike
This commit is contained in:
@@ -55,6 +55,7 @@ namespace OpenRA.Mods.Cnc
|
|||||||
var a = w.CreateActor("a10", startPos, Owner);
|
var a = w.CreateActor("a10", startPos, Owner);
|
||||||
a.traits.Get<Unit>().Facing = Util.GetFacing(order.TargetLocation - startPos, 0);
|
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<Unit>().Altitude = a.Info.Traits.Get<PlaneInfo>().CruiseAltitude;
|
||||||
|
a.traits.Get<CarpetBomb>().SetTarget(order.TargetLocation);
|
||||||
|
|
||||||
a.CancelActivity();
|
a.CancelActivity();
|
||||||
a.QueueActivity(new Fly(order.TargetLocation));
|
a.QueueActivity(new Fly(order.TargetLocation));
|
||||||
|
|||||||
@@ -123,8 +123,11 @@
|
|||||||
<unit name="ionsfx">
|
<unit name="ionsfx">
|
||||||
<sequence name="idle" start="0" length="15" />
|
<sequence name="idle" start="0" length="15" />
|
||||||
</unit>
|
</unit>
|
||||||
<unit name="atomic">
|
<unit name="atomic">
|
||||||
<sequence name="up" start="0" length="*" src="atomicup" />
|
<sequence name="up" start="0" length="*" src="atomicup" />
|
||||||
<sequence name="down" start="0" length="*" src="atomicdn" />
|
<sequence name="down" start="0" length="*" src="atomicdn" />
|
||||||
</unit>
|
</unit>
|
||||||
|
<unit name="bomblet">
|
||||||
|
<sequence name="idle" start="0" length="7" />
|
||||||
|
</unit>
|
||||||
</sequences>
|
</sequences>
|
||||||
@@ -482,3 +482,4 @@ A10:
|
|||||||
Ammo: 10
|
Ammo: 10
|
||||||
CarpetBomb:
|
CarpetBomb:
|
||||||
Weapon: Napalm
|
Weapon: Napalm
|
||||||
|
Range: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user