Added Fake unit tags
This commit is contained in:
@@ -167,6 +167,17 @@ namespace OpenRa.Game.Graphics
|
|||||||
pipxyOffset.Y -= 5;
|
pipxyOffset.Y -= 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
float2 fakexyBase = new float2(-16, -4);
|
||||||
|
if (selectedUnit.Owner == Game.LocalPlayer){
|
||||||
|
foreach (var fake in selectedUnit.traits.WithInterface<Fake>())
|
||||||
|
{
|
||||||
|
float2 fakexyOffset = xY + new float2(selectedUnit.Bounds.Width/2, 0) + fakexyBase;
|
||||||
|
var fakeImage = new Animation("pips");
|
||||||
|
fakeImage.PlayRepeating("fake");
|
||||||
|
spriteRenderer.DrawSprite(fakeImage.Image, fakexyOffset, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (ShowUnitPaths)
|
if (ShowUnitPaths)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -538,6 +538,7 @@
|
|||||||
<sequence name="pip-yellow" start="5" length="1" />
|
<sequence name="pip-yellow" start="5" length="1" />
|
||||||
<sequence name="pip-gray" start="6" length="1" />
|
<sequence name="pip-gray" start="6" length="1" />
|
||||||
<sequence name="pip-red" start="7" length="1" />
|
<sequence name="pip-red" start="7" length="1" />
|
||||||
|
<sequence name="fake" start="18" length="1" />
|
||||||
</unit>
|
</unit>
|
||||||
<unit name="mig">
|
<unit name="mig">
|
||||||
<sequence name="idle" start="0" length="16" />
|
<sequence name="idle" start="0" length="16" />
|
||||||
|
|||||||
10
units.ini
10
units.ini
@@ -457,35 +457,35 @@ SelectionPriority=3
|
|||||||
LongDesc=Repairs vehicles, reloads minelayers, and \nallows the construction of additional bases.
|
LongDesc=Repairs vehicles, reloads minelayers, and \nallows the construction of additional bases.
|
||||||
[FACF]
|
[FACF]
|
||||||
Description=Fake Construction Yard
|
Description=Fake Construction Yard
|
||||||
Traits=Building, RenderBuilding
|
Traits=Building, RenderBuilding, Fake
|
||||||
Dimensions=3,3
|
Dimensions=3,3
|
||||||
Footprint=xxx xxx xxx
|
Footprint=xxx xxx xxx
|
||||||
SelectionPriority=3
|
SelectionPriority=3
|
||||||
LongDesc=Looks like a Construction Yard.
|
LongDesc=Looks like a Construction Yard.
|
||||||
[WEAF]
|
[WEAF]
|
||||||
Description=Fake War Factory
|
Description=Fake War Factory
|
||||||
Traits=Building, RenderWarFactory
|
Traits=Building, RenderWarFactory, Fake
|
||||||
Dimensions=3,2
|
Dimensions=3,2
|
||||||
Footprint=xxx xxx
|
Footprint=xxx xxx
|
||||||
SelectionPriority=3
|
SelectionPriority=3
|
||||||
LongDesc=Looks like a War Factory.
|
LongDesc=Looks like a War Factory.
|
||||||
[SYRF]
|
[SYRF]
|
||||||
Description=Fake Shipyard
|
Description=Fake Shipyard
|
||||||
Traits=Building, RenderBuilding
|
Traits=Building, RenderBuilding, Fake
|
||||||
Dimensions=3,3
|
Dimensions=3,3
|
||||||
Footprint=xxx xxx xxx
|
Footprint=xxx xxx xxx
|
||||||
SelectionPriority=3
|
SelectionPriority=3
|
||||||
LongDesc=Looks like a Shipyard
|
LongDesc=Looks like a Shipyard
|
||||||
[SPEF]
|
[SPEF]
|
||||||
Description=Fake Sub Pen
|
Description=Fake Sub Pen
|
||||||
Traits=Building, RenderBuilding
|
Traits=Building, RenderBuilding, Fake
|
||||||
Dimensions=3,3
|
Dimensions=3,3
|
||||||
Footprint=xxx xxx xxx
|
Footprint=xxx xxx xxx
|
||||||
SelectionPriority=3
|
SelectionPriority=3
|
||||||
LongDesc=Looks like a Sub Pen
|
LongDesc=Looks like a Sub Pen
|
||||||
[DOMF]
|
[DOMF]
|
||||||
Description=Fake Radar Dome
|
Description=Fake Radar Dome
|
||||||
Traits=Building, RenderBuilding
|
Traits=Building, RenderBuilding, Fake
|
||||||
Dimensions=2,2
|
Dimensions=2,2
|
||||||
Footprint=xx xx
|
Footprint=xx xx
|
||||||
SelectionPriority=3
|
SelectionPriority=3
|
||||||
|
|||||||
Reference in New Issue
Block a user