Author Topic: [HWP]Hovertank / E-Bomb  (Read 4261 times)

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
[HWP]Hovertank / E-Bomb
« on: March 01, 2015, 07:46:48 pm »
Well i am kinda in the dark how to solve this.
I already created a Hovertank given him manufacture Topic Unit and item set (same as Hovertank plasma)
The Ammo i wanna use are Elerium Bombs, which is a ammo for the Small Launcher.
I can do this but the clipsize is frozen to 1, even if i say otherwise in the tnak item definitions, anyone care to help enlighten my?

Code: [Select]
items:
  - type: STR_HOVERTANK_EBOMB
    battleType: 1
    size: 6
    costSell: 900000
    transferTime: 96
    weight: 1
    bigSprite: 40
    floorSprite: 0
    handSprite: 0
    bulletSprite: 9
    fireSound: 53
    compatibleAmmo:
      - STR_ELERIUM_BOMB
    hitSound: 0
    hitAnimation: 0
    accuracySnap: 85
    accuracyAimed: 100
    tuSnap: 30
    tuAimed: 60
    clipSize: 20
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    turretType: 4
    listOrder: 1591
units:
  - type: STR_HOVERTANK_EBOMB
    race: STR_HOVERTANK_EBOMB
    stats:
      tu: 100
      stamina: 100
      health: 90
      bravery: 110
      reactions: 30
      firing: 60
      throwing: 0
      strength: 60
      psiStrength: 100
      psiSkill: 0
      melee: 70
    armor: HOVERTANK_ARMOR
    standHeight: 12
    kneelHeight: 12
    floatHeight: 6
    value: 20
    deathSound: 23
    moveSound: 40
    energyRecovery: 50
manufacture:
  - name: STR_HOVERTANK_EBOMB
    category: STR_HEAVY_WEAPONS_PLATFORM
    requires:
      - STR_SMALL_LAUNCHER
      - STR_ELERIUM_BOMB
      - STR_HOVERTANK
    space: 30
    time: 1200
    cost: 800000
    requiredItems:
      STR_ALIEN_ALLOYS: 25
      STR_ELERIUM_115: 15
    listOrder: 591
ufopaedia:
  - id: STR_HOVERTANK_EBOMB
    type_id: 3
    section: STR_HEAVY_WEAPONS_PLATFORMS
    weapon: STR_ELERIUM_BOMB
    requires:
      - STR_SMALL_LAUNCHER
      - STR_ELERIUM_BOMB
      - STR_HOVERTANK
    text: STR_HOVERTANK_EBOMB_UFOPEDIA
    listOrder: 1491
extraStrings:
  - type: en-US
    strings:
      STR_HOVERTANK_EBOMB: "Hovertank/E-Bomb"
      STR_HOVERTANK_EBOMB_UFOPEDIA: "This tank design combines UFO technology and Alien Launcher weaponry. The ability to fire Elerium Bombs from within midair should be deadly to most foes. A clipsize of 20 is sufficient for most missions."

Problem is it seems like its get its Clipsize not from the tank but from the Elerium Bomb. Someone know how to make this work properlys?
« Last Edit: March 01, 2015, 08:02:35 pm by hellrazor »

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: [HWP]Hovertank / E-Bomb
« Reply #1 on: March 01, 2015, 08:16:02 pm »
I'd say that the issue is with you using the Elerium Bombs as ammo: the definitions for Elerium Bomb as ammo for the HWP are being overwritten by the definitions of the bomb as ammo for the Small Launcher. You're basically defining the same item twice in the same ruleset and the last definition is the one that is used. To solve this you'll need to create specific Elerium Bomb ammo for the HWP.
« Last Edit: March 01, 2015, 08:20:13 pm by Hobbes »

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: [HWP]Hovertank / E-Bomb
« Reply #2 on: March 01, 2015, 08:29:40 pm »
I'd say that the issue is with you using the Elerium Bombs as ammo: the definitions for Elerium Bomb as ammo for the HWP are being overwritten by the definitions of the bomb as ammo for the Small Launcher. You're basically defining the same item twice in the same ruleset and the last definition is the one that is used. To solve this you'll need to create specific Elerium Bomb ammo for the HWP.

Jeah i figured that much, but it is kinda dumb, because i wanted to let the tank use the normal elerium bombs.

Code: [Select]
###BEGIN UNITS
units:
  - type: STR_HOVERTANK_EBOMB
    race: STR_HOVERTANK_EBOMB
    stats:
      tu: 100
      stamina: 100
      health: 90
      bravery: 110
      reactions: 30
      firing: 60
      throwing: 0
      strength: 60
      psiStrength: 100
      psiSkill: 0
      melee: 70
    armor: HOVERTANK_ARMOR
    standHeight: 12
    kneelHeight: 12
    floatHeight: 6
    value: 20
    deathSound: 23
    moveSound: 40
    energyRecovery: 50
###END UNITS

###BEGIN ITEMS
items:
  - type: STR_HOVERTANK_EBOMB
    battleType: 1
    size: 6
    costSell: 900000
    transferTime: 96
    weight: 1
    bigSprite: 40
    floorSprite: 0
    handSprite: 0
    bulletSprite: 9
    fireSound: 53
    compatibleAmmo:
      - STR_HWP_EBOMB
    hitSound: 0
    hitAnimation: 0
    accuracySnap: 85
    accuracyAimed: 100
    tuSnap: 30
    tuAimed: 60
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    turretType: 4
    listOrder: 1591

#BEGIN HOVERTANK EBOMB
  - type: STR_HWP_EBOMB
    size: 0.1
    costSell: 13000
    transferTime: 48
    weight: 3
    bigSprite: -1
    floorSprite: 176
    hitSound: 0
    hitAnimation: 0
    power: 90
    damageType: 3
    clipSize: 16
    battleType: 2
    blastRadius: 5
    listOrder: 1791
#END HOVERTANK EBOMB
###END ITEMS

###BEGIN MANUFACTURE
manufacture:
  - name: STR_HOVERTANK_EBOMB
    category: STR_HEAVY_WEAPONS_PLATFORM
    requires:
      - STR_SMALL_LAUNCHER
      - STR_ELERIUM_BOMB
      - STR_HOVERTANK
    space: 30
    time: 1200
    cost: 800000
    requiredItems:
      STR_ALIEN_ALLOYS: 25
      STR_ELERIUM_115: 15
    listOrder: 591
  - name: STR_HWP_EBOMB
    category: STR_AMMUNITION
    requires:
      - STR_SMALL_LAUNCHER
      - STR_ELERIUM_BOMB
      - STR_HOVERTANK
    space: 2
    time: 180
    cost: 6000
    requiredItems:
      STR_ELERIUM_115: 1
    listOrder: 791
###END MANUFACTURE

###BEGIN UFOPAEDIA
ufopaedia:
  - id: STR_HOVERTANK_EBOMB
    type_id: 3
    section: STR_HEAVY_WEAPONS_PLATFORMS
    weapon: STR_HWP_EBOMB
    requires:
      - STR_SMALL_LAUNCHER
      - STR_ELERIUM_BOMB
      - STR_HOVERTANK
    text: STR_HOVERTANK_EBOMB_UFOPEDIA
    listOrder: 1491
##BEGIN EXTRASTRINGS
extraStrings:

#BEGIN en-US
  - type: en-US
    strings:
      STR_HOVERTANK_EBOMB: "Hovertank/E-Bomb"
      STR_HOVERTANK_EBOMB_UFOPEDIA: "This tank design combines UFO technology and Alien Launcher weaponry. The ability to fire Elerium Bombs from within midair should be deadly to most foes. A clipsize of 16 is sufficient for most missions."
#END en-US
##END EXTRASTRINGS
###END UFOPAEDIA

I tried this but the Tank still has a clipsize of 1 even if i define it otherwise....

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: [HWP]Hovertank / E-Bomb
« Reply #3 on: March 01, 2015, 11:25:25 pm »
OK got it to work,
i was Missing an entry in extrastrings for the STR_HWP_EBOMB