OpenXcom Forum

Modding => Help => Topic started by: efrenespartano on September 15, 2018, 05:17:20 am

Title: How to add new damage types.
Post by: efrenespartano on September 15, 2018, 05:17:20 am
Hello there! This is a simple question, I don't know if anyone else has make it earlier.

I would like to add a few new damage types to a project I'm working on with alinare.

How to do it? I suppose that this new damage types will need to be added to armors too, how to do it?

Thanks in advance!




Enviado desde mi iPhone utilizando Tapatalk
Title: Re: How to add new damage types.
Post by: The Reaver of Darkness on September 15, 2018, 11:24:38 am
Check Piratez. That mod uses this feature.

Some snippets:
Code: [Select]
armors:
  - type: STR_SYNTH_SPACE_SUIT_UC
    damageModifier:
      - 0.2
      - 0.5
      - 0.15
      - 0.5
      - 0.5
      - 0.75
      - 0.25
      - 0.4
      - 0.25
      - 0.0
      - 0.0
      - 0.25
      - 0.5
      - 0.5
      - 1.0
      - 0.25
      - 0.1
      - 0.0
items:
  - type: STR_WHIP
    damageType: 15

I don't know if it's as simple as that but you can check the mod for yourself and try with your own mod to find out.
Title: Re: How to add new damage types.
Post by: efrenespartano on September 15, 2018, 11:27:30 am
Seems easy. I will try and see what happens.  ;D
Title: Re: How to add new damage types.
Post by: Solarius Scorch on September 15, 2018, 01:31:44 pm
Also the string:
Code: [Select]
  STR_DAMAGE_15: "WHIP-IT-GOOD"
Title: Re: How to add new damage types.
Post by: Solarius Scorch on September 15, 2018, 01:32:04 pm
Also add a string with the name:
Code: [Select]
  STR_DAMAGE_15: "WHIP-IT-GOOD"
Title: Re: How to add new damage types.
Post by: efrenespartano on September 15, 2018, 01:40:45 pm
Great! I didn't thought it was so easy. Thank you Reaver and Solarius!  ;D