Spikes

From SRB2 Wiki
Jump to navigation Jump to search
Player being hurt by spikes.

Sector type 5, Spikes, is a sector type that is used in conjunction with spikes and damages the player on contact. The Elemental Shield does not protect against it and any shield will be lost or damaged upon being hurt by this special. It plays the spike sound effect (sfx_spkdth) when the player comes in contact with it. If the player is merely hurt, the hurt sound will play along with the spike sound; if the player dies, the usual death sound will be suppressed in favor of the spike sound. In NiGHTS levels, these sectors do not cause damage in 3D mode due to all damage being disabled; in 2D mode, they cause normal NiGHTS damage and only play the normal hurt sound.

Since Thing-based spikes have their own collision detection when the Ambush flag is checked, this special is typically used with sector-based spikes.

Type of sector Behavior
In-level sector Damages players when they touch the floor
Solid FOF control sector Damages players when they touch the FOF top (sides and bottom are safe)
Intangible FOF control sector No effect
Water FOF control sector No effect

Sample

Example file: ex_st00005_spikes.wad (MAP01) 
  • Play this map in Single Player mode.
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_st00005_spikes.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_st00005_spikes.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.



  Sector types – Group 1 [view]
DamageDamage (Water)Damage (Fire)Damage (Electrical)SpikesDeath PitInstant KillRing Drainer (Floor Touch)Ring Drainer (Anywhere in Sector)Special Stage DamageSpace CountdownRamp SectorNon-Ramp SectorBouncy FOF