KingErikII
Chieftain
Forgive me if I post this in the wrong place.
I want to add this Grenadier unit to my mod:
https://forums.civfanatics.com/resources/civ5-grenadier.22983/
However, I am not sure what I should write in my Grenadier_Art.xml file.
This is how the file currently looks like:
I cannot get the grenade to work, only the sword. I think I need to edit the UnitMemberCombats and UnitMemberCombatWeapons areas, but I am unsure what to write there.
Thanks for the help!
I want to add this Grenadier unit to my mod:
https://forums.civfanatics.com/resources/civ5-grenadier.22983/
However, I am not sure what I should write in my Grenadier_Art.xml file.
This is how the file currently looks like:
Code:
<GameData>
<!-- UNIT_GRENADIER ************************************************** -->
<ArtDefine_UnitInfos>
<Row>
<Type>ART_DEF_UNIT_GRENADIER</Type>
<Formation>HonorableGunpowder</Formation>
<DamageStates>1</DamageStates>
</Row>
</ArtDefine_UnitInfos>
<ArtDefine_UnitInfoMemberInfos>
<Row>
<UnitInfoType>ART_DEF_UNIT_GRENADIER</UnitInfoType>
<UnitMemberInfoType>ART_DEF_UNIT_MEMBER_GRENADIER</UnitMemberInfoType>
<NumMembers>8</NumMembers>
</Row>
</ArtDefine_UnitInfoMemberInfos>
<ArtDefine_UnitMemberInfos>
<Row>
<Type>ART_DEF_UNIT_MEMBER_GRENADIER</Type>
<Scale>0.14</Scale>
<Model>Art/Grenadier/Grenadier.fxsxml</Model>
<MaterialTypeTag>CLOTH</MaterialTypeTag>
<MaterialTypeSoundOverrideTag>FLESH</MaterialTypeSoundOverrideTag>
</Row>
</ArtDefine_UnitMemberInfos>
<ArtDefine_UnitMemberCombats>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_GRENADIER</UnitMemberType>
<EnableActions>Idle Attack RunCharge AttackCity Bombard Death BombardDefend Run Fortify CombatReady Walk AttackCharge</EnableActions>
<ShortMoveRate>0.35</ShortMoveRate>
<HasShortRangedAttack>1</HasShortRangedAttack>
<HasLongRangedAttack></HasLongRangedAttack>
<HasRefaceAfterCombat>1</HasRefaceAfterCombat>
<ReformBeforeCombat>1</ReformBeforeCombat>
</Row>
</ArtDefine_UnitMemberCombats>
<ArtDefine_UnitMemberCombatWeapons>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_GRENADIER</UnitMemberType>
<Index>0</Index>
<SubIndex>0</SubIndex>
<VisKillStrengthMin>25.0</VisKillStrengthMin>
<VisKillStrengthMax>50.0</VisKillStrengthMax>
<ProjectileSpeed>1.0</ProjectileSpeed>
<HitEffect>ART_DEF_VEFFECT_TANK_IMPACT_$(TERRAIN)</HitEffect>
<WeaponTypeTag>EXPLOSIVE</WeaponTypeTag>
<WeaponTypeSoundOverrideTag>EXPLOSION20POUND</WeaponTypeSoundOverrideTag>
</Row>
</ArtDefine_UnitMemberCombatWeapons>
<ArtDefine_StrategicView>
<Row>
<StrategicViewType>ART_DEF_UNIT_GRENADIER</StrategicViewType>
<TileType>Unit</TileType>
<Asset>SV_Cavalry.dds</Asset>
</Row>
</ArtDefine_StrategicView>
</GameData>
I cannot get the grenade to work, only the sword. I think I need to edit the UnitMemberCombats and UnitMemberCombatWeapons areas, but I am unsure what to write there.
Thanks for the help!