aliens

Author Topic: Variable that offsets HandOb's vertical position?  (Read 1803 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Variable that offsets HandOb's vertical position?
« on: June 11, 2021, 06:06:42 pm »
I've been trying to match a sprite sheet to the general position of equipment HandObs, instead of redrawing the entire thing isn't there a way to change the elevation of the HandOb?

I could be wrong but I seem to remember reading that a variable could be set either in units: or armors: that raised or lowered the HandOb, am I misremembering this?

I've been reading through the Ruleset Reference Nightly for this variable that assigns the offset to the HandOb's vertical position when held by that unit, but so far I have not noticed it.

Is it the standHeight: kneelHeight: & floatHeight: variables?

Offline Nord

  • Commander
  • *****
  • Posts: 1651
  • The Gate is open.
    • View Profile
Re: Variable that offsets HandOb's vertical position?
« Reply #1 on: June 13, 2021, 07:30:15 pm »
Yes, "standHeight: kneelHeight: & floatHeight:" are relative to handob draw height. But remember that they also affect unit hitbox and visibility on stairs.

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: Variable that offsets HandOb's vertical position?
« Reply #2 on: June 14, 2021, 06:04:34 am »
Thank you for the information Nord.

That fixed the problem I was having with the weapons floating above the unit's hands.

I'll take your advice and be careful when using these offsets, I'm not very familiar with the use of LOFT and that last thing I want is an immortal invisible alien blockading a stairway.


An additional question about hitboxes on stairs:
Is a unit seen when any part of the hitbox is visible in 3d space or is it only a specific section of that hitbox that is used to check if a unit is visible.

For example: The bottom layer of the hitbox which is more likely to be covered by the stairs if offset to a point that it is under the stair's voxels.
« Last Edit: June 14, 2021, 06:06:59 am by The Martian »

Offline kevL

  • Colonel
  • ****
  • Posts: 474
  • pitchforks and torches
    • View Profile
Re: Variable that offsets HandOb's vertical position?
« Reply #3 on: June 15, 2021, 02:28:08 am »
Is a unit seen when any part of the hitbox is visible in 3d space ...

its been a while since i looked, but iirc yes

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: Variable that offsets HandOb's vertical position?
« Reply #4 on: June 17, 2021, 10:42:35 am »
its been a while since i looked, but iirc yes
That is a relief, thank you.