Scroll_Floor

line version:
223:Scroll_Floor (tag, scrollbits, type, x-move, y-move)

script version:
223:Scroll_Floor (tag, x-move, y-move, type)

This special takes 5 arguments when placed on a line, but 4 arguments when used in a script.

  • tag: tag of affected sector
  • scrollbits: how the scrolling speed is determined (see below)
  • type: set to 0 to scroll the floor texture. A setting of 1 pushes objects along the floor without scrolling the texture. 2 does both. When using it in a script, definitions exist for the type field to allow easier readability.
  • SCROLL  Scrolls the floor
  • CARRY  Moves objects without scrolling
  • SCROLL_AND_CARRY  Does both
  • x-move/y-move: how quickly and in what directions to scroll.
  • scrollbits: Selects the type of scroller and how the speed and angle is determined. (Only when placed on a line)
  • bit 0(1): Displacement scroller
  • bit 1(2): Accelerative scroller
  • bit 2(4): Use this linedef to get dx and dy


Scroll_Floor can also only scroll the flat, only carry objects, or scroll and carry objects depending on what the type argument is set to. x-move and y-move are only used if scrollbits does not indicate to use the linedef to determine the scroll rate. When placed on a line, 128 is subtracted from these values to determine the actual direction and rate of scroll. (So 128 would be no scroll.) When used in a script, positive values move north/east, while negative values move south/west.

Examples

Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.

Conversions from linedef types

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

TypeConversionTrigger
Boom 215:Accel Tagged Floor w.r.t. 1st Side's SectorScroll_Floor (tag, 6, 0, 0, 0)
Boom 216:Accel Objects on Tagged Floor wrt 1st Side's SectorScroll_Floor (tag, 6, 1, 0, 0)
Boom 217:Accel Objects&Tagged Floor wrt 1st Side's SectorScroll_Floor (tag, 6, 2, 0, 0)
Boom 246:Scroll Tagged Floor w.r.t. 1st Side's SectorScroll_Floor (tag, 5, 0, 0, 0)
Boom 247:Push Objects on Tagged Floor wrt 1st Side's SectorScroll_Floor (tag, 5, 1, 0, 0)
Boom 248:Push Objects & Tagged Floor wrt 1st Side's SectorScroll_Floor (tag, 5, 2, 0, 0)
Boom 251:Scroll Tagged FloorScroll_Floor (tag, 4, 0, 0, 0)
Boom 252:Carry Objects on Tagged FloorScroll_Floor (tag, 4, 1, 0, 0)
Boom 253:Scroll Tagged Floor, Carry ObjectsScroll_Floor (tag, 4, 2, 0, 0)
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.