Added Fake unit tags
This commit is contained in:
@@ -167,6 +167,17 @@ namespace OpenRa.Game.Graphics
|
||||
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)
|
||||
{
|
||||
|
||||
@@ -538,6 +538,7 @@
|
||||
<sequence name="pip-yellow" start="5" length="1" />
|
||||
<sequence name="pip-gray" start="6" length="1" />
|
||||
<sequence name="pip-red" start="7" length="1" />
|
||||
<sequence name="fake" start="18" length="1" />
|
||||
</unit>
|
||||
<unit name="mig">
|
||||
<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.
|
||||
[FACF]
|
||||
Description=Fake Construction Yard
|
||||
Traits=Building, RenderBuilding
|
||||
Traits=Building, RenderBuilding, Fake
|
||||
Dimensions=3,3
|
||||
Footprint=xxx xxx xxx
|
||||
SelectionPriority=3
|
||||
LongDesc=Looks like a Construction Yard.
|
||||
[WEAF]
|
||||
Description=Fake War Factory
|
||||
Traits=Building, RenderWarFactory
|
||||
Traits=Building, RenderWarFactory, Fake
|
||||
Dimensions=3,2
|
||||
Footprint=xxx xxx
|
||||
SelectionPriority=3
|
||||
LongDesc=Looks like a War Factory.
|
||||
[SYRF]
|
||||
Description=Fake Shipyard
|
||||
Traits=Building, RenderBuilding
|
||||
Traits=Building, RenderBuilding, Fake
|
||||
Dimensions=3,3
|
||||
Footprint=xxx xxx xxx
|
||||
SelectionPriority=3
|
||||
LongDesc=Looks like a Shipyard
|
||||
[SPEF]
|
||||
Description=Fake Sub Pen
|
||||
Traits=Building, RenderBuilding
|
||||
Traits=Building, RenderBuilding, Fake
|
||||
Dimensions=3,3
|
||||
Footprint=xxx xxx xxx
|
||||
SelectionPriority=3
|
||||
LongDesc=Looks like a Sub Pen
|
||||
[DOMF]
|
||||
Description=Fake Radar Dome
|
||||
Traits=Building, RenderBuilding
|
||||
Traits=Building, RenderBuilding, Fake
|
||||
Dimensions=2,2
|
||||
Footprint=xx xx
|
||||
SelectionPriority=3
|
||||
|
||||
Reference in New Issue
Block a user