SquellDay wrote:
The Soldier wrote:
In my current dev version of my WWII mod, I've got things like that. In the end, it's determined by the order you equip them in - the last one you put on or take will be the one that affects the skin. For example, in my mod, if you're holding an MG, you get a different soldier model with some grass in your helmet and ammo belts across your neck..
What I'm trying to achieve with my mod is that you equip a sniper rifle and get a ghillie suit. would I have to write in every single weapon classed as a sniper rifle or is it possible to use the weapon tags that squads use, like how sniper rifles have a "sniper" tag, and silenced weapons have a "silenced" tag?
The weapon tag is solely used for squad set ups - nothing else. You'd have to do it with every single weapon. But, lucky for you, there's only 5 sniper rifles in the vanilla game - the M24-A2, Dragunov, PSG-90, Barret M107, and the VSS-Vintorez (if you could count that as a true sniper rifle). If you do want to replace the soldier model, here's the bit of code you need to put in the faction file (you might already know this, of course):
Code:
<model filename="soldier_german_panzerschreck.xml">
<requirement class="weapon" slot="0" key="panzerschreck_player.weapon" />
</model>