0ad/binaries/data/mods/public/simulation/templates/template_unit.xml
Ykkrosh b8925fbbc9 # Support AI construction of buildings.
Pass terrain passability data to AI scripts.
Expand pathfinder passability data to 16 bits per tile, to allow more
classes.
Support 16-bit ints in serializer.
Partially support JS typed arrays.
Allow foundations to be placed on top of units (fixes #499).
Stop farms and fishes blocking movement (fixes #534).
Add obstruction flags to allow finer control over what they block.
Associate entity IDs with obstruction shapes, to allow finding colliding
entities.
Support moving to the edge of a target entity with inactive obstruction.
Support foundation entities in AI.
Support playing as non-hele civs.

This was SVN commit r8899.
2011-02-10 16:06:28 +00:00

92 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_entity_full">
<Identity>
<GenericName>Unit</GenericName>
<Classes datatype="tokens">Unit ConquestCritical</Classes>
</Identity>
<Minimap>
<Type>unit</Type>
</Minimap>
<UnitAI>
<FormationController>false</FormationController>
</UnitAI>
<Cost>
<Population>1</Population>
<PopulationBonus>0</PopulationBonus>
<BuildTime>1</BuildTime>
<Resources>
<food>0</food>
<wood>0</wood>
<stone>0</stone>
<metal>0</metal>
</Resources>
</Cost>
<Health>
<DeathType>corpse</DeathType>
<Max>100</Max>
<RegenRate>0</RegenRate>
<Healable>true</Healable>
<Repairable>false</Repairable>
</Health>
<Decay>
<Inactive/>
<DelayTime>80.0</DelayTime>
<SinkRate>0.01</SinkRate>
<SinkAccel>0.0</SinkAccel>
</Decay>
<Armour>
<Hack>1.0</Hack>
<Pierce>1.0</Pierce>
<Crush>1.0</Crush>
</Armour>
<ResourceGatherer>
<MaxDistance>2.0</MaxDistance>
<BaseSpeed>1.0</BaseSpeed>
<Rates>
<treasure>1</treasure>
</Rates>
<Capacities>
<food>20</food>
<wood>20</wood>
<stone>20</stone>
<metal>20</metal>
</Capacities>
</ResourceGatherer>
<UnitMotion>
<FormationController>false</FormationController>
<WalkSpeed>7.0</WalkSpeed>
<Run>
<Speed>15.0</Speed>
<Range>50.0</Range>
<RangeMin>0.0</RangeMin>
<RegenTime>0.1</RegenTime>
<DecayTime>0.2</DecayTime>
</Run>
<PassabilityClass>default</PassabilityClass>
<CostClass>default</CostClass>
</UnitMotion>
<StatusBars>
<BarWidth>2.0</BarWidth>
<BarHeight>0.333</BarHeight>
<HeightOffset>5.0</HeightOffset>
</StatusBars>
<OverlayRenderer/>
<Footprint>
<Circle radius="1.0"/>
<Height>2.5</Height>
</Footprint>
<Obstruction>
<Unit radius="0.8"/>
<Active>true</Active>
<BlockMovement>true</BlockMovement>
<BlockPathfinding>false</BlockPathfinding>
<BlockFoundation>false</BlockFoundation>
<BlockConstruction>true</BlockConstruction>
</Obstruction>
<Vision>
<Range>24</Range>
<RetainInFog>false</RetainInFog>
<AlwaysVisible>false</AlwaysVisible>
</Vision>
</Entity>