Regarding your Tank/Grenade Launcher (and certainly for others) that I tested, I had to make a small correction to fix issue in ufopaedia (i.e. initially displaying "HWP Grenades" for both Weapon and Ammunition)
Solution :
1) Under ufopaedia section, replace
weapon: STR_HWP_GRENADES
with
weapon: STR_HWP_GRENADE_LAUNCHER
2) Define a new reference under extraStrings as below
STR_HWP_GRENADE_LAUNCHER: Grenade Launcher
Anyway, following your inspiration, I created a new unit : Tank/MachineGun
items:
- type: STR_TANK_HMG
size: 6
costBuy: 420000
costSell: 120000
transferTime: 96
weight: 1
bigSprite: 43
floorSprite: 0
handSprite: 0
bulletSprite: 4
fireSound: 12
compatibleAmmo:
- STR_HWP_HMG_SHELLS
accuracyAuto: 50
tuAuto: 60
battleType: 1
fixedWeapon: true
invWidth: 2
invHeight: 3
turretType: 0
arcingShot: true
listOrder: 1212
autoShots: 8
autoRange: 20
- type: STR_HWP_HMG_SHELLS
size: 0.1
costBuy: 1000
costSell: 350
transferTime: 48
weight: 1
bigSprite: -1
floorSprite: 12
hitSound: 13
hitAnimation: 26
power: 50
damageType: 1
clipSize: 80
battleType: 2
invWidth: 1
invHeight: 3
listOrder: 1213
units:
- type: STR_TANK_HMG
race: STR_TANK_HMG
stats:
tu: 80
stamina: 100
health: 100
bravery: 110
reactions: 20
firing: 65
throwing: 0
strength: 60
psiStrength: 100
psiSkill: 0
melee: 70
armor: TANK_ARMOR
standHeight: 16
kneelHeight: 16
value: 20
deathSound: 23
moveSound: 14
energyRecovery: 50
ufopaedia:
- id: STR_TANK_HMG
type_id: 3
section: STR_HEAVY_WEAPONS_PLATFORMS
text: STR_TANK_HMG_UFOPEDIA
weapon: STR_HWP_HMG
listOrder: 2203
extraStrings:
- type: en-GB
strings:
STR_TANK_HMG: Tank/MachineGun
STR_HWP_HMG: Heavy Machine Gun
STR_HWP_HMG_SHELLS: Machine Gun Shells
STR_TANK_HMG_UFOPEDIA: The Tank Machine Gun is equipped with a Heavy Machine Gun, which is ideal for covering purposes, specially on open spaces.
- type: en-US
strings:
STR_TANK_HMG: Tank/MachineGun
STR_HWP_HMG: Heavy Machine Gun
STR_HWP_HMG_SHELLS: Machine Gun Shells
STR_TANK_HMG_UFOPEDIA: The Tank Machine Gun is equipped with a Heavy Machine Gun, which is ideal for covering purposes, specially on open spaces.
- type: fr
strings:
STR_TANK_HMG: Blindé Mitrailleur
STR_HWP_HMG: Mitrailleuse Lourde
STR_HWP_HMG_SHELLS: Cartouches PAL
STR_TANK_HMG_UFOPEDIA: Le Blindé Mitrailleur est équipé d'une Mitrailleuse Lourde, idéale en couverture surtout en terrain découvert.