A_RockSpawn

From SRB2 Wiki
Jump to: navigation, search
Test.png This article or section is incomplete. It doesn't have all of the necessary core information on this topic. Please help the SRB2 Wiki by finishing this article.

A_RockSpawn is an action that spawns rocks at a specified interval, which is to be used in conjunction with linedef type 12. In SRB2, this is used by the Rock Spawner.

The Angle of the actor should be the same as the tag of the control linedef with linedef type 12. The direction of the control linedef determines the angle of the rockslide. 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 (using A_SetTics). 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 ROIGROIP (None) Blank slots

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

  Actions – Spawners [view]
A_BubbleSpawnA_FanBubbleSpawnA_GhostMeA_ParticleSpawnA_RockSpawnA_SmokeTrailerA_SpawnFreshCopyA_SpawnObjectAbsoluteA_SpawnObjectRelative