Static_Init

190:Static_Init (tag, prop, flip/ceiling, movetype)

  • tag: Tag of affected sector, or lineid of concerned linedefs.
  • prop: Sector property to set.
  • flip/ceiling: If prop is set to 255, this is a boolean for whether to flip the sky texture. If prop is set to 3, this is a boolean for whether the control surface is the ceiling or not (and it not, obviously, it's the floor).
  • movetype: If prop is set to 3, determines which type of movement to use, using the same values as in Sector_SetLink.

Sets a sector property during level initialization. Static_Init was designed to copy the functionality of several Boom, MBF and Eternity Engine linetypes; the specific action depends on the second argument.

Property
ValueFunctionNotes
0GravitySets the gravity in tagged sectors to the length of the linedef (333 in Doom-format maps).
1ColorSets the light or fog color in a sector. An RRGGBB hex format color used as an upper texture name will set the light color; a lower texture will set the fog color.
2DamageSets damage in tagged sectors to the length of the linedef (335 in Doom-format maps).
3LinkDefines a sector link with line IDs instead of tags, as in Eternity.
253SectorDefine special handling for adding Eternity Engine ExtraData to sector and line. Used by XLAT for Eternity levels.
254Line
255SkyUses the line's upper texture as the sky in any tagged sectors (that is, the sky flat will be replaced with that texture instead of the sky indicated in MAPINFO). If flip is set to 1, the texture will be flipped, as is normal behavior for Doom skies. Offsets and scrolling of the texture are transferred to the sky as well. Scrolling, however, is only at a tiny fraction of the wall texture's scrolling speed. This corresponds to the MBF sky transfer linetypes (271 and 272).

Note: The line's lower texture, if set and of the same dimensions as the upper texture, will be used during lightning flashes.

Conversions from linedef types

The following Doom map format types can be converted as Static_Init:

TypeConversionTrigger
Eternity 270:ExtraDataLineStatic_Init (tag, 254)
MBF 271:Transfer Sky TextureStatic_Init (tag, 255, 0)
MBF 272:Transfer Sky Texture (Flipped)Static_Init (tag, 255, 1)
Legacy 282:Set Color (Upper Light, Lower Fog)Static_Init (tag, 1)
ZDoom 333Static_Init (tag, 0)
ZDoom 334Static_Init (tag, 1)
ZDoom 335Static_Init (tag, 2)
Eternity 379:Attach_SetCeilingControlStatic_Init (tag, 3, 1)
Eternity 380:Attach_SetFloorControlStatic_Init (tag, 3, 0)
Eternity 381:Attach_FloorToControlStatic_Init (0, 3, 0, 1)
Eternity 382:Attach_CeilingToControlStatic_Init (0, 3, 1, 2)
Eternity 383:Attach_MirrorFloorToControlStatic_Init (0, 3, 0, 5)
Eternity 384:Attach_MirrorCeilingToControlStatic_Init (0, 3, 0, 10)
Eternity 401:ExtraDataSectorStatic_Init (tag, 253)

Forum threads

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