Author Topic: What is "None" type damage?  (Read 5312 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
What is "None" type damage?
« on: December 16, 2017, 09:05:47 am »
I was looking at the Ruleset Reference Nightly's section for Armor: and noticed a variable attached to damageModifier: called "None".

What is "None" type damage used by?

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: What is "None" type damage?
« Reply #1 on: December 16, 2017, 10:11:51 am »
it isn't.
internally we use it for vision, but the resistance values never come into play.

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: What is "None" type damage?
« Reply #2 on: December 16, 2017, 07:04:30 pm »
Does it work the same as AP, laser, and plasma?

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: What is "None" type damage?
« Reply #3 on: December 17, 2017, 02:52:49 am »
Can "None" be used as a damage source on a "weapon / ammo" item or will that cause problems with how it is used for vision by the rest of OpenXCom?

Additionally is it perhaps possible to alter the name of the "None" damage type via extraStrings: so that when displayed in UFOpedia reports it's name is listed as something different than "None"?

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: What is "None" type damage?
« Reply #4 on: December 17, 2017, 03:36:25 am »
I just tested it. It works the same as other standard damage types. I don't know how to rename it but I'd be surprised if there wasn't an easy way.

Offline ivandogovich

  • Commander
  • *****
  • Posts: 2381
  • X-Com Afficionado
    • View Profile
    • Ivan Dogovich Youtube
Re: What is "None" type damage?
« Reply #5 on: December 17, 2017, 04:02:36 am »
Can "None" be used as a damage source on a "weapon / ammo" item or will that cause problems with how it is used for vision by the rest of OpenXCom?

Additionally is it perhaps possible to alter the name of the "None" damage type via extraStrings: so that when displayed in UFOpedia reports it's name is listed as something different than "None"?


Early versions of PirateZ (before OXCE+) did just that.  Used this as a damage type.

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: What is "None" type damage?
« Reply #6 on: December 17, 2017, 12:22:47 pm »
Excellent! ^_^

With an additional damage type it feels like suddenly the potential item combinations have expanded drastically.

Even if the displayed name of damageType: 0 can't be changed at least "Unknown" is ambiguous enough to fit several different purposes.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11448
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: What is "None" type damage?
« Reply #7 on: December 17, 2017, 02:40:04 pm »
Early versions of PirateZ (before OXCE+) did just that.  Used this as a damage type.

Not early versions, all versions. Type 0 is continuously used for charm-related attacks.

With an additional damage type it feels like suddenly the potential item combinations have expanded drastically.

If you're interested, OXCE+ allows for 10 additional damage types.

Hyper2Snyper

  • Guest
Re: What is "None" type damage?
« Reply #8 on: December 19, 2017, 10:10:16 pm »
Really!! 10 more.
INSTALLING.........
..........................
..........................
INSTALL COMPLETE
LOAD? (Y/N)

Hyper2Snyper

  • Guest
Re: What is "None" type damage?
« Reply #9 on: December 19, 2017, 10:13:39 pm »
Wait. I just looked at the UFPpedia OXCE+ ruleset reference and it just shows the original damage types

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: What is "None" type damage?
« Reply #10 on: December 20, 2017, 01:25:26 am »
The https://ufopaedia.org reference is terribly out of date, you should go to the OXCE/OXCE+ subforum to look for the documentation on the various features.

This particular one adds 10 generic damage types that the modder can use to do whatever they want, but they don't show up anywhere in the game unless the mod you're playing uses them.

Hyper2Snyper

  • Guest
Re: What is "None" type damage?
« Reply #11 on: December 20, 2017, 01:51:57 am »
ok thanks