Linedef type 12

From SRB2 Wiki
Jump to navigation Jump to search
To do
Update and correct list of rock types.
Several rock spawners that spawn different types of rocks.

Linedef type 12, Rock Spawner Parameters, is a type of linedef special which is used to set the parameters for a rock spawner.

Note that in the UDMF map format, this special is not used: since all parameters can be found as arguments on the rock spawner thing, this linedef special is not necessary.

Binary setup

The tag should be the same as the Angle of the rock spawner Thing. The direction of the control linedef determines the direction in which the rocks are spawned. The length of the linedef determines the speed of the rocks (16 fracunits of the linedef length equal 1 fracunit per tic of speed), and the front texture X offset determines the time in tics it takes to spawn a rock. The front texture Y offset determines the sprite used for the rocks, as shown in the table below.

Y offset Sprite prefix Rock sprite Description
0 ROIA
Brown rock
1 ROIB
Brownish-gray rock
2 ROIC
Gray rock
3 ROID
Bluish-gray rock
4 ROIE
Brownish-gray rock with orange spots
5 ROIF
Red rock
6–15 ROIGROIP (None) Blank slots

Checking Flag [6] / Not Climbable will add a random number between 0 and 8 to the speed of the rocks, in fracunits per tic.

Sample

Example file: ex_ld012_rockspawnparameters.wad (MAP01)
How to use
  • You may load this file into your favorite map editor, such as Zone Builder. Select MAP01 as the map to load.
  • You may also load this file in the game:
    1. Save ex_ld012_rockspawnparameters.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_ld012_rockspawnparameters.wad.
    3. Start the game in Single Player mode.
    4. Press the Console button (~), and type in the command MAP MAP01 to access the example map.
  • When you load this file in the game, it replaces Greenflower Zone Act 1.

  Linedef types – Parameters [view]
2 - Custom Exit3 - Zoom Tube Parameters4 - Speed Pad Parameters8 - Special Sector Properties / Set Camera Collision Planes9 - Chain Parameters11 - Rope Hang Parameters12 - Rock Spawner Parameters14 - Bustable Block Parameters15 - Fan Particle Spawner Parameters / Fan Particle Generator Heights16 - Minecart Parameters64 - Continuously Appearing/Disappearing FOF