Ceiling_LowerAndCrush — lowers selected ceilings, damaging anything that gets in their way.
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 );
This special's function is the same whether you activate it on a line or use it in a script.
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.
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);
Hexen
Ceiling Specials | Ceiling_LowerByValue | Ceiling_LowerByValueTimes8 | Ceiling_LowerInstant | Ceiling_LowerToFloor