aliens

Author Topic: How to make HWP's leave recoverable corpses  (Read 3451 times)

Offline Dwarmin

  • Sergeant
  • **
  • Posts: 27
  • Smoke grenades saved the Earth
    • View Profile
How to make HWP's leave recoverable corpses
« on: November 01, 2017, 05:21:56 pm »
This is probably an easy one for most of you. :P

But, how do you make HWP's leave corpses that can be taken back to base? I want to make it possible to repair them-I have seen this can be done in other mods, but I can't figure how to get past this part.

This is what I am messing with right now, taking the light scout  from the TFTD mod. It can spawn a corpse on the battlefield I can pick up with my soldiers, but the 'wreck' never returns to base with me.

Spoiler:
items:
  - type: STR_DRONE
    size: 1
    costBuy: 60000
    costSell: 30000
    transferTime: 48
    weight: 0
    bigSprite: 20
    floorSprite: 19
    handSprite: 120
    bulletSprite: 1
    fireSound: 39
    hitSound: 38
    power: 60
    blastRadius: -1
    damageType: 9
    hitAnimation: 8
    hitAnimation: 108
    battleType: 1
    accuracyAimed: 100
    tuAimed: 2
    flatRate: true
    fixedWeapon: true
    arcingShot: true
    maxRange: 10
    invWidth: 1
    invHeight: 1
    clipSize: 1
    listOrder: 1073
  - type: STR_DRONE_CORPSE
    weight: 20
    bigSprite: 65
    floorSprite: 53
    invWidth: 2
    invHeight: 2
    battleType: 11
    recover: true
    armor: 25
units:
  - type: STR_DRONE
    race: STR_DRONE
    stats:
      tu: 90
      stamina: 120
      health: 50
      bravery: 110
      reactions: 70
      firing: 65
      throwing: 60
      strength: 15
      psiStrength: 120
      psiSkill: 0
      melee: 60
    armor: DRONE_ARMOR
    standHeight: 8
    floatHeight: 16
    kneelHeight: 8
    value: 5
    moveSound: 444
    deathSound: 57
    energyRecovery: 60
armors:
  - type: DRONE_ARMOR
    spriteSheet: BIODROZ.PCK
    spriteInv: DRONE_INV
    allowInv: false
    corpseBattle:
      - STR_DRONE_CORPSE
    corpseGeo: STR_DRONE_CORPSE 
    frontArmor: 30
    sideArmor: 30
    rearArmor: 30
    underArmor: 30
    movementType: 3
    drawingRoutine: 16
    damageModifier:
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 0.0
      - 1.0
      - 1.0
      - 0.0
    loftemps: 2
    constantAnimation: true

extraStrings:
  - type: en-US
    strings:
STR_DRONE: "LWP/Recon"

STR_DRONE_CORPSE: "LWP/Recon Wreck"
STR_DRONE_MELEE: "Smoke"

STR_DRONE_UFOPEDIA: "These Light Weapon Platforms, also nicknamed 'Roaches', can be equipped with a variety of items to carry out many different missions. However, they are rather fragile and need good planning to be deployed correctly, especially on land missions."

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: How to make HWP's leave recoverable corpses
« Reply #1 on: November 01, 2017, 05:56:29 pm »
The biggest things are the recover: true on the item and giving the armor a corpseGeo definition, both of which you already have done.  The only things I think you could be missing are defining the size (in your stores) and the costSell on the corpse item - not having these could make an incomplete definition for the geoscape, which might make the item not recoverable.

Offline Dwarmin

  • Sergeant
  • **
  • Posts: 27
  • Smoke grenades saved the Earth
    • View Profile
Re: How to make HWP's leave recoverable corpses
« Reply #2 on: November 01, 2017, 06:51:11 pm »
Well I added size, cost sell, and listorder (Not sure about the last one but I am just looking for anything I missed) and still no luck.

Spoiler:

- type: STR_DRONE_CORPSE
    size: 2
    costSell: 5000
    weight: 20
    bigSprite: 65
    floorSprite: 53
    invWidth: 1
    invHeight: 1
    battleType: 11
    recover: true
    armor: 25
    listOrder: 15000

Just gonna be one of those annoying things I never figure out.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: How to make HWP's leave recoverable corpses
« Reply #3 on: November 02, 2017, 02:48:08 pm »
try a newer nightly build
 ;)

Offline Dwarmin

  • Sergeant
  • **
  • Posts: 27
  • Smoke grenades saved the Earth
    • View Profile
Re: How to make HWP's leave recoverable corpses
« Reply #4 on: November 02, 2017, 04:12:06 pm »
Huzzah! Success! ;D

Thanks for your help, Warboy and *checks spelling* ohartenstein! If I make this into an official mini-mod I'll give you credit.