Author Topic: [Solved] Where are the clips?  (Read 1596 times)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
[Solved] Where are the clips?
« on: April 22, 2020, 10:12:21 pm »
Code: [Select]
armors:
  - type: STR_XCOM_ROBOTURRET_MINIGUN_ARMOR
    spriteSheet: XCOM_ROBOTURRET.PCK
    corpseBattle:
      - STR_XCOM_ROBOTURRET_CORPSE
    corpseGeo: STR_CYBERWEB_ROBOTURRET_CORPSE
    visibilityAtDark: 16
    heatVision: 60
    frontArmor: 40
    sideArmor: 30
    rearArmor: 25
    underArmor: 50
    fearImmune: true
    painImmune: true
    bleedImmune: true
    zombiImmune: true
    drawingRoutine: 19
    createsMeleeThreat: false
    psiDefence: *MachineDynamicPsiDefence
    damageModifier:
      - 1.0
      - 1.0
      - 0.2
      - 0.8
      - 1.3
      - 1.1
      - 0.0
      - 1.4
      - 0.4
      - 0.0
      - 1.5
      - 1.5
      - 0.0
      - 0.5
      - 0.0
    loftempsSet: [ 4 ]

units:
  - type: STR_XCOM_ROBOTURRET_MINIGUN
    race: STR_ROBOT
    rank: STR_LIVE_SOLDIER
    stats:
      tu: 42
      stamina: 110
      health: 55
      bravery: 110
      reactions: 90
      firing: 50
      throwing: 0
      strength: 130
      psiStrength: 110
      psiSkill: 0
      melee: 0
    armor: STR_XCOM_ROBOTURRET_MINIGUN_ARMOR
    standHeight: 19
    kneelHeight: 19
    value: 13
    deathSound: 23
    moveSound: 14
    intelligence: 1
    aggression: 0
    spotter: 1
    moraleLossWhenKilled: 20
    builtInWeaponSets:
      - - STR_ROBOTURRET_MINIGUN_WEAPON
        - STR_ROBOTURRET_MINIGUN_WEAPON
        - STR_ROBOTURRET_MINIGUN_WEAPON_CLIP
        - STR_ROBOTURRET_MINIGUN_WEAPON_CLIP

This is a unit spawned from an item. It should have 2 weapons and 2 clips, but instead it gets 2 weapons and no clips.
« Last Edit: February 12, 2023, 09:20:55 am by Meridian »

Offline vadracas

  • Colonel
  • ****
  • Posts: 285
  • Just another player/modder combo.
    • View Profile
Re: Where are the $%*& clips?
« Reply #1 on: April 22, 2020, 11:52:51 pm »
Isn't there capacity for only two in-built weapons in each "hand," meaning that the clips get ignored?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Where are the $%*& clips?
« Reply #2 on: April 23, 2020, 12:42:09 am »
Nah, Meridian found the problem for me... I removed fixedItem from the weapon, not the clip as I should have... So, a really stupid typo.

Closing as it's fixed.