SquellDay wrote:
Tremozl wrote:
You can also add a line that says "If I have this gun AND armour, use the body armour mesh" or use a new mesh etc. I do this with Flamethrowers in my Trench Foot mod, so that no matter what uniform a character is wearing, they will always have the Flamethrower's Gas Tank on their back.
Any chance you could post a snippet of the code in here?
It's just the same line of code repeated over and over 18 times in each faction file, to cover every single possible vest (damaged and undamaged) for every single faction. It's nothing too special, except a tedious and valiant effort that turned out well.
Spoiler:
Code:
<model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest2.carry_item"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest2_2"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest2_3"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_veteran_german.carry_item"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_veteran_german_2"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_veteran_german_3"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_officer_german.carry_item"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_officer_german_2"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_officer_german_3"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_veteran_german_ruined"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_officer_german_ruined"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_veteran.carry_item"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_veteran_2"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_veteran_3"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_officer.carry_item"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_officer_2"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_officer_3"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_veteran_ruined"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_officer_ruined"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_veteran_italian.carry_item"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_veteran_italian_2"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_veteran_italian_3"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_officer_italian.carry_item"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_officer_italian_2"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_officer_italian_3"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_veteran_italian_ruined"/></model> <model filename="german_soldier_flamethrower.xml"><requirement class="weapon" slot="0" key="flamethrower.weapon"/><requirement class="carry_item" slot="1" key="vest_officer_italian_ruined"/></model>