ZDoom Line Specials

43:Ceiling_LowerAndCrush

Name

Ceiling_LowerAndCrush — lowers selected ceilings, damaging anything that gets in their way.

Synopsis

Ceiling_LowerAndCrush (tag, speed, crush);
Ceiling_LowerAndCrush (
  tag,       // tag of affected sector(s)
  speed,     // how quickly the ceiling lower
  crush      // amount of damage to do to actors in the way
);

Parameters

tag
Only sectors with this tag will move their ceilings.
speed
How fast to lower the ceiling.
crush
Amount of damage to do to actors in the way. If this is zero, then no damage will actually be done to anything that gets in the way.

ACS

This special's function is the same whether you activate it on a line or use it in a script.

Remarks

If more than one sector matches the specified tag, the sectors will move their ceilings independantly. If a ceiling is blocked in one sector, the other sectors will still be able to move their ceilings.

If tag is zero, then the sector on the back side of the activating line will be used.

The ceiling will be lowered to a height eight units above the floor underneath it. If any actors block the ceiling's movement, they will receive crushing damage until they either die or move out of the way. If crush is zero, then the ceiling will wait for them to move without damaging them.

Examples

The following can be used to duplicate Doom's line types 44 and 72 (ceiling down to floor + 8) in sectors tagged with 1:

Ceiling_LowerAndCrush (1, 8, 0);

To do standard Doom crushing damage, change the third parameter from 0 to 10:

Ceiling_LowerAndCrush (1, 8, 10);

First Available In

Hexen

See Also

Ceiling Specials | Ceiling_LowerByValue | Ceiling_LowerByValueTimes8 | Ceiling_LowerInstant | Ceiling_LowerToFloor