An Egg Capsule is part of almost every official boss level. It rises from the ground once the boss is defeated, and opens up and releases enemies once the button is pressed. They are created with use of the reserved tags 680, 681 and 682, the Egg Trap Center Thing, the Egg Trap Capsule sector special, and several FOFs.
Basic Setup
Target Sector and Capsule Center
For the Egg Capsule, three target sectors must be created inside the map. Those determine the point where the Egg Capsule will rise once the boss is defeated. You should change the grid size to 8 for making these sectors, since they are rather small.
The outer sector is an octagon with a linedef length of 72, which equals a diameter of 192 fracunits. Its tag should be set to 1. This is the main capsule. The middle sector is created inside the other sector. It is also an octagon, with a linedef length of 36, which equals a diameter of 96. This is the yellow button. The uppermost vertex should be 48 fracunits below the upper vertex of the outer sector. The tag should set to 2. The inner sector is created exactly in the center of both sectors. It is a square with a linedef length of 16 and a tag of 3. This is the small metal beam that the button rests upon. In the middle of that sector, the Egg Trap Center is placed.
Control Sectors
An Egg Capsule requires 12 control sectors. They are made in four groups with three sectors that connect with each other. Each group consists of one square sector with a linedef length of 64, and a triangle both to the left and to the right. All sectors have special parameters that have to be set, and several linedefs will get an FOF special.
Sector Configurations
The height of the sector surrounding the Egg Capsule must be added on top of the floor and ceiling heights if it is not 0. In the upper middle section, set the middle control sector's light value lower than the sector that's surrounding the Egg Capsule to make the yellow button cast a shadow.
Top section
|
| Left sector
| Middle sector
| Right sector
|
| Floor height
| -8
| -136
| 0
|
| Ceiling height
| 112
| -16
| 120
|
| Tag
|
| 680
|
|
| Floor flat
|
| YELFLR
|
|
| Ceiling flat
|
| YELFLR
|
|
Upper middle section
|
| Left sector
| Middle sector
| Right sector
|
| Floor height
| 112
| -16
| 120
|
| Ceiling height
| 120
| -8
| 128
|
| Tag
|
| 680
|
|
| Floor flat
|
| YELFLR
|
|
| Ceiling flat
|
| YELFLR
|
|
| Sector effect
|
| 144
|
|
Lower middle section
|
| Left sector
| Middle sector
| Right sector
|
| Floor height
| 88
| -80
| 56
|
| Ceiling height
| 112
| -24
| 112
|
| Tag
|
| 681
|
|
| Floor flat
|
| TRAPFLR
|
|
| Ceiling flat
|
| TRAPFLR
|
|
Bottom section
|
| Left sector
| Middle sector
| Right sector
|
| Floor height
| 0
| -136
| 0
|
| Ceiling height
| 24
| -80
| 56
|
| Tag
|
| 682
|
|
| Floor flat
|
| TRAPFLR
|
|
| Ceiling flat
|
| TRAPFLR
|
|
Linedef Configurations
In each of the middle control sectors, select the upper and lower linedef and give them Linedef Type 100. The only exception is the lower linedef in the top section, which doesn't get an action.
Top section
|
| Upper linedef
|
| Tag
| 3
|
| Front middle texture
| THZWAL01
|
Upper middle section
|
| Upper linedef
| Lower linedef
|
| Tag
| 2
| 3
|
| Front middle texture
| YELWALL
| YELWALL
|
Lower middle section
|
| Upper linedef
| Lower linedef
|
| Tag
| 2
| 1
|
| Front middle texture
| EGGTRAP1
| EGGTRAP1
|
Bottom section
|
| Upper linedef
| Lower linedef
|
| Tag
| 2
| 1
|
| Front middle texture
| EGGTRAP2
| EGGTRAP2
|
Samples
Sample 1
- Example WAD: Sample-eggcapsule.wad
Notes
- This example WAD can be played in Single Player mode. It uses
MAP01, replacing Greenflower Zone Act 1.
- This example shows an Egg Capsule working in a boss level.
Sample 2
- Example WAD: Sample-eggcapsulenoboss.wad
Notes
- This example WAD can be played in Single Player mode. It uses
MAP01, replacing Greenflower Zone Act 1.
- This example shows an Egg Capsule working in a level without a boss.