aliens

Author Topic: Why HWP is HWP?  (Read 10118 times)

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Why HWP is HWP?
« on: December 10, 2016, 09:59:45 pm »
How a game knows, which item is HWP? I see no special rule. Is it existence of same-named unit, or what? Maybe counting HWP can be changed? As example to count soldiers as HWP, or not counting of specific tank as these?

Offline chaosshade

  • Colonel
  • ****
  • Posts: 170
  • The Harpy
    • View Profile
Re: Why HWP is HWP?
« Reply #1 on: December 11, 2016, 03:58:55 am »
An HWP is like a four-segment terror unit when you look at it in the rulesets (*/openxcom/standard/xcom1/units.rul) but it's special in the UFOpedia because it has built-in armour and weapons.

Offline yrizoud

  • Commander
  • *****
  • Posts: 1014
    • View Profile
Re: Why HWP is HWP?
« Reply #2 on: December 11, 2016, 04:45:47 am »
I think it's the existence of a unit with the same id (STR_) as the item.
From the point of view of OpenXcom engine, I think the difference between soldiers and "hwp" are the following - please correct me if I'm wrong :
* soldiers
   - are hired (can't use the buy/manufacture systems)
   - only one type of soldier can exist
   - occupy living space
   - get random gender, name, looks
   - get random starting stats
   - gain experience, ranks
   - need recovery time after wounded
   - can choose an armor
   - can kneel

* non-soldier units
   - can be 4-tiles, but it's not mandatory (ex: dog, scout drones)
   - can be immune to psionic effects (and morale?), but it's optional
   - immune to fatal wounds  - in advanced ports, I think this is optional
   - can be prevented from using inventory, but it's optional
   - are automatically given a specific weapon
   - can only be fielded if weapon can be fully loaded.


Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9098
    • View Profile
Re: Why HWP is HWP?
« Reply #3 on: December 11, 2016, 09:58:48 am »
Multiple soldier types can exist even in vanilla openxcom, the rest looks correct to me.

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Re: Why HWP is HWP?
« Reply #4 on: December 11, 2016, 12:08:18 pm »
So, hwp count can not be changed?

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9098
    • View Profile
Re: Why HWP is HWP?
« Reply #5 on: December 11, 2016, 12:17:43 pm »
So, hwp count can not be changed?

Of course it can, you can increase a number of allowed HWPs per craft to 1000 if you wish.

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Re: Why HWP is HWP?
« Reply #6 on: December 11, 2016, 01:10:29 pm »
Sorry, maybe i spell it wrong. Concretely i need to count my soldiers of special type as hwps. And i think, it is not possible.
And yes, i can put in ranger craft 100500 tanks, but when i land, i will see only 3.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9098
    • View Profile
Re: Why HWP is HWP?
« Reply #7 on: December 11, 2016, 01:19:29 pm »
Sorry, maybe i spell it wrong. Concretely i need to count my soldiers of special type as hwps. And i think, it is not possible.

That's not possible at the moment.

Sorry, maybe i spell it wrong. Concretely i need to count my soldiers of special type as hwps. And i think, it is not possible.
And yes, i can put in ranger craft 100500 tanks, but when i land, i will see only 3.

Well, your craft battlescape map also has to support 100500 tanks :)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Why HWP is HWP?
« Reply #8 on: December 11, 2016, 02:45:49 pm »
Well, your craft battlescape map also has to support 100500 tanks :)

And I hope you have lots of RAM. :)

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Re: Why HWP is HWP?
« Reply #9 on: December 11, 2016, 03:12:50 pm »

Well, your craft battlescape map also has to support 100500 tanks :)
And let the Kursk bulge begins! Muahaha!
Ghm...

I mean, if you not guessed yet, that yesterday i tried to give one of soldiers a 2x2 armor. And it works. Then i give 6 of my soldiers 2x2 armor. And got 3 big units and 2 common soldiers(last of 8 in crew) in craft deployed. So, idea is still good, but a bit glitchy.
« Last Edit: December 11, 2016, 03:16:25 pm by Nord »

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: Why HWP is HWP?
« Reply #10 on: December 11, 2016, 03:25:41 pm »
And let the Kursk bulge begins! Muahaha!
Ghm...

I mean, if you not guessed yet, that yesterday i tried to give one of soldiers a 2x2 armor. And it works. Then i give 6 of my soldiers 2x2 armor. And got 3 big units and 2 common soldiers(last of 8 in crew) in craft deployed. So, idea is still good, but a bit glitchy.
It fixed in OXCE version where soldiers with 2x2 armors count to HWP limit.

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Re: Why HWP is HWP?
« Reply #11 on: December 11, 2016, 03:32:17 pm »
You will not tempt me, daemon! Errr... Apparently, i need to calm down.  ;D
I will humbly wait for Meridian's holy android OXCE+ version. :)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Why HWP is HWP?
« Reply #12 on: December 12, 2016, 12:36:10 pm »
From what Dioxine reported, 2x2 soldiers always have default move sound, which makes ideas like bikes unviable. It would be good to enable custom move sounds, too.

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Re: Why HWP is HWP?
« Reply #13 on: December 12, 2016, 02:48:54 pm »
I always liked Ufo Afterlight idea, with light armor using 2x2 space, and heavy - 3x3. Back to graphic redactor then...

Offline yrizoud

  • Commander
  • *****
  • Posts: 1014
    • View Profile
Re: Why HWP is HWP?
« Reply #14 on: December 12, 2016, 05:20:22 pm »
It fixed in OXCE version where soldiers with 2x2 armors count to HWP limit.
I guess this is awkward to take into account at all times... I mean, load a skyranger with 12/14 unarmored soldiers, try to change one's armor to something 2x2 : Does the game refuse to do it? What if it's the environment adjustment (OXCE+) which replaces a 1x1 unit by a 2x2 unit ?
Oh and there's a possible difference which I forgot : What about stunned/killed bodies ? Can you carry a stunned 2x2 teammate, or a quarter of him at a time? Even witout moving body, what happens when they come to their senses, and there's no free 2x2 space? (door closed/rotated, or teammate blocking one of the squares)