Sidedef

A sidedef is a structure bound to a linedef in order to specify for one side of the linedef which sector to refer to, what texture to use and where, and how to display and offset that texture. Sidedefs are assigned to linedefs, not the other way around. Just like sector data, sidedef data can be reused for multiple lines or sets of lines. Where a given sidedef's properties are the same as those of another sidedef, either sidedef can be used in either place, and the redundant sidedef can be discarded. This can significantly reduce the filesize of a saved map, and is known as sidedef packing. ZDoom unpacks these sidedefs when maps are loaded, however, presumably for stability purposes.

Specification

BytesData typeDescription
0-1Signed shortX offset
2-3Signed shortY offset
4-11Char[8]Upper texture
12-19Char[8]Lower texture
20-27Char[8]Middle texture
28-29Unsigned ShortSector reference this must be correct for sectors to be closed

UDMF properties

The Universal Doom Map Format allows to set a number of properties on sidedefs. Unless otherwise specified, default values for integers and float is 0. Boolean values default to "false". They include:

NameTypeDescription
alphafloatTranslucency of this line, default is 1.0.
clipmidtexboolIf true, this side's mid textures are clipped to floor and ceiling. Default is to let them "bleed" through floor and ceiling planes. Note that OpenGL renderers will clip mid textures regardless.
commentstringA comment. This is ignored by the engine.
lightintegerThis side's light level.
lightabsoluteboolIf true, 'light' is an absolute value. Default is relative to the owning sector's light level.
lightfogboolIf true, this side's relative lighting is used even in foggy sectors. Default is to disable relative lighting in foggy sectors.
nodecalsboolIf true, this disables decals on the sidedef.
nofakecontrastboolIf true, this disables use of fake contrast on this sidedef (forcing even lighting). Default is to use MAPINFO and user settings.
offsetx_bottomfloatAdditional X offset for lower texture.
offsetx_midfloatAdditional X offset for mid texture.
offsetx_topfloatAdditional X offset for upper texture.
offsetxintegerX offset.
offsety_bottomfloatAdditional Y offset for lower texture.
offsety_midfloatAdditional Y offset for mid texture.
offsety_topfloatAdditional Y offset for upper texture.
offsetyintegerY offset.
scalex_bottomfloatX scale for lower texture, Default = 1.0.
scalex_midfloatX scale for mid texture, Default = 1.0.
scalex_topfloatX scale for upper texture, Default = 1.0.
scaley_bottomfloatY scale for lower texture, Default = 1.0.
scaley_midfloatY scale for mid texture, Default = 1.0.
scaley_topfloatY scale for upper texture, Default = 1.0.
sectorintegerSector index. No valid default.
smoothlightingboolIf true, this forces use of smooth lighting fake contrast. Default is to use MAPINFO and user settings.
texturebottomstringLower texture. Default = "-" for no texture.
texturemiddlestringMiddle texture. Default = "-" for no texture.
texturetopstringUpper texture. Default = "-" for no texture.
wrapmidtexboolIf true, this side's mid textures are wrapped (tiled vertically).

See also

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.