aliens

Author Topic: bursting acid weapon issue: no damage dealt (and more)  (Read 3690 times)

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
bursting acid weapon issue: no damage dealt (and more)
« on: December 13, 2015, 01:53:58 pm »
weapon is a "hand missile-grenade", meaning it is a single-ammo weapon that flies from your hand to the target, with no launcher needed and no need to be primed.
once shot, nothing is left in your hand. damage (in theory) upon impact, like a rocket.

(if you follow piratez let's play, it works in the same way as one of the basic bombs, don't remember the name, black powder bomb i think).

  - type: STR_ACID_BOLT
    requires:
      - STR_ACID_BOLT
    size: 0.1
    #costBuy: 2800
    costSell: 2100
    weight: 2
    bigSprite: 512
    floorSprite: 512
    handSprite: 512
    bulletSprite: 11
    fireSound: 512
    hitSound: 118
    hitAnimation: 800 # custom green-recolored explosion; does not seem to be the cause of the problem
    power: 140
    damageType: 8
    clipSize: 1
    accuracySnap: 65
    accuracyAimed: 80
    tuSnap: 40
    tuAimed: 50
    battleType: 1
    twoHanded: false
    invWidth: 1
    invHeight: 1
    recoveryPoints: 1
    armor: 10
    arcingShot: true # does not seem to be the cause of the problem
    blastRadius: 1

of course damageType is 8 (acid).
first problem i have is that the weapon does 0 damage.
second problem i have is that it draws a huge explosion despite blastRadius being only 1 (admittedly it deals high damage so it sets itself as a "large explosion").
the latter is a trivial problem, i can live with it; the 0 damage instead is not.

anyone has a working acid-bursting weapon (or tried to make one)? are they a no-go?

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1512
    • View Profile
Re: bursting acid weapon issue: no damage dealt (and more)
« Reply #1 on: December 13, 2015, 03:45:15 pm »
I would try making a vanilla hand missile for debugging purposes. Try giving it HE damage type and see if you can merely get it to even consume the hand weapon in the first place. I've a hunch you'll need OpenXcom Extended to do this.

Offline Arthanor

  • Commander
  • *****
  • Posts: 2488
  • XCom Armoury Quartermaster
    • View Profile
Re: bursting acid weapon issue: no damage dealt (and more)
« Reply #2 on: December 13, 2015, 04:44:33 pm »
Black powder bombs worked in the regular executable, there's nothing to prevent you doing it except damage type. Unless that has changed recently, the only damage types supported for explosions are HE, Stun and Smoke.

You do indeed need OXCE for other damage types to work in explosions.

If you want to stick to the regular OXC, maybe you could use a shotgun-type "blast" instead?

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: bursting acid weapon issue: no damage dealt (and more)
« Reply #3 on: December 13, 2015, 05:02:22 pm »
the only damage types supported for explosions are HE, Stun and Smoke.
yeah, this is what i feared.

Offline ivandogovich

  • Commander
  • *****
  • Posts: 2381
  • X-Com Afficionado
    • View Profile
    • Ivan Dogovich Youtube
Re: bursting acid weapon issue: no damage dealt (and more)
« Reply #4 on: December 13, 2015, 10:58:22 pm »
The basic PirateZ acid weapon is the "flask o acid"

and yup, not explosive, its a point weapon.
Code: [Select]
  - type: STR_FLASK_ACID
    size: 0.05
    costSell: 300
    weight: 3
    bigSprite: 448
    floorSprite: 201
    handSprite: 872
    bulletSprite: 17
    fireSound: 39
    hitSound: 85
    hitAnimation: 46
    power: 40
    damageType: 8
    damageAlter:
      ToArmorPre: 0.2
    accuracyAimed: 100
    accuracyMultiplier:
      firing: 0.0
      throwing: 1.0
    costAimed:
      time: 40
      energy: 6
    costThrow:
      energy: 6
    clipSize: 1
    battleType: 1
    arcingShot: true
    maxRange: 16
    bulletSpeed: -2
    attraction: 10
    listOrder: 4270