Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/templates/template_formation.xml
Show All 27 Lines | <Position> | ||||
<Floating>false</Floating> | <Floating>false</Floating> | ||||
<FloatDepth>0.0</FloatDepth> | <FloatDepth>0.0</FloatDepth> | ||||
<TurnRate>3.0</TurnRate> | <TurnRate>3.0</TurnRate> | ||||
</Position> | </Position> | ||||
<Trader> | <Trader> | ||||
<GainMultiplier>0.75</GainMultiplier> | <GainMultiplier>0.75</GainMultiplier> | ||||
</Trader> | </Trader> | ||||
<UnitAI> | <UnitAI> | ||||
<AlertReactiveLevel>2</AlertReactiveLevel> | <AlertReactiveLevel>2</AlertReactiveLevel> | ||||
bb: Old position was wrong indeed, but this is also wrong: it should be in between DefaultStance… | |||||
<DefaultStance>aggressive</DefaultStance> | <DefaultStance>aggressive</DefaultStance> | ||||
<FleeDistance>12.0</FleeDistance> | |||||
<FormationController>true</FormationController> | <FormationController>true</FormationController> | ||||
Done Inline Actionsthe formation controller tag should be between DefaultStance and FleeDistance according to the schema bb: the formation controller tag should be between `DefaultStance` and `FleeDistance` according to… | |||||
<FleeDistance>12.0</FleeDistance> | |||||
<CanGuard>true</CanGuard> | <CanGuard>true</CanGuard> | ||||
<CanPatrol>true</CanPatrol> | <CanPatrol>true</CanPatrol> | ||||
</UnitAI> | </UnitAI> | ||||
<UnitMotion> | <UnitMotion> | ||||
<FormationController>true</FormationController> | <FormationController>true</FormationController> | ||||
<WalkSpeed>1.0</WalkSpeed> | <WalkSpeed>1.0</WalkSpeed> | ||||
<PassabilityClass>large</PassabilityClass> | <PassabilityClass>large</PassabilityClass> | ||||
Done Inline ActionsSounds hackish bb: Sounds hackish | |||||
Done Inline ActionsNot really a fan of comments in XML files. Stan: Not really a fan of comments in XML files. | |||||
Done Inline ActionsThere's really no other way to define it that I can think of. Formations have a base walk speed of 1 and are treated as "running" at a multiplier of that based on the unit's therein speed. I'd rather not special-case them in code so this stays imo. An alternative would be to give them a walkSpeed of 100 and a runMultiplier of 1, but really it's the same issue. wraitii: There's really no other way to define it that I can think of. Formations have a base walk speed… | |||||
Not Done Inline ActionsSur but I mean the comments could go in the wiki or a tutorial :) Stan: Sur but I mean the comments could go in the wiki or a tutorial :) | |||||
</UnitMotion> | </UnitMotion> | ||||
</Entity> | </Entity> |
Wildfire Games · Phabricator
Old position was wrong indeed, but this is also wrong: it should be in between DefaultStance and FleeDistance (also seems unrelated to the patch but meh)