Htwaterzoffset

From EDukeWiki
Revision as of 13:40, 26 November 2021 by Doom64hunter (talk | contribs) (Add documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Defines an additive distance of the actor sprite from the floor when the actor is standing in lotag 1 sectors (i.e. water surfaces). The hitbox is also shifted accordingly, i.e. the effect is not only visual.

Possible values range from -128 to 127, which is multiplied by 256 internally, i.e. an offset of 64 translates to 64*256 on the z axis in Build units.

While the default value of the struct member is 0, the engine internally applies a z offset of (-24 * 256) to actors in water. Therefore, to have a true zero offset, htwaterzoffset needs to be set to 24.