Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/templates/template_formation.xml
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<Entity> | <Entity> | ||||
<!-- | |||||
Freagarach: And for the record. | |||||
<Identity> | <Identity> | ||||
<Civ>gaia</Civ> | <Civ>gaia</Civ> | ||||
<GenericName>Formation</GenericName> | <GenericName>Formation</GenericName> | ||||
<Undeletable>true</Undeletable> | <Undeletable>true</Undeletable> | ||||
</Identity> | </Identity> | ||||
<Selectable> | <Selectable> | ||||
<Overlay> | <Overlay> | ||||
<Texture> | <Texture> | ||||
<MainTexture>256x256/rectangle.png</MainTexture> | <MainTexture>256x256/rectangle.png</MainTexture> | ||||
<MainTextureMask>256x256/rectangle_mask.png</MainTextureMask> | <MainTextureMask>256x256/rectangle_mask.png</MainTextureMask> | ||||
</Texture> | </Texture> | ||||
</Overlay> | </Overlay> | ||||
</Selectable> | </Selectable> | ||||
<VisualActor> | <VisualActor> | ||||
<Actor>props/special/common/waypoint_flag.xml</Actor> | <Actor>props/special/common/waypoint_flag.xml</Actor> | ||||
<SilhouetteDisplay>true</SilhouetteDisplay> | <SilhouetteDisplay>true</SilhouetteDisplay> | ||||
<SilhouetteOccluder>false</SilhouetteOccluder> | <SilhouetteOccluder>false</SilhouetteOccluder> | ||||
<VisibleInAtlasOnly>false</VisibleInAtlasOnly> | <VisibleInAtlasOnly>false</VisibleInAtlasOnly> | ||||
</VisualActor> | </VisualActor> | ||||
--> | |||||
<Formation> | <Formation> | ||||
<RequiredMemberCount>2</RequiredMemberCount> | <RequiredMemberCount>2</RequiredMemberCount> | ||||
<DisabledTooltip>Requires at least 2 Soldiers or Siege engines.</DisabledTooltip> | <DisabledTooltip>Requires at least 2 Soldiers or Siege engines.</DisabledTooltip> | ||||
<SpeedMultiplier>1</SpeedMultiplier> | <SpeedMultiplier>1</SpeedMultiplier> | ||||
<FormationShape>square</FormationShape> | <FormationShape>square</FormationShape> | ||||
<SortingClasses>Hero Champion Cavalry Melee Ranged</SortingClasses> | <SortingClasses>Hero Champion Cavalry Melee Ranged</SortingClasses> | ||||
<ShiftRows>false</ShiftRows> | <ShiftRows>false</ShiftRows> | ||||
<UnitSeparationWidthMultiplier>1</UnitSeparationWidthMultiplier> | <UnitSeparationWidthMultiplier>1</UnitSeparationWidthMultiplier> | ||||
Show All 28 Lines | <Trader> | ||||
<GainMultiplier>0.75</GainMultiplier> | <GainMultiplier>0.75</GainMultiplier> | ||||
</Trader> | </Trader> | ||||
<UnitAI> | <UnitAI> | ||||
<DefaultStance>aggressive</DefaultStance> | <DefaultStance>aggressive</DefaultStance> | ||||
<FormationController>true</FormationController> | <FormationController>true</FormationController> | ||||
<FleeDistance>12.0</FleeDistance> | <FleeDistance>12.0</FleeDistance> | ||||
<CanGuard>true</CanGuard> | <CanGuard>true</CanGuard> | ||||
<CanPatrol>true</CanPatrol> | <CanPatrol>true</CanPatrol> | ||||
<PatrolWaitTime>2</PatrolWaitTime> | |||||
Not Done Inline ActionsAny specific reason for two seconds here instead of one? Freagarach: Any specific reason for two seconds here instead of one? | |||||
Done Inline ActionsThe formation controller ought to wait somewhat until all members are at the waypoint to carry on. However, it doesn't _actually_ check for that. So waiting one second more makes it more likely for all units to have some stoppage time. wraitii: The formation controller ought to wait somewhat until all members are at the waypoint to carry… | |||||
</UnitAI> | </UnitAI> | ||||
<UnitMotion> | <UnitMotion> | ||||
<FormationController>true</FormationController> | <FormationController>true</FormationController> | ||||
<WalkSpeed>1.0</WalkSpeed> | <WalkSpeed>1.0</WalkSpeed> | ||||
<RunMultiplier>100.0</RunMultiplier> <!-- = Max formation speed --> | <RunMultiplier>100.0</RunMultiplier> <!-- = Max formation speed --> | ||||
<PassabilityClass>large</PassabilityClass> | <PassabilityClass>large</PassabilityClass> | ||||
</UnitMotion> | </UnitMotion> | ||||
</Entity> | </Entity> |
Wildfire Games · Phabricator
And for the record.