I've got XComUtil's Improved HWPs added as an improvement to the vanilla ones (you can upgrade them to XComUtil's versions with a manufacturing project).
However, on tactical missions the Improved HWP appears during the pre-mission loadout screen and during the mission they can't use any weapons. Any idea of what might be wrong? Warboy already gave me a few pointers (adding builtWeapon) but they didn't work.
Here's the relevant code for armors/items:
items:
- type: STR_IMPROVED_TANK_CANNON
size: 6
costSell: 360000
transferTime: 96
weight: 1
bigSprite: 43
floorSprite: 0
handSprite: 0
bulletSprite: 4
fireSound: 12
compatibleAmmo:
- STR_HWP_CANNON_SHELLS
accuracyAuto: 50
tuAuto: 38
autoShots: 6
battleType: 1
fixedWeapon: true
invWidth: 2
invHeight: 3
turretType: 0
armor:
- type: IMPROVED_TANK_ARMOR
spriteSheet: TANKS.PCK
corpseBattle:
- TANK_CORPSE_1
- TANK_CORPSE_2
- TANK_CORPSE_3
- TANK_CORPSE_4
frontArmor: 130
sideArmor: 130
rearArmor: 130
underArmor: 100
drawingRoutine: 2
hasInventory: false
size: 2
damageModifier:
- 1.0
- 1.0
- 0.4
- 0.75
- 1.0
- 1.0
- 0.0
- 0.9
- 0.4
- 0.0
loftempsSet: [ 92, 89, 90, 91 ]
units:
- type: STR_IMPROVED_TANK_CANNON
race: STR_IMPROVED_TANK_CANNON
stats:
tu: 70
stamina: 100
health: 90
bravery: 110
reactions: 20
firing: 60
throwing: 0
strength: 60
psiStrength: 100
psiSkill: 0
melee: 70
armor: IMPROVED_TANK_ARMOR
standHeight: 16
kneelHeight: 16
value: 20
deathSound: 23
moveSound: 14
energyRecovery: 50