Rock Spawner

From SRB2 Wiki
Jump to: navigation, search

Thing type 1202, Rock Spawner, is a type of Thing that, when used in conjunction with linedef type 12, spawns rocks which will fall downwards and pose as an obstacle for the player, causing non-elemental damage upon being touched. It is used in Arid Canyon Zone Act 1 but fits any map theme that would reasonably contain rocks.

The Angle of this Thing should be the same as the tag of the control linedef. 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
ROIAA0.png
Brown rock, like the ones in Arid Canyon Zone Act 1
1 ROIB
ROIBA0.png
Brownish-gray rock
2 ROIC
ROICA0.png
Gray rock
3 ROID
ROIDA0.png
Bluish-gray rock
4 ROIE
ROIEA0.png
Brownish-gray rock with orange spots
5 ROIF
ROIFA0.png
Red rock
6 - 15 ROIG - ROIP (None) Blank slots

Checking the Not Climbable flag will add a random number between 0 and 8 to the speed of the rocks, in fracunits per tic.


  Thing types - Hazards [view]
SpikeballSpikeBig Floating MineCannonball LauncherBig Floating Mine (Air)TorchMace (Spinning)Mace (Swinging)Rock SpawnerFlame Jet (Horizontal)Flame Jet (Vertical)Spinning Flame Jet (Counter-Clockwise)Spinning Flame Jet (Clockwise)