aliens

Author Topic: How to add new damage types.  (Read 4274 times)

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
How to add new damage types.
« 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

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1512
    • View Profile
Re: How to add new damage types.
« Reply #1 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.

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: How to add new damage types.
« Reply #2 on: September 15, 2018, 11:27:30 am »
Seems easy. I will try and see what happens.  ;D

Online Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: How to add new damage types.
« Reply #3 on: September 15, 2018, 01:31:44 pm »
Also the string:
Code: [Select]
  STR_DAMAGE_15: "WHIP-IT-GOOD"

Online Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: How to add new damage types.
« Reply #4 on: September 15, 2018, 01:32:04 pm »
Also add a string with the name:
Code: [Select]
  STR_DAMAGE_15: "WHIP-IT-GOOD"

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: How to add new damage types.
« Reply #5 on: September 15, 2018, 01:40:45 pm »
Great! I didn't thought it was so easy. Thank you Reaver and Solarius!  ;D