Author Topic: Vulnerability to weapon types ?  (Read 3319 times)

Offline Amiga

  • Colonel
  • ****
  • Posts: 128
  • Amiga4ever....
    • View Profile
    • White Wolf Untold Story PL (my rpg game based on Witcher saga)
Vulnerability to weapon types ?
« on: March 07, 2018, 04:00:41 pm »
Is it implemented? If not it would be nice to create something like that. I heared that cyberdiscs are vulnerable to laser weapon. How it works with OXC? Can we choose to specific type of aliens?

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: Vulnerability to weapon types ?
« Reply #1 on: March 07, 2018, 05:44:23 pm »
Each armor definition has a set of resistances/susceptibilities to each weapon type.  A cyberdisc takes 100% damage from lasers - this is important because it only takes 60% damage from explosives and 80% damage from armor piercing ammo.  You can see the damage modifiers for each unit in the original game (and therefore OXC) here on the online ufopaedia.  As for how you define it in OXC, this is done by a list of 10 damage modifier numbers on the armor ruleset for a given unit - see here for the ruleset reference on armors.

As an example, here's what the ruleset for the cyberdisc armor looks like, scroll down to the bottom to see the modifiers:
Code: [Select]
armors:
  - type: CYBERDISC_ARMOR
    spriteSheet: CYBER.PCK
    allowInv: false
    corpseBattle:
      - CYBERDISC_CORPSE_1
      - CYBERDISC_CORPSE_2
      - CYBERDISC_CORPSE_3
      - CYBERDISC_CORPSE_4
    corpseGeo: STR_CYBERDISC_CORPSE
    frontArmor: 34
    sideArmor: 34
    rearArmor: 34
    underArmor: 34
    drawingRoutine: 3
    constantAnimation: true
    movementType: 1
    size: 2
    damageModifier:
      - 1.0
      - 0.8
      - 1.0
      - 0.6
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 0.0
    loftempsSet: [ 92, 89, 90, 91 ]

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Vulnerability to weapon types ?
« Reply #2 on: March 07, 2018, 05:44:43 pm »
All armours in the game have always had 10 damage resistances, modifying the final damage from various damage types - AP, laser, plasma, incendiary etc. (In OXCE+, you can have extra 10.)
Otherwise what would be the point of having multiple damage types?

Offline Amiga

  • Colonel
  • ****
  • Posts: 128
  • Amiga4ever....
    • View Profile
    • White Wolf Untold Story PL (my rpg game based on Witcher saga)
Re: Vulnerability to weapon types ?
« Reply #3 on: March 07, 2018, 06:22:32 pm »
Great.  I was looking for it.  Strange I've missed it...
Thanks guys!

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1512
    • View Profile
Re: Vulnerability to weapon types ?
« Reply #4 on: March 07, 2018, 09:07:55 pm »
Another point to consider is how armor interacts with resistance. A good example is the cyberdisc vs. AP damage. They have only a 20% resistance to it, yet they are effectively immune because their strong 40 points of armor is not easily penetrated by such low damage values as AP weapons have in the vanilla game. The 56 damage of a heavy cannon AP round is reduced to 44.8, barely higher than the armor, meaning there's only slightly more than a 50% chance of even dealing any damage at all. In this case, the 20% resistance actually makes a pretty significant difference. With no resistance, the heavy cannon AP is almost as powerful as a laser rifle. But the laser rifle is still much better because it is more accurate and has a much higher rate of fire.