aliens

Author Topic: [Documentation] SpecialWeapons per Soldier Type  (Read 1249 times)

Offline memmaker

  • Captain
  • ***
  • Posts: 95
    • View Profile
[Documentation] SpecialWeapons per Soldier Type
« on: February 04, 2020, 10:35:12 pm »
Three days ago a new OXCE Feature was merged, allowing for special weapons on soldiers.

A ruleset example would look like this:

Code: [Select]
soldiers:
  - type: STR_HEAVY
    specialWeapon: STR_ROCKET_LAUNCHER

Offline efrenespartano

  • Commander
  • *****
  • Posts: 657
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: [Documentation] SpecialWeapons per Soldier Type
« Reply #1 on: February 04, 2020, 10:56:06 pm »
How does it work, mate?

Like the specialWeapons already in the armor? Also, how does it behave when your soldier uses an armor with a specialWeapon already in? Both specialWeapons are used?

Enviado desde mi LG-M400 mediante Tapatalk


Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 10033
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Documentation] SpecialWeapons per Soldier Type
« Reply #2 on: February 05, 2020, 12:13:22 am »
I hope it means that I can put my psi weapon directly on hybrid soldiers.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1904
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: [Documentation] SpecialWeapons per Soldier Type
« Reply #3 on: February 05, 2020, 12:25:42 am »
Yes, it exactly means you can put the psi weapon directly on hybrid soldiers.

As for having multiple special weapons (one on armor, one on soldier), one will take precedence according to the rules already in place for HWPs/aliens that you mind control:

  • The order in which the items are loaded into the unit determine which shows for the icon - for your soldiers the one defined on armor is loaded first, so it will be the one shown on the icon.
  • The order for special weapons accessed by an empty hand are done in order of the battleType for the item: Melee takes priority, next Psi amps, Firearms, Medikits, Motion scanners, then Mind probes last. If the two special weapons are the same battle type, then the load order determines which is used (armor first).

If you're going to use both in a mod, I'd recommend setting a convention for separating the two special weapons. For example, put the soldiers' one always in both empty hand and special icon, then armor only in special icon.

Offline memmaker

  • Captain
  • ***
  • Posts: 95
    • View Profile
Re: [Documentation] SpecialWeapons per Soldier Type
« Reply #4 on: February 05, 2020, 02:11:05 am »
I see, ohartenstein beat me to the answers.

Adding one minor thing though: Yes, they work exactly as specialWeapons on armors, thus also taking no inventory space.

Offline efrenespartano

  • Commander
  • *****
  • Posts: 657
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: [Documentation] SpecialWeapons per Soldier Type
« Reply #5 on: February 05, 2020, 02:12:30 am »
So I can have two specialWeapon at the same time... Thanks a lot, memmaker. You are awesome.

Also, thank you Ohartenstein23 for your answers! Is pretty clear now

Enviado desde mi LG-M400 mediante Tapatalk

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 10033
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Documentation] SpecialWeapons per Soldier Type
« Reply #6 on: February 05, 2020, 10:50:38 am »
Same, many thanks for clearing this up.

Offline Nord

  • Commander
  • *****
  • Posts: 1224
  • The Gate will open... someday.
    • View Profile
Re: [Documentation] SpecialWeapons per Soldier Type
« Reply #7 on: February 05, 2020, 11:42:45 am »
Did i misreaded or is it really two special weapons possible now on the same time?

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6771
  • OXCE developer
    • View Profile
    • My Wiki
Re: [Documentation] SpecialWeapons per Soldier Type
« Reply #8 on: February 05, 2020, 12:09:57 pm »
77 weapons at the same time when?

Offline memmaker

  • Captain
  • ***
  • Posts: 95
    • View Profile
Re: [Documentation] SpecialWeapons per Soldier Type
« Reply #9 on: February 05, 2020, 12:10:26 pm »
Yes, but they won't be using the same UI. You can have one for the special icon and one for the hands, like ohartenstein described.

Gesendet von meinem Pixel 3 mit Tapatalk


Offline Nord

  • Commander
  • *****
  • Posts: 1224
  • The Gate will open... someday.
    • View Profile
Re: [Documentation] SpecialWeapons per Soldier Type
« Reply #10 on: February 05, 2020, 12:30:52 pm »
Yes, but they won't be using the same UI. You can have one for the special icon and one for the hands, like ohartenstein described.

Gesendet von meinem Pixel 3 mit Tapatalk
Oh, it is just as it is now.