Recently, just for fun with XCF, I created a 2x2 unit that can spawn other small units during battle (link
here). The problem is with the armor of said spawned units. To be playable, I had to insert a fake unit for the armor, a unit that I know cannot be used in-game, or so I thought.
armors:
- type: STR_XCOM_CYBERMITE_ARMOR
#snip
units:
- STR_FAKE_SOLDIER
soldiers:
- type: STR_FAKE_SOLDIER #fake soldier to avoid armours of spawned units to equip to all other soldiers, data copied from AI
requires:
- STR_TROLLIUM
The problem arose when I wanted a quick battle thing. Although the game launched, it crashed when I tried to play. The game was adding these fake soldiers to the roster for the mission. I then needed to add more attributes to the fake soldier to make it "playable":
soldiers:
- type: STR_FAKE_SOLDIER
#fake soldier to avoid armours of spawned units to equip to all other soldiers, data copied from AI
requires:
- STR_TROLLIUM
minStats:
tu: 62
stamina: 92
health: 20
bravery: 110
reactions: 64
firing: 0
throwing: 0
strength: 30
psiStrength: 100
psiSkill: 0
melee: 60
mana: 100
maxStats:
tu: 62
stamina: 92
health: 20
bravery: 110
reactions: 64
firing: 0
throwing: 0
strength: 30
psiStrength: 100
psiSkill: 0
melee: 60
mana: 100
statCaps:
tu: 62
stamina: 92
health: 20
bravery: 110
reactions: 64
firing: 0
throwing: 0
strength: 30
psiStrength: 100
psiSkill: 0
melee: 60
mana: 100
armor: STR_XCOM_CYBERMITE_ARMOR
armorForAvatar: STR_XCOM_CYBERMITE_ARMOR
#soldierNames:
# - "Do not use"
femaleFrequency: 0
allowPromotion: false
flagOffset: 888
My first question is if there is a better way to do this.
My second question, where I know the answer may be no, is if there is a way to let said spawned unit appear mid-air, either via some ruleset code or via scripts.