Htfloorzoffset

From EDukeWiki
Revision as of 13:31, 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 the distance of the actor sprite from the floor when the actor is standing on the ground. 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 already applies a z offset of (1 * 256) to all actors. Therefore, to have a true zero offset, htfloorzoffset needs to be set to -1.