Linedef type 250
Linedef type 250, Mario Block, is a type of floor over floor platform which behaves exactly like an item block from the classic Mario games. When hit from below, it will award an item or items to the player who hits it, briefly displaying a corresponding sprite appearing out of the top of the block. The Mario block can be seen in Pipe Towers Zone.
The flats, floor height, and ceiling height of the FOF are determined by the flats, floor height, and ceiling height of the control sector. The control linedef's middle texture is shown only briefly during map load as the FOF's side. After that, the below texture is used for the FOF while there are items within the control sector. If there are no items left, it will change to the upper texture.
The light level of the control sector will determine the brightness of the shadow cast by the FOF. If the light level of the control sector is lower than that of the target sector, then it will cast a dark shadow. If the light level of the control sector is higher than that of the target sector, then the FOF will illuminate the area below it. If the light level of the control sector is equal to that of the target sector, than the FOF will not affect the light of the area below it.
To make the Mario block work, at least one appropriate Thing must be placed inside the control sector; otherwise, the block will behave as though all items have already been taken from it. If multiple Things are inside the control sector, the block will award one at a time, and may be struck more than once. This linedef type was specifically made for Mario mode, but it will function in any gametype. However, outside of Mario mode, it will make a different sound when struck.
Different Things will have different effects when placed inside the control sector. Rings and coins will pop out of the top, and add to the player's count. If monitors are placed inside, their screens will pop out of the top when the block is struck, and their effect will be given to the player. Enemies inside the block will take damage when the block is struck. If they are killed, the rewarding score is given to the player, and the trapped animal will pop out of the top of the block. Enemies which take multiple hits to destroy, such as the Crawla Commander, will pop out of the top with one hit point lost, and attack the player. Bosses will not pop out of the top of the item block, nor be damaged. Other objects will simply pop up and sit on top of the FOF, and play the sound heard when a Chaos Emerald is collected (or
sfx_mario9, if the level is in Mario mode).
- Mario blocks should almost always have dimensions of 64 fracunits by 64 fracunits by 64 fracunits, as this is the size needed to properly display the standard Mario block textures, as well as the size required to make the block easy to strike.
- In general, Mario blocks should be given the same textures that are used in Pipe Towers Zone.
- A little creativity in what items come out of the blocks is good, but don't overdo it or the blocks will make no sense. Generally, the best Things to put inside the blocks are a single coin, a Fire Flower, a single power-up monitor, multiple coins, or multiple coins plus a single power-up monitor.
- A clever idea is to put springs in a block, but be sure that the top of the block is accessible, and that you don't overuse this gimmick.
- Be very careful about putting enemies in blocks; an overabundance of blocks with enemies in them is pointless and annoying.
- Don't put Chaos Emeralds or other powerful items in blocks unless it's a very specialized gimmick for a mod.
- Example WAD: ex_ld250_fofmarioitemblock.wad
- This example WAD can be played in any gametype. It uses
MAP30, replacing Pipe Towers Zone.