A_RockSpawn

From SRB2 Wiki
Jump to navigation Jump to search
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
Brown rock, like the ones in Arid Canyon Zone Act 1
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 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_SpawnObjectRelativeA_ConnectToGroundA_WhoCaresIfYourSonIsABee