1
0
forked from mirrors/0ad

Garrison outposts visually.

Instead of disappearing inside an open structure, this lets garrisoned
entities show up on the platform of an outpost.
Also corrects some dimensions.

Patch by: @Nescio.
Differential Revision: D2986
Idea accepted by: @wraitii.
Reviewed by: @borg-.
This was SVN commit r24021.
This commit is contained in:
Freagarach
2020-09-04 13:46:08 +00:00
parent e744cfdd61
commit f9f7b4d49f
18 changed files with 103 additions and 96 deletions
@@ -1,5 +1,4 @@
OUTPOSTS
Build in neutral territory for a large scouting range.
Cheap, at 80 Wood.
They construct quickly, but are weak.
Garrison a unit in it to stop them from decaying in neutral territory.
Build in neutral or own territory.
Cheap and quickly built, but weak.
Garrison infantry for extensive vision, and to prevent losing control of the outpost due to territory decay.
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>skirm</Civ>
</Identity>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>athen</Civ>
<SpecificName>Prophylagma</SpecificName>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>brit</Civ>
<SpecificName>Antosolicon</SpecificName>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>cart</Civ>
</Identity>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>gaul</Civ>
<SpecificName>Antosolicon</SpecificName>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>iber</Civ>
</Identity>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>kush</Civ>
<SpecificName>trtr</SpecificName>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>mace</Civ>
<SpecificName>Prophylagma</SpecificName>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>maur</Civ>
<SpecificName>Uparaksana</SpecificName>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>pers</Civ>
<SpecificName>Didebani</SpecificName>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>ptol</Civ>
<SpecificName>Prophylagma</SpecificName>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>rome</Civ>
<SpecificName>Vigilārium</SpecificName>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>sele</Civ>
<SpecificName>Prophylagma</SpecificName>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower_outpost">
<Entity parent="template_structure_defensive_outpost">
<Identity>
<Civ>spart</Civ>
<SpecificName>Prophylagma</SpecificName>
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive">
<Auras datatype="tokens">
structures/wall_garrisoned
</Auras>
<BuildRestrictions>
<Category>Outpost</Category>
<Distance>
<FromClass>Outpost</FromClass>
<MinDistance>50</MinDistance>
</Distance>
<Territory>own neutral</Territory>
</BuildRestrictions>
<Cost>
<BuildTime>30</BuildTime>
<Resources>
<wood>60</wood>
</Resources>
</Cost>
<Footprint>
<Square width="7.0" depth="7.0"/>
<Height>13.0</Height>
</Footprint>
<GarrisonHolder>
<Max>1</Max>
<EjectHealth>0.1</EjectHealth>
<EjectClassesOnDestroy datatype="tokens">Unit</EjectClassesOnDestroy>
<List datatype="tokens">Infantry</List>
<BuffHeal>0</BuffHeal>
<LoadingRange>2</LoadingRange>
</GarrisonHolder>
<Health>
<Max>400</Max>
<SpawnEntityOnDeath>decay|rubble/rubble_stone_2x2</SpawnEntityOnDeath>
</Health>
<Identity>
<GenericName>Outpost</GenericName>
<SelectionGroupName>template_structure_defensive_outpost</SelectionGroupName>
<Tooltip>Build in own or neutral territory. Slowly converts to Gaia while in neutral territory.</Tooltip>
<VisibleClasses datatype="tokens">Outpost</VisibleClasses>
<Icon>structures/outpost.png</Icon>
</Identity>
<Loot>
<wood>12</wood>
</Loot>
<Obstruction>
<Static width="6.0" depth="6.0"/>
</Obstruction>
<ProductionQueue disable=""/>
<Resistance>
<Entity>
<Damage>
<Hack>10</Hack>
<Pierce>20</Pierce>
<Crush>1</Crush>
</Damage>
</Entity>
</Resistance>
<Sound>
<SoundGroups>
<constructed>interface/complete/building/complete_tower.xml</constructed>
<select>interface/select/building/sel_tower.xml</select>
</SoundGroups>
</Sound>
<StatusBars>
<HeightOffset>14.0</HeightOffset>
</StatusBars>
<TerritoryDecay>
<DecayRate>1</DecayRate>
</TerritoryDecay>
<TurretHolder>
<TurretPoints>
<One>
<X>0</X>
<Y>8</Y>
<Z>0</Z>
</One>
</TurretPoints>
</TurretHolder>
<Vision>
<Range>1</Range>
</Vision>
<VisualActor>
<FoundationActor>structures/fndn_2x2.xml</FoundationActor>
</VisualActor>
</Entity>
@@ -59,8 +59,6 @@
</SoundGroups>
</Sound>
<StatusBars>
<BarWidth>6.0</BarWidth>
<BarHeight>0.6</BarHeight>
<HeightOffset>18.0</HeightOffset>
</StatusBars>
<Vision>
@@ -1,76 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="template_structure_defensive_tower">
<Attack>
<Ranged>
<Damage>
<Pierce>8</Pierce>
</Damage>
<MaxRange>50</MaxRange>
<MinRange>10</MinRange>
<ElevationBonus>8</ElevationBonus>
</Ranged>
</Attack>
<BuildingAI>
<DefaultArrowCount>0</DefaultArrowCount>
</BuildingAI>
<BuildRestrictions>
<Category>Outpost</Category>
<Distance>
<FromClass>Outpost</FromClass>
<MinDistance>50</MinDistance>
</Distance>
<Territory>own neutral</Territory>
</BuildRestrictions>
<Cost>
<BuildTime>30</BuildTime>
<Resources>
<wood>60</wood>
</Resources>
</Cost>
<Footprint>
<Square width="9.0" depth="9.0"/>
<Height>15.0</Height>
</Footprint>
<GarrisonHolder>
<Max>1</Max>
</GarrisonHolder>
<Health>
<Max>400</Max>
</Health>
<Identity>
<GenericName>Outpost</GenericName>
<SelectionGroupName>template_structure_defensive_tower_outpost</SelectionGroupName>
<Tooltip>Build in own or neutral territory. Slowly converts to Gaia while in neutral territory.</Tooltip>
<VisibleClasses datatype="tokens">-Tower Outpost</VisibleClasses>
<Icon>structures/outpost.png</Icon>
</Identity>
<Loot>
<wood>12</wood>
</Loot>
<Obstruction>
<Static width="6.5" depth="6.5"/>
</Obstruction>
<ProductionQueue disable=""/>
<Resistance>
<Entity>
<Damage>
<Hack>10</Hack>
<Pierce>20</Pierce>
<Crush>1</Crush>
</Damage>
</Entity>
<Foundation>
<Damage>
<Hack>1</Hack>
<Pierce>5</Pierce>
<Crush>1</Crush>
</Damage>
</Foundation>
</Resistance>
<TerritoryDecay>
<DecayRate>1</DecayRate>
</TerritoryDecay>
<Vision>
<Range>100</Range>
</Vision>
</Entity>