Carrying sector

From ZDoom Wiki
Jump to navigation Jump to search
DoomWiki.org
For more information on this article, visit the Carrying sector page on the Doom Wiki.

Carrying sectors are sectors which move things present in them. ZDoom supports several different types of carrying sectors, originating from the multiple games it supports as well as from compatibility measures with Boom.

There exist two broad categories:

  • Current also called conveyor belts: a floor carrying actors standing on it; usually the floor texture is scrolling in the same direction.
  • Wind also called pushers or pullers: a floor carrying actors present inside it, including flying or floating actors. Constant wind does not apply to actors that are underwater (with waterlevel set to 3); point-based wind ignores deep water.

Note: Raven scrollers (sector types 84 and 201—244) only carry players standing on the ground. Other actors are unaffected. This is because their effect is only checked in the function called when players stand in a special sector.

The following sector types provide wind or current effects:

  • 40—51: Wind in the four cardinal directions and three levels of strength. They only affect players and actors with the WINDTHRUST flag. Originate from Heretic.
  • 84: Current to the East. An oddity from Heretic, this has a different speed from any of the other Raven scrollers, and also features lava damage and fast strobing lights.
  • 118: Current. Used by Strife, orientation and strength of the current depend on the sector's tag value.
  • 201—224: Current. Provide three levels of strength in the eight cardinal and ordinal directions. Textures scroll. Originate from Hexen.
  • 225—229: Current to the East. Provide five levels of strength. Originate from Heretic.
  • 230—244: Current. Provide five levels of strength in the North, South and West directions. Contrarily to the Eastwards current, they do not scroll, a limitation from Heretic.
  • 4096: Wind. A sector flag derived from Boom, this enables PointPusher and PointPuller effects in the sector if it is set.

The following action specials allow to set wind or current in tagged sectors:

Wind defined with Sector_SetWind instead of one of the Heretic sector types above will only work if the affected sectors have the "wind" flag set. This wind affects flying or falling actors in full force, and actors standing on the ground at half force. Actors within deep water are unaffected.

Current defined with Sector_SetCurrent instead of of the sector types above do not affect actors flying or falling above the surface, but have full forces for actors on the floor or underwater.

Scrollers defined with Scroll_Floor will behave as current. They have no effect on actors with the NOGRAVITY flag which are not underwater (even if they do touch the surface). Otherwise, the force is applied fully.

If compat_boomscroll is set, currents defined through Scroll_Floor are cumulatively applied to non-player actors at their boundaries. Normally, ZDoom averages out the influences of each scroller which affects a given actor, instead of simply adding them all up.

If compat_mbfmonstermove is set, wind and current will affect "sentient" actors (living actors with a "See" state) as well as shootable actors, even if they do not have the WINDTHRUST flag.

If compat_ravenscroll is set, the Heretic and Hexen current effects will carry player actors faster than the texture scrolls.